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

专线连接

复制全文
下载 pdf
专线网关
DeleteDirectConnectGateway - 删除专线网关
复制全文
下载 pdf
DeleteDirectConnectGateway - 删除专线网关
调用DeleteDirectConnectGateway删除指定的专线网关。​
使用说明​
  • 待删除专线网关未加入云企业网,若已加入请先调用DetachInstanceFromCen从云企业网中卸载专线网关实例。​
  • 待删除专线网关未关联虚拟接口,若已关联虚拟接口请先调用DeleteDirectConnectVirtualInterface删除虚拟接口。需确保专线网关解除关联的最后一个虚拟接口前,已从云企业网卸载。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:DeleteDirectConnectGateway​
接口名称。当前 API 的名称为 DeleteDirectConnectGateway。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为 2020-04-01。​
​
DirectConnectGatewayId String 必选 示例值:dcg-7qthudw0ll6jmc****​
待删除专线网关的ID。​
您可调用DescribeDirectConnectGateways接口,查询专线网关的ID。​
​
​
​
返回参数​
本接口无特有的返回参数。更多信息请见返回结构。​
请求示例​
​
GET /?Action=DeleteDirectConnectGateway&Version=2020-04-01&DirectConnectGatewayId=dcg-7qthudw0ll6jmc**** HTTP/1.1​
Host: directconnect.cn-beijing.volcengineapi.com​
X-Date: 20250804T033538Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250804/cn-beijing/directconnect/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "202111161611080102121461940900****",​
"Action": "DeleteDirectConnectGateway",​
"Version": "2020-04-01",​
"Service": "directconnect",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "202111161611080102121461940900****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidDirectConnectGateway.HasRoute​
The specified direct connect gateway has routes, and cannot be deleted.​
指定的专线网关存在路由,无法删除。​
400​
InvalidDirectConnectGateway.HasAssociation​
The specified direct connect gateway has associations with direct connect virtual interface, and cannot be deleted.​
指定的专线网关存在虚拟接口关联,无法删除。​
400​
InvalidDirectConnectGateway.InvalidStatus​
The specified direct connect gateway is not in the correct status for the request.​
指定的专线网关所处的状态无法响应该请求。​
404​
InvalidDirectConnectGateway.NotFound​
The specified direct connect gateway does not exist.​
指定的专线网关不存在。​
​
​
最近更新时间:2026.01.23 17:00:39
这个页面对您有帮助吗?
有用
有用
无用
无用