DeleteVSwitch
说明
目前该API接口已标记为弃用,推荐使用替代API:Vpc(2016-04-28) - DeleteVSwitch。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vpc:DeleteVSwitch |
delete |
*VSwitch
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| VSwitchId |
string |
是 |
||
| RegionId |
string |
否 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
示例
正常返回示例
JSON格式
{
"RequestId": ""
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IncorrectVSwitchStatus | vpc subnet status not working. | |
| 400 | DependencyViolation | Specified object has dependent resources. | 该交换机下还有资源未释放,无法删除,请释放该 VPC 下的云产品资源后再删除 VPC。 |
| 400 | IncorrectRouteEntryStatus | Some route entry status blocked this operation. | 无法执行该操作,当前路由表中有路由条目的状态为 pending 或 modifying。 |
| 400 | DependencyViolation.HaVip | VSwitch cannot be deleted when there are some HaVip dependent with it. | 不能删除关联了 HaVip 的虚拟交换机。 |
| 400 | MissingParameter | Miss mandatory parameter. | 参数不得为空。 |
| 400 | TaskConflict | The operation is too frequent, TaskConflict. | 操作过于频繁,请稍等一会再重试 |
| 400 | DependencyViolation.RouteTable | VSwitch cannot be deleted when associated with route table | |
| 400 | DependencyViolation.Snat | VSwitch cannot be deleted when has snat routeEntry. | |
| 400 | DeleteVSwitch.IncorrectStatus.cbnStatus | Current CBN status does not support this operation. | |
| 400 | AttrMismatching.NaclAndBindInstance | The network acl and resource not in same vpc. | |
| 400 | InvalidResource.NotBinding | The resource has not been binded. | |
| 400 | DependencyViolation.SnatEntry | VSwitch cannot be deleted when snat entry exist. | |
| 400 | DependencyViolation.NetworkAcl | VSwitch cannot be deleted when network acl exist. | |
| 400 | DependencyViolation.EnhancedNatgw | VSwitch cannot be deleted when enhanced NAT gateway exists. | |
| 400 | InvalidVSwitchId.NotFound | VSwitch not exist. | 指定的虚拟交换机不存在。 |
| 404 | Forbidden.RegionNotFound | Specified instance is not found during access authentication. | |
| 404 | IncorrectVSwitchId | Specified vSwtich instance is not found during access authentication. | |
| 404 | InvalidVSwitchId.NotFound | VSwitch not exist. | |
| 404 | IncorrectStatus | Vswtich status not stable. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?