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