Adds a route entry to a network instance that is attached to a Cloud Enterprise Network (CEN) instance.

Limits

  • By default, the CreateCenChildInstanceRouteEntryToCen operation is unavailable. To call this operation, submit a ticket.
  • You cannot add a route entry to an Enterprise Edition transit router by calling the CreateCenChildInstanceRouteEntryToCen operation.
  • By default, the next hop of the route entry is the regional gateway of the CEN instance. You cannot modify the next hop.

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 CreateCenChildInstanceRouteEntryToCen

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

CenId String Yes cen-7febra5nqj7jjh****

The ID of the CEN instance.

ChildInstanceId String Yes vpc-k1alm2jbuwibhxtx2****

The ID of the network instance.

ChildInstanceRegionId String Yes ap-southeast-5

The ID of the region where the network instance is deployed.

You can call the DescribeRegions operation to query the most recent region list.

ChildInstanceType String Yes VPC

The type of the attached network instance. Valid values:

  • VPC: a virtual private cloud (VPC)
  • VBR: a virtual border router (VBR)
DestinationCidrBlock String Yes 192.168.22.0/24

The destination CIDR block of the route entry.

Specify the value of this parameter in CIDR notation. Example: 192.168.10.0/24.

RouteTableId String Yes vtb-k1aa8ulqs39f86op8****

The ID of the route table of the network instance.

ChildInstanceAliUid Long No 1787100000000000

The ID of the Alibaba Cloud account to which the network instance belongs.

Note If the network instance belongs to another Alibaba Cloud account, this parameter is required.

Response parameters

Parameter Type Example Description
RequestId String 437ED236-BE47-5370-8695-15C58C7A8014

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateCenChildInstanceRouteEntryToCen
&CenId=cen-7febra5nqj7jjh****
&ChildInstanceId=vpc-k1alm2jbuwibhxtx2****
&ChildInstanceRegionId=ap-southeast-5
&ChildInstanceType=VPC
&DestinationCidrBlock=192.168.22.0/24
&RouteTableId=vtb-k1aa8ulqs39f86op8****
&<Common request parameters>

Sample success responses

XML format

<CreateCenChildInstanceRouteEntryToCenResponse>
  <RequestId>437ED236-BE47-5370-8695-15C58C7A8014</RequestId>
</CreateCenChildInstanceRouteEntryToCenResponse>

JSON format

{
    "RequestId": "437ED236-BE47-5370-8695-15C58C7A8014"
}

Error codes

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