Queries the publishing status of VPC route entries.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ListVpcPublishedRouteEntries |
list |
*RouteTable
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| RouteTableId |
string |
Yes |
The ID of the route table. |
vtb-bp145q7glnuzd**** |
| DestinationCidrBlock |
string |
No |
The destination CIDR block of the route entry. Supports IPv4 and IPv6 CIDR blocks. |
47.100.XX.XX/16 |
| TargetType |
string |
Yes |
The publishing target type. |
ECR |
| TargetInstanceId |
string |
No |
The publishing target instance ID. |
ecr-dhw2xsds5**** |
| MaxResults |
integer |
No |
The number of entries per page. Valid values: 1 to 500. Default value: 50. |
50 |
| NextToken |
string |
No |
The pagination token for the next query.
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
1D0971B2-A35A-42C1-A44C-E91360C36C0B |
| NextToken |
string |
The pagination token for the next query.
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RouteEntries |
array<object> |
The route entries and their publishing status. |
|
|
array<object> |
The route entries and their publishing status. |
||
| RouteEntryId |
string |
The ID of the route entry. |
rte-bp1mnnr2al0naomnpv**** |
| DestinationCidrBlock |
string |
The destination CIDR block of the route entry. |
10.0.0.0/24 |
| RouteTableId |
string |
The ID of the route table. |
vtb-2ze3jgygk9bmsj23s**** |
| RoutePublishTargets |
array<object> |
The publishing targets and their status. |
|
|
object |
The publishing targets and their status. |
||
| PublishStatus |
string |
The route entry publishing status. Valid values:
|
Published |
| PublishTargetType |
string |
The publishing target type. |
ECR |
| PublishTargetInstanceId |
string |
The publishing target instance ID. |
ecr-xvuqdfma6x57ei**** |
Examples
Success response
JSON format
{
"RequestId": "1D0971B2-A35A-42C1-A44C-E91360C36C0B",
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RouteEntries": [
{
"RouteEntryId": "rte-bp1mnnr2al0naomnpv****",
"DestinationCidrBlock": "10.0.0.0/24",
"RouteTableId": "vtb-2ze3jgygk9bmsj23s****",
"RoutePublishTargets": [
{
"PublishStatus": "Published",
"PublishTargetType": "ECR",
"PublishTargetInstanceId": "ecr-xvuqdfma6x57ei****"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotAssociated.TargetInstance | The target instance is not associated with vpc. | |
| 400 | ResourceNotFound.RouteTable | The specified resource gatewayRouteTable is not found. | The gateway route table does not exist. |
| 400 | IllegalParam.NextToken | The specified NextToken is invalid. | The specified NextToken is invalid. |
| 400 | IllegalParam.NextTokenExpired | The specified NextToken is invalid. | The specified NextToken is invalid. |
| 400 | IllegalParam.TargetType | The parameter of TargetType is illegal. | The parameter TargetType is illegal. |
| 400 | OperationDenied.UnexpectedRouteTable | Operation is denied because only system route table supports publishing route entries. | The operation was denied because only the system routing table supports publishing routes |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.