Withdraws the routes of a virtual private cloud (VPC) or a virtual border router (VBR) from a Cloud Enterprise Network (CEN) instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
cen:WithdrawPublishedRouteEntries | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CenId | string | Yes | The ID of the CEN instance. | cen-sxjfjkjfkjfiein**** |
ChildInstanceId | string | Yes | The ID of the attached network instance. | vpc-rj9gt5nll27onu7**** |
ChildInstanceType | string | Yes | The type of the attached network instance. Set the value to VPC, which indicates a virtual private cloud (VPC). | VPC |
ChildInstanceRegionId | string | Yes | The ID of the region where the attached network instance is created. | cn-hangzhou |
ChildInstanceRouteTableId | string | Yes | The ID of the route table of the attached network instance. | vtb-bp174d1gje79u1g4t**** |
DestinationCidrBlock | string | Yes | The destination CIDR block of the route that you want to withdraw. | 172.XX.XX.0/24 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "FBDB18D8-E91E-4978-8D6C-6E2E3EE10133"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidOperation.UnsupportnexthopType | The specified next hop type is not supported by this operation. | The specified next hop type is not supported by this operation. |
400 | InvalidOperation.NotFoundRoute | You cannot query the system routing information of the specified instance. | You cannot query the system routing information of the specified instance. |
400 | ParameterIllegal.CenInstanceId | The parameter of CEN instance id is illegal. | The error message returned because the specified 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. |
400 | ParameterIllegal.ChildInstanceType | The parameter of child instance type is illegal. | The error message returned because the specified type of network instance is invalid. |
400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
404 | Instance.NotExist | The instance is not exist. | The error message returned because the specified instance does not exist. |
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 status of the CEN instance does not support this operation. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|