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

WithdrawCenRouteEntry

最近更新时间2024.04.22 17:47:30

首次发布时间2022.11.03 08:43:18

调用 WithdrawCenRouteEntry 接口,从云企业网中撤回指定的网络实例路由条目。

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringWithdrawCenRouteEntry要执行的操作,取值为WithdrawCenRouteEntry。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。
CenIdStringcen-2nim00ybaylts7trquyzt****云企业网实例的ID。您可以调用DescribeCens接口获取云企业网实例ID。

InstanceType

String

VPC

待撤回路由条目所属的网络实例类型。

  • VPC:私有网络。
InstanceRegionIdStringcn-beijing待撤回路由条目所属的地域。
InstanceIdStringvpc-vtbnbb04qw3k2hgi12cv****待撤回路由条目所属的网络实例ID。您可以调用DescribeVpcs接口获取“VPC”类型网络实例的ID。
DestinationCidrBlockString10.XX.XX.0/24待撤回的网络实例路由条目的目标网段。

返回参数

参数名称
类型
示例值
描述
RequestIdString20211222122528010225****请求ID。

请求示例

GET /?Action=WithdrawCenRouteEntry&Version=2020-04-01&CenId=cen-2nim00ybaylts7trquyzt****&InstanceType=VPC&InstanceRegionId=cn-beijing&InstanceId=vpc-vtbnbb04qw3k2hgi12cv****&DestinationCidrBlock=10.XX.XX.0/24 HTTP/1.1
Host: open.volcengineapi.com
Service: cen
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20211222122528010225****",
        "Action": "WithdrawCenRouteEntry",
        "Version": "2020-04-01",
        "Service": "cen",
        "Region": "cn-beijing"
    },
    "Result": {}
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

http code错误码错误信息描述信息
400InvalidCidr.MalformedThe specified cidr block is malformed.指定的网段不合法。
400InvalidCenAttachedInstance.MalformedThe specified instance type is malformed.指定的网络实例类型不支持。
400UnsupportedOperationThe specified CEN route entry does not support being withdrawn.指定路由条目不支持从云企业网撤回。
404InvalidCen.NotFoundThe specified CEN does not exist.指定的云企业网实例不存在。
404InvalidCenAttachedInstance.NotFoundThe specified CEN attached instance does not exist.指定的网络实例不存在。
404InvalidCenRouteEntry.NotFoundThe specified CEN route entry does not exist.指定的路由不存在。
409InvalidCen.InvalidStatusThe specified CEN instance is not in the correct status for the request.指定的云企业网实例所处的状态无法响应该请求,请稍后再试。