Withdraws a route that is advertised to a Cloud Enterprise Network (CEN) instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No WithdrawPublishedRouteEntries

The operation that you want to perform. Set the value to WithdrawPublishedRouteEntries.

CenId String Yes cen-sxjfjkjfkjfiein****

The ID of the CEN instance.

ChildInstanceId String Yes vpc-rj9gt5nll27onu7****

The ID of the attached network instance.

ChildInstanceRegionId String Yes cn-hangzhou

The ID of the region where the attached network instance is created.

ChildInstanceRouteTableId String Yes vtb-bp174d1gje79u1g4t****

The ID of the route table of the attached network instance.

ChildInstanceType String Yes VPC

The type of the attached network instance.

Set the value to VPC, which indicates a virtual private cloud (VPC).

DestinationCidrBlock String Yes 172.XX.XX.0/24

The destination CIDR block of the route that you want to withdraw.

Response parameters

Parameter Type Example Description
RequestId String FBDB18D8-E91E-4978-8D6C-6E2E3EE10133

The ID of the request.

Examples

Sample requests

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
&<Common request parameters>

Sample success responses

XML format

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

JSON format

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

Error codes

HttpCode Error code Error message Description
400 InvalidOperation.UnsupportnexthopType The specified next hop type is not supported by this operation. The error message returned because the type of the next hop is invalid.
400 ParameterIllegal.CenInstanceId The parameter of CEN instance id is illegal. The error message returned because the ID of the CEN instance is invalid.
400 ParameterIllegal.ChildInstanceRegionId The parameter of child instance region id is illegal. The error message returned because the ID of the region where the network instance is created is invalid.
409 InvalidOperation.ChildInstanceStatus The child-instance is not in a valid state for the operation. The error message returned because the operation is not allowed when the network instance is being processed. Try again later.
409 InvalidOperation.CenInstanceStatus The CEN instance is not in a valid state for the operation. The error message returned because the CEN instance is being processed. Try again later.
400 ParameterIllegal.ChildInstanceType The parameter of child instance type is illegal. The error message returned because the type of the network instance is invalid.

For a list of error codes, visit the API Error Center.