閱讀102 返回首頁    go windows


刪除交換機__交換機相關接口_API 參考_雲服務器 ECS-阿裏雲

描述

刪除指定的VSwitch

  • 隻允許刪除Available狀態下的VSwitch
  • 刪除VSwitch之前,需要先釋放或移走VSwitch下的所有產品實例,比如ECS實例
  • 指定RouteTable所在的VPC正在創建/刪除VSwitch或正在創建/刪除RouteEntry操作時,無法進行刪除VSwitch操作
  • 刪除VSwitch之前,需要先釋放該VSwitch下所有的HaVip實例

請求參數

名稱 類型 是否必須 描述
Action String 係統規定參數,取值:DeleteVSwitch
VSwitchId String 需要刪除的VSwitch的Id

返回參數

全是公共返回參數,詳見公共返回參數

錯誤碼

錯誤代碼 描述 Http 狀態碼 語義
InvalidRegionId.NotFound The RegionId provided does not exist in our records. 404 指定的 RegionId 不存在
IncorrectVSwitchStatus The current virtual switch status does not support this operation. 400 指定的VSwitch處於pending狀態,無法刪除
DependencyViolation Specified object has dependent resources. 400 指定的VSwitch還有資源未釋放,無法刪除
DependencyViolation.HaVip VSwitch cannot be deleted when there are some HaVip dependent with it. 400 指定的VSwitch還有HaVip資源未釋放,無法刪除
IncorretRouteEntryStatus Some route entry status blocked this operation. 400 部分自定義路由條目處於pending狀態,無法刪除

示例

請求示例

https://ecs.aliyuncs.com/?Action=DeleteVSwitch
&VSwitchId=vsw-25naue4gz
&<公共請求參數>

返回示例

XML格式

<DeleteVSwitchesResponse>
    <RequestId>AF083E3D-7E29-4B77-A937-1F129802D5F3</RequestId>
</DeleteVSwitchesResponse>

JSON格式

{
  "RequestId": "AF083E3D-7E29-4B77-A937-1F129802D5F3"
}

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

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