You need to enable JavaScript to run this app.
文档中心
私有网络

私有网络

复制全文
下载 pdf
私有网络
DeleteVpc - 删除VPC
复制全文
下载 pdf
DeleteVpc - 删除VPC
调用 DeleteVpc 接口,删除指定的VPC。​
使用说明​
​
前提条件​
说明​
私有网络内无子网​
您可调用 DescribeVpcs 接口,查看是否存在子网。 若存在,可调用 DeleteSubnet 接口删除子网。​
私有网络内无网络ACL​
您可调用 DescribeVpcs 接口,查看是否存在网络ACL。若存在,可调用 DeleteNetworkAcl 接口删除网络ACL。​
私有网络内无自定义路由表​
您可调用 DescribeVpcs 接口,查看是否存在自定义路由表。若存在,可调用 DeleteRouteTablel 接口删除自定义路由表。​
私有网络内无自定义安全组​
您可调用 DescribeVpcs 接口,查看是否存在自定义安全组。若存在,可调用 DeleteSecurityGroup 接口删除自定义安全组。​
私有网络内未关联IPv6网关​
您可调用 DescribeIpv6Gateways 接口,查看是否已关联IPv6网关。若存在,可调用 DeleteIpv6Gateway 接口删除IPv6网关。​
私有网络未授权给其他账号​
您可调用 DescribeGrantRulesToCen 接口,查看是否授权给其他账号。若存在,可调用 RevokeInstanceFromCen 接口取消授权。​
​
DeleteVpc 为异步接口,即返回请求ID时,系统后台仍在删除。您可调用 DescribeVpcAttributes 查看VPC的状态,Pending表示删除中,查看失败表示删除完成。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:DeleteVpc​
接口名称。当前 API 的名称为DeleteVpc。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为 2020-04-01。​
​
VpcId String 必选 示例值:2ff3ruwe8fbb6****​
待删除VPC的ID。​
您可以调用 DescribeVpcs 接口,查询VPC的ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId String 示例值:2021062415303301022514515207C4****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=DeleteVpc&Version=2020-04-01&VpcId=vpc-2ff3ruwe8fbb6**** HTTP/1.1​
Host: vpc.cn-beijing.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/vpc/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2021062415303301022514515207C4****",​
"Action": "DeleteVpc",​
"Version": "2020-04-01",​
"Service": "vpc",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "2021062415303301022514515207C4****"​
}​
}​
​
错误码​
​
状态码​
错误码​
错误信息​
说明​
400​
DependencyViolation.CenAttached​
Specified VPC is attached to a CEN instance​
该VPC包含在一个云企业网中,请在云企业网中取消关联后再尝试删除。​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
400​
InvalidClassicVpc.InUse​
The specified classic VPC cannot be deleted.​
指定的classic VPC无法删除。​
400​
InvalidFlowLog.InvalidStatus​
The specified flow log is not in the correct status for the request.​
指定流日志所处的状态无法响应该请求。​
400​
InvalidRouteTable.InUse​
The specified route table has dependent resource of a route entry.​
指定的路由表下有路由条目,无法删除。​
400​
InvalidSecurityGroup.InvalidStatus​
The specified security group is not in the correct status for the request.​
指定的安全组所处的状态无法响应该请求。​
400​
InvalidVpc.HasInstanceGroup​
The specified VPC has dependent resource of an instance group.​
指定的VPC中有服务器组,无法删除。​
400​
InvalidVpc.HasIpv4Gateway​
The specified VPC has dependent resource of an ipv4 gateway.​
指定的VPC中有IPv4网关,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC contains Network ACL not been deleted.​
指定的VPC内存在网络ACL,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC has dependent resource of a Cloud Enterprise Network.​
指定的VPC已加入云企业网,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC has dependent resource of a Core Network.​
指定的VPC包含NAT网关,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC has dependent resource of a NAT gateway.​
指定的VPC已加入中转路由器,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC has dependent resource of a Transit Router.​
指定的VPC包含VPN网关,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC has dependent resource of a VPN gateway.​
指定的VPC包含路由表,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC has dependent resource of a direct connect gateway.​
指定的VPC包含安全组,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC has dependent resource of a peering connection.​
指定的VPC包含子网,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC has dependent resource of a route table.​
指定的VPC中有IPv6网关,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC has dependent resource of a security group.​
指定的VPC包含安全组,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC has dependent resource of a subnet.​
指定的VPC包含子网,无法删除。​
400​
InvalidVpc.InUse​
The specified VPC has dependent resource of an Ipv6Gateway.​
指定的VPC中有IPv6网关,无法删除。​
400​
InvalidVpc.InvalidStatus​
The specified VPC is not in the correct status for the request.​
指定的VPC所处状态无法响应该请求。​
404​
InvalidFlowLog.NotFound​
The specified flow log does not exist.​
指定的流日志不存在。​
404​
InvalidVpc.NotFound​
The specified VPC does not exist.​
指定的VPC不存在。​
​
​
最近更新时间:2026.09.23 11:06:35
这个页面对您有帮助吗?
有用
有用
无用
无用