说明
目前该API接口已标记为弃用,推荐使用替代API:Vpc(2016-04-28) - DeleteVpc。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vpc:DeleteVpc |
delete |
*VPC
|
|
无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| VpcId |
string |
是 |
||
| RegionId |
string |
否 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
示例
正常返回示例
JSON格式
{
"RequestId": ""
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | DependencyViolation.RouteTable | VPC cannot be deleted when custom route table exists. | |
| 400 | IncorrectVpcStatus | Current VPC status does not support this operation. | 当前专有网络 VPC 的状态无法支持这个操作。 |
| 400 | DependencyViolation.RouteEntry | Specified object has dependent resources | |
| 400 | DependencyViolation.Instance | Specified object has dependent resources | 当前 VPC 还存在未删除的云产品实例,VPC 删除失败。 |
| 400 | DependencyViolation.VSwitch | Specified object has dependent resources | 当前 VPC 还存在未删除的交换机,VPC 删除失败,删除 VPC 下的交换机后再尝试删除 VPC。 |
| 400 | DependencyViolation.SecurityGroup | Specified object has dependent resources SecurityGroup. | 当前 VPC 还存在未删除的安全组,VPC 删除失败,请先删除该 VPC 下的安全组后再删除 VPC。指定的虚拟交换机已关联安全组,无法删除。 |
| 400 | DependencyViolation.RouteInterface | Specified object has dependent route interface . | 指定的虚拟交换机连接了路由器接口,无法删除。 |
| 400 | DependencyViolation.Tunnel | Specified object has dependent tunnel. | 指定的虚拟交换机关联了数据通道,无法删除。 |
| 400 | DependencyViolation.NatGateway | Specified object has dependent resources NatGateway. | VPC 中还有 NAT 网关,不能被删除,请先删除该 VPC 中的 NAT 网关再删除 VPC。 |
| 400 | DependencyViolation.RouterInterface | Specified object has dependent resources RouterInterface. | |
| 400 | Forbidden.VpcNotFound | Specified VPC can not found. | |
| 400 | Forbbiden | Active custom route in vpc. | 您需要在 VPC 中添加自定义路由条目。 |
| 400 | TaskConflict | The eip operate too frequent, TaskConflict. | 操作过于频繁,请稍等一会再重试 |
| 400 | InvalidAction | The VPC has been connected to the classic network ECS. Please cancel the connection before proceeding. | 您要进行修改的资源还有依赖资源 |
| 400 | DependencyViolation.Ipv6Gateway | %s | |
| 400 | IncorrectStatus.cbnStatus | Current CBN status does not support this operation. | |
| 400 | DependencyViolation.CloudServiceResource | %s | |
| 400 | DependencyViolation.ClassicLinkInstance | Specified object has active classicLink instance. | |
| 400 | IllegalParam.RegionId | The specified RegionId is illegal. | |
| 400 | DependencyViolation.NetworkAcl | Specified object has dependent resources network acl. | |
| 400 | InvalidRegionInstance | The specified InstanceId does not exist in given region. | 该实例在指定的地域中不存在,请确认参数是否正确。 |
| 400 | DependencyViolation.Ipv4Gateway | The VPC cannot be deleted when it has ipv4Gateway. | |
| 400 | OperationDenied.VpcPeerExists | The operation is not allowed because the VpcPeer exists. | 指定操作被禁止,因为VPC内存在VPC对等连接。 |
| 400 | DependencyViolation.GatewayRouteTable | Specified object has dependent resources gatewayRouteTable. | 存在网关路由表依赖,不允许删除VPC。 |
| 400 | DependencyViolation.DhcpOptionsSet | The VPC cannot be deleted when it is associated with dhcpOptionsSet. | 当前VPC还存在未删除的DHCP选项集实例,不允许删除。 |
| 400 | InternalError | The request processing has failed due to some unknown error | 未知错误,请求失效。 |
| 401 | DependencyViolation.RouterInterface | Specified object has dependent resources RouterInterface. | 指定的虚拟交换机连接了路由器接口,无法删除。 |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | OperationDenied | The operation is not supported in this status. | 此状态下制定操作无效。 |
| 404 | InvalidVpcId.NotFound | Specified VPC does not exist. | 指定的专有网络 VPC ID 不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?