You need to enable JavaScript to run this app.
文档中心
VPN连接

VPN连接

复制全文
下载 pdf
用户网关
DeleteCustomerGateway-删除用户网关
复制全文
下载 pdf
DeleteCustomerGateway-删除用户网关
调用DeleteCustomerGateway删除指定的用户网关。​
使用说明​
仅可删除未被IPsec连接使用的用户网关,如被IPsec连接使用,可调用DeleteVpnConnection删除IPsec连接后再删除用户网关。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:DeleteCustomerGateway​
要执行的操作,取值:DeleteCustomerGateway。​
​
Version String 必选 示例值:2020-04-01​
API版本信息。​
​
CustomerGatewayId String 必选 示例值:cgw-3tex2x1cwd4c6c0v****​
待删除的用户网关的ID。您可调用DescribeCustomerGateways查询用户网关的ID信息。​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId String 可选 示例值:202203211611080102121461940900****​
请求ID。​
​
​
请求示例​
​
GET /?Action=DeleteCustomerGateway&Version=2020-04-01&CustomerGatewayId=cgw-2d670j2o9lc0058ozfddg**** HTTP/1.1​
Host: vpn.cn-beijing.volcengineapi.com​
X-Date: 20251029T033538Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251029/cn-beijing/vpn/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "202203211611080102121461940900****",​
"Action": "DeleteCustomerGateway",​
"Version": "2020-04-01",​
"Service": "vpn",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "202203211611080102121461940900****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidCustomerGateway.InvalidStatus​
The specified customer gateway is not in the correct status for the request.​
指定的用户网关所处的状态无法响应该请求。​
400​
InvalidCustomerGateway.InUse​
The specified customer gateway has dependent resource of connection.​
指定的用户网关已经存在连接,无法删除。​
404​
InvalidCustomerGateway.NotFound​
The specified customer gateway does not exist.​
指定的用户网关不存在。​
​
最近更新时间:2026.02.02 11:15:04
这个页面对您有帮助吗?
有用
有用
无用
无用