You need to enable JavaScript to run this app.
导航

DeleteDirectConnectGateway

最近更新时间2024.04.18 19:01:50

首次发布时间2022.03.25 07:38:20

调用DeleteDirectConnectGateway删除指定的专线网关。

调用说明

  • 待删除专线网关未加入云企业网,若已加入请先调用DetachInstanceFromCen从云企业网中卸载专线网关实例。
  • 待删除专线网关无静态路由条目、BGP邻居,若有请分别调用DeleteDirectConnectGatewayRoute删除静态路由条目、调用DeleteBgpPeer删除BGP邻居。
  • 待删除专线网关未关联虚拟接口,若已关联虚拟接口请先调用DeleteDirectConnectVirtualInterface删除虚拟接口。需确保专线网关解除关联的最后一个虚拟接口前,已从云企业网卸载。

调试

请求参数

名称类型是否必选示例值描述
ActionStringDeleteDirectConnectGateway要执行的操作,取值为DeleteDirectConnectGateway。
VersionString2020-04-01API版本信息。
DirectConnectGatewayIdStringdcg-7qthudw0ll6jmc****待删除专线网关的ID。您可调用DescribeDirectConnectGateways查询专线网关的ID。

返回数据

名称类型
示例值
描述
RequestIdString202111161611080102121461940900****请求ID。

请求示例

GET /?Action=DeleteDirectConnectGateway&Version=2020-04-01&DirectConnectGatewayId=dcg-7qthudw0ll6jmc**** HTTP/1.1
Host: open.volcengineapi.com
ServiceName: directconnect
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202111161611080102121461940900****",
        "Action": "DeleteDirectConnectGateway",
        "Version": "2020-04-01",
        "Service": "directconnect",
        "Region": "cn-beijing"
    },
    "Result": {
    		"RequestId": "202111161611080102121461940900****"
    }
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode
错误码
错误信息
描述
400InvalidDirectConnectGateway.HasRouteThe specified direct connect gateway has routes, and cannot be deleted.指定的专线网关存在路由,无法删除。
400InvalidDirectConnectGateway.HasAssociationThe specified direct connect gateway has associations with direct connect virtual interface, and cannot be deleted.指定的专线网关存在虚拟接口关联,无法删除。
400InvalidDirectConnectGateway.InvalidStatusThe specified direct connect gateway is not in the correct status for the request.指定的专线网关所处的状态无法响应该请求。
404InvalidDirectConnectGateway.NotFoundThe specified direct connect gateway does not exist.指定的专线网关不存在。