调用WithdrawPublishedRouteEntries解除VPC网络实例已发布到云企业网中的路由。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String WithdrawPublishedRouteEntries

要执行的操作,取值:WithdrawPublishedRouteEntries

CenId String cen-sxjfjkjfkjfiein****

云企业网的ID。

ChildInstanceId String vpc-rj9gt5nll27onu7****

加载的网络实例ID。

ChildInstanceRegionId String cn-hangzhou

加载的网络实例的地域ID。

ChildInstanceRouteTableId String vtb-bp174d1gje79u1g4t****

网络实例的路由表ID。

ChildInstanceType String VPC

网络实例类型。

取值:VPC,专有网络。

DestinationCidrBlock String 172.XX.XX.0/24

要解除的路由的目标网段。

返回数据

名称 类型 示例值 描述
RequestId String FBDB18D8-E91E-4978-8D6C-6E2E3EE10133

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=WithdrawPublishedRouteEntries
&CenId=cen-sxjfjkjfkjfiein****
&ChildInstanceId=vpc-rj9gt5nll27onu7****
&ChildInstanceRegionId=cn-hangzhou
&ChildInstanceRouteTableId=vtb-bp174d1gje79u1g4t****
&ChildInstanceType=VPC
&DestinationCidrBlock=172.XX.XX.0/24
&<公共请求参数>

正常返回示例

XML 格式

<PublishRouteEntriesResponse>
      <RequestId>FBDB18D8-E91E-4978-8D6C-6E2E3EE101330</RequestId>
</PublishRouteEntriesResponse>

JSON 格式

{
    "RequestId": "FBDB18D8-E91E-4978-8D6C-6E2E3EE10133"
}

错误码

HttpCode 错误码 错误信息 描述
400 InvalidOperation.UnsupportnexthopType The specified next hop type is not supported by this operation. 操作不支持该nexthopType。
400 ParameterIllegal.CenInstanceId The parameter of CEN instance id is illegal. 云企业网ID不正确。
400 ParameterIllegal.ChildInstanceRegionId The parameter of child instance region id is illegal. 网络实例所属地域信息不正确。
409 InvalidOperation.ChildInstanceStatus The child-instance is not in a valid state for the operation. 网络子实例正在处理状态,请稍后再操作。
409 InvalidOperation.CenInstanceStatus The CEN instance is not in a valid state for the operation. CEN实例正在处理状态,请稍后再操作。
400 ParameterIllegal.ChildInstanceType The parameter of child instance type is illegal. 网络子实例类型不正确。

访问错误中心查看更多错误码。