Cloud Enterprise Network (CEN) supports route advertisement. You can call this operation to advertise routes of virtual private clouds (VPCs) or virtual border routers (VBRs) attached to a CEN instance to the CEN instance. Other network instances attached to the CEN instance can learn the routes if route conflicts do not exist.
Operation description
The following table describes whether routes of different types are advertised to CEN by default. You can call the PublishRouteEntries operation to advertise routes to CEN.
Route | Network instance | Advertised to CEN by default |
---|---|---|
Routes that route network traffic to Elastic Compute Service (ECS) instances | VPC | No |
Routes that route network traffic to VPN gateways | VPC | No |
Routes that route network traffic to high-availability virtual IP addresses (HAVIPs) | VPC | No |
Routes that route network traffic to router interfaces | VPC | No |
Routes that route network traffic to elastic network interfaces (ENIs) | VPC | No |
Routes that route network traffic to IPv6 gateways | VPC | No |
Routes that route network traffic to NAT gateways | VPC | No |
System routes of VPCs | VPC | Yes |
Routes that route network traffic to data centers | VBR | Yes |
Border Gateway Protocol (BGP) routes | VBR | Yes |
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CenId | string | Yes | The ID of the CEN instance. | cen-7qthudw0ll6jmc**** |
ChildInstanceId | string | Yes | The ID of the network instance. | vpc-rj9gt5nll27onu**** |
ChildInstanceType | string | Yes | The type of the network instance. Valid values:
| VPC |
ChildInstanceRegionId | string | Yes | The ID of the region where the network instance is deployed. You can call the DescribeChildInstanceRegions operation to query the most recent region list. | us-west-1 |
ChildInstanceRouteTableId | string | Yes | The ID of the route table configured on the network instance. | vtb-bp174d1gje7**** |
DestinationCidrBlock | string | Yes | The destination CIDR block of the route that you want to advertise. | 172.16.1.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 | ParameterIllegal.AliUid | The parameter of aliUid is illegal. | The error message returned because the specified account ID is invalid. |
400 | InvalidOperation.UnsupportnexthopType | The nexthop type is unsupported | The error message returned because the next hop type does not support this operation. |
400 | InvalidOperation.NotFoundRoute | The specified route does not exist. | The error message returned because the route does not exist. |
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 | InvalidOperation.UnsupportRouteTableType | The route table type is unsupported | The error message returned because the specified route table type does not support this operation. |
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 |
---|