Publishes VPC routes to external components.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:PublishVpcRouteEntries |
update |
*RouteTable
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. You can call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
| RegionId |
string |
No |
The list of route entries to publish. A maximum of 50 routes can be specified. |
cn-hangzhou |
| RouteEntries |
array<object> |
No |
The type of the route publish target. |
|
|
object |
No |
List of route entry information to be published. |
||
| RouteTableId |
string |
Yes |
The ID of the route table for the route entry. |
vtb-2ze3jgygk9bmsj23s**** |
| DestinationCidrBlock |
string |
Yes |
The destination CIDR block for the route entry. |
121.41.165.123/32 |
| TargetType |
string |
Yes |
The publish route entry target instance ID. |
ECR |
| TargetInstanceId |
string |
Yes |
Specifies whether to perform a dry run. Valid values:
|
ecr-dhw2xsds5**** |
| DryRun |
boolean |
No |
Indicates whether to perform a dry run of this request. Values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
980960B0-2969-40BF-8542-EBB34FD358AB |
Examples
Success response
JSON format
{
"RequestId": "980960B0-2969-40BF-8542-EBB34FD358AB"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.Vpc | The status of %s [%s] is incorrect. | The instance is in an invalid state. |
| 400 | ResourceNotFound.RouteEntry | The specified resource routeEntry is not found. | The specified route entry does not exist |
| 400 | IncorrectStatus.RouteEntry | The status of %s [%s] is incorrect. | Route entry is in non-steady state |
| 400 | Forbidden.OperateCustomRouteTable | The operation is forbidden because publish route entry in custom route table. | The operation is prohibited because it is not allowed to publish route entries in the custom route table. |
| 400 | IncorrectStatus.RouteEntryPublishStatus | Route entry publish status is incorrect. | The route publish status of the route entry is incorrect. |
| 400 | ResourceNotAssociated.TargetInstance | The target instance is not associated with vpc. | |
| 400 | OperationDenied.UnsupportedTargetType | The operation is not allowed because the target type is not supported. | The operation was rejected because the type of the route publication target is not currently supported. |
| 400 | IncorrectStatus.RouteTable | The route table is in an invalid state. | The specified routing table is in the wrong state |
| 400 | OperationUnsupported.PublishSystemRouteEntry | Publishing system route entry is unsupported. | Publishing system routes is not supported. |
| 400 | OperationUnsupported.UnsupportedNextHop | Unsupported nexthop type for route entry publish operation. | The next hop type of the route entry does not support publishing. |
| 400 | OperationUnsupported.PublishPrefixListRouteEntry | Publishing prefix list route entry is unsupported. | Publishing route prefix list routes is not supported. |
| 400 | InvalidRouteTableId.NotFound | Specified route table does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.