Publishes the route entries of the VPC or VBR associated with a CEN instance to CEN.
Supported route entries
The following table lists the route entries that can be published to CEN:
Route entry |
Network |
Published to CEN by default? |
---|---|---|
A route entry pointing to an ECS instance |
VPC |
No |
A route entry pointing to a VPN Gateway |
VPC |
No |
A route entry pointing to a High-Availability Virtual IP Address (HaVip) |
VPC |
No |
A VPC system route entry |
VPC |
Yes |
A route entry pointing to an on-premises data center |
VPC |
Yes |
A BGP route entry |
VPC |
Yes |
Debug
Use OpenAPI Explorer to perform debug operations and generate SDK code examples.
Request parameters
Parameter | Type | Required? | Example value | Description |
---|---|---|---|---|
CenId | String | Yes | cen-7qthudw0ll6jmc**** |
The ID of the CEN instance. |
ChildInstanceId | String | Yes | vpc-rj9gt5nll27onu**** |
The ID of the associated network (VPC or VBR). |
ChildInstanceRegionId | String | Yes | us-west-1 |
The ID of the region to which the associated VBR or VPC belongs. |
ChildInstanceRouteTableId | String | Yes | vtb-bp174d1gje7**** |
The route table ID of the associated VBR or VPC. |
ChildInstanceType | String | Yes | VPC |
The type of the associated network. Valid values: VPC | VBR |
DestinationCidrBlock | String | Yes | 172.16.xx.xx/24 |
The destination CIDR block of the route entry to publish. |
Action | String | No | PublishRouteEntries |
Optional. The name of this action. Value: PublishRouteEntries |
Response parameters
Parameter | Type | Example value | Description |
---|---|---|---|
RequestId | String | FBDB18D8-E91E-4978-8D6C-6E2E3EE10133 |
The ID of the request. |
Examples
Request example
http(s)://[Endpoint]/? Action=PublishRouteEntries
&CenId=cen-7qthudw0ll6jmc****
&ChildInstanceId=vpc-rj9gt5nll27onu****
&ChildInstanceRegionId=us-west-1
&ChildInstanceRouteTableId=vtb-bp174d1gje7****
&ChildInstanceType=VPC
&DestinationCidrBlock=172.16.xx.xx/24
&<CommonParameters>
Response examples
XML
format
<PublishRouteEntriesResponse>
<RequestId>FBDB18D8-E91E-4978-8D6C-6E2E3EE101330</RequestId>
</PublishRouteEntriesResponse>
JSON
format
{
"RequestId":"FBDB18D8-E91E-4978-8D6C-6E2E3EE10133"
}
Errors
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ParameterIllegal.AliUid | The parameter of aliUid is illegal. | The account ID is incorrect. |
400 | ParameterIllegal.CenInstanceId | The parameter of CEN instance id is illegal. | The ID of the CEN instance is incorrect. |
400 | ParameterIllegal.ChildInstanceRegionId | The parameter of child instance region id is illegal. | The region to which the associated network belongs is incorrect. |
409 | InvalidOperation.ChildInstanceStatus | The child-instance is not in a valid state for the operation. | The network is being processed. Please try later. |
409 | InvalidOperation.CenInstanceStatus | The CEN instance is not in a valid state for the operation. | The CEN instance is being processed. Please try later. |
400 | ParameterIllegal.ChildInstanceType | The parameter of child instance type is illegal. | The network type is incorrect. |
For a list of error codes, visit the API Error Center.