Adds a route entry to a network instance by calling the CreateCenChildInstanceRouteEntryToCen operation.
Operation description
The CreateCenChildInstanceRouteEntryToCen operation is not available by default. To use this operation, submit a ticket.
The CreateCenChildInstanceRouteEntryToCen operation does not support adding route entries to network instances in an Enterprise Edition transit router.
The next hop of the route entry defaults to the regional gateway of Cloud Enterprise Network (CEN) and cannot be modified.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:CreateCenChildInstanceRouteEntryToCen |
create |
*CenInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CenId |
string |
Yes |
The CEN instance ID. |
cen-7febra5nqj7jjh**** |
| ChildInstanceId |
string |
Yes |
The network instance ID. |
vpc-k1alm2jbuwibhxtx2**** |
| ChildInstanceType |
string |
Yes |
The type of the network instance. Valid values:
|
VPC |
| ChildInstanceRegionId |
string |
Yes |
The region ID of the network instance. You can call the DescribeRegions operation to query the region ID. |
ap-southeast-5 |
| ChildInstanceAliUid |
integer |
No |
The Alibaba Cloud account ID to which the network instance belongs. Note
This parameter is required if the network instance belongs to a different Alibaba Cloud account. |
1787100000000000 |
| RouteTableId |
string |
Yes |
The ID of the route table of the network instance. |
vtb-k1aa8ulqs39f86op8**** |
| DestinationCidrBlock |
string |
Yes |
The destination CIDR block of the route entry. The destination CIDR block must be in CIDR format. Example: 192.168.10.0/24. |
192.168.22.0/24 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
437ED236-BE47-5370-8695-15C58C7A8014 |
Examples
Success response
JSON format
{
"RequestId": "437ED236-BE47-5370-8695-15C58C7A8014"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationFailed.TransitRouterType | The specified TransitRouterType does not support the operation. | The error message returned because this operation is not supported by the specified type of transit router. |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.