CreateCenChildInstanceRouteEntryToCen
Adds a route entry to a network instance.
Operation description
By default, the CreateCenChildInstanceRouteEntryToCen operation is not available. To use this operation, submit a ticket.
The CreateCenChildInstanceRouteEntryToCen operation does not support adding route entries to network instances in Enterprise Edition transit routers.
The next hop of the route entry defaults to the regional gateway of the 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 region IDs. |
ap-southeast-5 |
| ChildInstanceAliUid |
integer |
No |
The ID of the Alibaba Cloud account to which the network instance belongs. Note
This parameter is required if the network instance belongs to another 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. |
| 400 | InvalidParameter.CenId | The specified parameter CenId is invalid. | The entered parameter CenId is invalid. |
| 400 | InvalidParameter.RouteTableId | The specified parameter RouteTableId is invalid. | The parameter RouteTableId entered is illegal. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.