阿里云如何使用刪除專有網(wǎng)絡(luò)接口
來源:技術(shù)員聯(lián)盟┆發(fā)布時間:2017-12-01 12:37┆點(diǎn)擊:
刪除專有網(wǎng)絡(luò)
描述
刪除指定的 VPC
刪除 VPC 之前,需要先釋放或移走 VPC 內(nèi)的所有資源(包括 VSwitch,ECS Instance,Connection,HaVip 等)
只有 Available 狀態(tài)的 VPC 可以刪除
請求參數(shù)
名稱
類型
是否必須
描述
Action
String
是
系統(tǒng)規(guī)定參數(shù),取值:DeleteVpc
VpcId
String
是
需要刪除的 VPC 的 Id
返回參數(shù)
全是公共返回參數(shù),詳見公共返回參數(shù)
錯誤碼
錯誤代碼
描述
Http 狀態(tài)碼
語義
IncorrectVpcStatus
Current VPC status does not support this operation.
400
當(dāng)前 VPC 的狀態(tài)無法支持這個操作
DependencyViolation.RouteEntry
Specified object has dependent resources
400
當(dāng)前 VPC 還存在未刪除的自定義路由規(guī)則,VPC 刪除失敗
DependencyViolation.Instance
Specified object has dependent resources
400
當(dāng)前 VPC 還存在未刪除的云產(chǎn)品實(shí)例,VPC 刪除失敗
DependencyViolation.VSwitch
Specified object has dependent resources
400
當(dāng)前 VPC 還存在未刪除的 VSwitch,VPC 刪除失敗
DependencyViolation.SecurityGroup
Specified object has dependent resources
400
當(dāng)前 VPC 還存在未刪除的安全組,VPC 刪除失敗
示例
請求示例
https://ecs.aliyuncs.com/?Action=DeleteVpc
&VpcId=vpc-25eq58pl3
&<公共請求參數(shù)>
返回示例
XML格式
606998F0-B94D-48FE-8316-ACA81BB230DA
JSON格式
{
"RequestId":"606998F0-B94D-48FE-8316-ACA81BB230DA"