调用DeleteDirectConnectGateway删除指定的专线网关。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DeleteDirectConnectGateway | 要执行的操作,取值为DeleteDirectConnectGateway。 |
Version | String | 是 | 2020-04-01 | API版本信息。 |
DirectConnectGatewayId | String | 是 | dcg-7qthudw0ll6jmc**** | 待删除专线网关的ID。您可调用DescribeDirectConnectGateways查询专线网关的ID。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 202111161611080102121461940900**** | 请求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 | 错误码 | 错误信息 | 描述 |
---|---|---|---|
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. | 指定的专线网关不存在。 |