閱讀422 返回首頁    go 人物


刪除專有網絡__專有網絡相關接口_API 參考_雲服務器 ECS-阿裏雲

描述

刪除指定的 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格式

<DeleteVpcResponse>
    <RequestId>606998F0-B94D-48FE-8316-ACA81BB230DA</RequestId>
</DeleteVpcResponse>

JSON格式

{
  "RequestId":"606998F0-B94D-48FE-8316-ACA81BB230DA"
}

最後更新:2016-11-23 16:03:50

  上一篇:go 新建專有網絡__專有網絡相關接口_API 參考_雲服務器 ECS-阿裏雲
  下一篇:go 查詢專有網絡列表__專有網絡相關接口_API 參考_雲服務器 ECS-阿裏雲