阿里云如何使用刪除交換機(jī)接口
來(lái)源:技術(shù)員聯(lián)盟┆發(fā)布時(shí)間:2017-11-29 06:29┆點(diǎn)擊:
刪除交換機(jī)
描述
刪除指定的VSwitch
只允許刪除Available狀態(tài)下的VSwitch
刪除VSwitch之前,需要先釋放或移走VSwitch下的所有產(chǎn)品實(shí)例,比如ECS實(shí)例
指定RouteTable所在的VPC正在創(chuàng)建/刪除VSwitch或正在創(chuàng)建/刪除RouteEntry操作時(shí),無(wú)法進(jìn)行刪除VSwitch操作
刪除VSwitch之前,需要先釋放該VSwitch下所有的HaVip實(shí)例
請(qǐng)求參數(shù)
名稱
類型
是否必須
描述
Action
String
是
系統(tǒng)規(guī)定參數(shù),取值:DeleteVSwitch
VSwitchId
String
是
需要?jiǎng)h除的VSwitch的Id
返回參數(shù)
全是公共返回參數(shù),詳見(jiàn)公共返回參數(shù)
錯(cuò)誤碼
錯(cuò)誤代碼
描述
Http 狀態(tài)碼
語(yǔ)義
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狀態(tài),無(wú)法刪除
DependencyViolation
Specified object has dependent resources.
400
指定的VSwitch還有資源未釋放,無(wú)法刪除
DependencyViolation.HaVip
VSwitch cannot be deleted when there are some HaVip dependent with it.
400
指定的VSwitch還有HaVip資源未釋放,無(wú)法刪除
IncorretRouteEntryStatus
Some route entry status blocked this operation.
400
部分自定義路由條目處于pending狀態(tài),無(wú)法刪除
示例
請(qǐng)求示例
https://ecs.aliyuncs.com/?Action=DeleteVSwitch
&VSwitchId=vsw-25naue4gz
&<公共請(qǐng)求參數(shù)>
返回示例
![23.png](/img/allimg/171129/0630259112_0.png)
JSON格式
{
"RequestId": "AF083E3D-7E29-4B77-A937-1F129802D5F3"