DeleteVSwitch -

更新时间:
复制为 MD 格式

DeleteVSwitch

说明

目前该API接口已标记为弃用,推荐使用替代API:Vpc(2016-04-28) - DeleteVSwitch

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

vpc:DeleteVSwitch

delete

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

请求参数

名称

类型

必填

描述

示例值

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.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情