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

DeleteDirectConnectGatewayRoute

最近更新时间2023.07.11 15:51:05

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

调用DeleteDirectConnectGatewayRoute删除指定的专线网关静态路由。

调用说明

路由方式为“系统路由”、“BGP”类型的路由条目不可删除。

请求参数

名称类型是否必选示例值描述
ActionStringDeleteDirectConnectGatewayRoute要执行的操作,取值:DeleteDirectConnectGatewayRoute。
VersionString2020-04-01API版本信息。
DirectConnectGatewayRouteIdStringdcr-2752hzaqrwfeo7f****待删除静态路由的ID。您可调用DescribeDirectConnectGatewayRoutes查询专线网关静态路由的ID。

返回数据

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

请求示例

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

返回示例

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

错误码

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

HttpCode
错误码
错误信息
描述
400InvalidDirectConnectGateway.InvalidStatusThe specified direct connect gateway is not in the correct status for the request.指定的专线网关所处的状态无法响应该请求。
400InvalidDirectConnectGatewayRoute.InUseThe specified direct connect gateway route can not be deleted while in use.指定的静态路由正在处理中,不可删除。
400InvalidCen.InvalidStatusThe CEN attached by the specified direct connect gateway is not in the correct status for the request.指定的专线网关挂载的CEN实例状态无法响应该请求,请稍后再试。
403ForbiddenYou are not authorized to perform operations on the specified route entry. The specified route entry is a system route entry.无权限对指定路由条目进行操作。指定的路由条目为系统路由条目。
404InvalidDirectConnectGatewayRoute.NotFoundThe specified direct connect gateway route does not exist.指定的专线网关路由条目不存在。
404InvalidDirectConnectGateway.NotFoundThe specified direct connect gateway does not exist.指定的专线网关不存在。