All Products
Search
Document Center

Cloud Enterprise Network:WithdrawPublishedRouteEntries

Last Updated:Oct 22, 2024

Withdraws the routes of a virtual private cloud (VPC) or a virtual border router (VBR) from a Cloud Enterprise Network (CEN) instance.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
cen:WithdrawPublishedRouteEntriesupdate
  • CenInstance
    acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}
  • VPC
    acs:vpc:*:{#accountId}:vpc/{#vpcId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CenIdstringYes

The ID of the CEN instance.

cen-sxjfjkjfkjfiein****
ChildInstanceIdstringYes

The ID of the attached network instance.

vpc-rj9gt5nll27onu7****
ChildInstanceTypestringYes

The type of the attached network instance.

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

VPC
ChildInstanceRegionIdstringYes

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

cn-hangzhou
ChildInstanceRouteTableIdstringYes

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

vtb-bp174d1gje79u1g4t****
DestinationCidrBlockstringYes

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

172.XX.XX.0/24

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

FBDB18D8-E91E-4978-8D6C-6E2E3EE10133

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400InvalidOperation.UnsupportnexthopTypeThe specified next hop type is not supported by this operation.The specified next hop type is not supported by this operation.
400InvalidOperation.NotFoundRouteYou cannot query the system routing information of the specified instance.You cannot query the system routing information of the specified instance.
400ParameterIllegal.CenInstanceIdThe parameter of CEN instance id is illegal.The error message returned because the specified ID of the CEN instance is invalid.
400ParameterIllegal.ChildInstanceRegionIdThe 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.
400ParameterIllegal.ChildInstanceTypeThe parameter of child instance type is illegal.The error message returned because the specified type of network instance is invalid.
400InvalidParameterInvalid parameter.The error message returned because the parameter is set to an invalid value.
400UnauthorizedThe AccessKeyId is unauthorized.The error message returned because you do not have the permissions to perform this operation.
404Instance.NotExistThe instance is not exist.The error message returned because the specified instance does not exist.
409InvalidOperation.ChildInstanceStatusThe 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.
409InvalidOperation.CenInstanceStatusThe 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 timeSummary of changesOperation
No change history