This API has been deprecated. We recommend migrating to Vpc(2016-04-28) - DescribeRouteTableList for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DescribeRouteTables |
get |
*RouteTable
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
||
| VRouterId |
string |
No |
||
| RouteTableId |
string |
No |
||
| RouterType |
string |
No |
||
| RouterId |
string |
No |
||
| RouteTableName |
string |
No |
||
| PageNumber |
integer |
No |
||
| PageSize |
integer |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
||
| RequestId |
string |
||
| PageNumber |
integer |
||
| TotalCount |
integer |
||
| RouteTables |
object |
||
| RouteTable |
array<object> |
||
|
array<object> |
|||
| CreationTime |
string |
The time when the route table was created. The time is displayed in UTC and follows the ISO 8601 standard in the |
|
| VRouterId |
string |
The ID of the VRouter that the route table belongs to. |
|
| RouteTableId |
string |
The ID of the route table. |
|
| ResourceGroupId |
string |
The ID of the resource group that the route table belongs to. |
|
| RouteTableType |
string |
The type of the route table. Valid values:
|
|
| RouteEntrys |
object |
A container for the list of route entries. |
|
| RouteEntry |
array<object> |
A list of route entries. |
|
|
array<object> |
|||
| Type |
string |
The type of the route entry. Valid values:
|
|
| Status |
string |
The status of the route entry. Valid values:
|
|
| NextHopType |
string |
The type of the next hop. Valid values:
|
|
| DestinationCidrBlock |
string |
The destination CIDR block of the route entry. |
|
| InstanceId |
string |
The ID of the instance that serves as the next hop. Note
This parameter is returned only when |
|
| RouteTableId |
string |
The ID of the route table that the route entry belongs to. |
|
| NextHops |
object |
Details of the next hops for an ECMP route. |
|
| NextHop |
array<object> |
A list of next hops. |
|
|
object |
|||
| Weight |
integer |
The weight of the next hop. A larger value indicates a higher priority. Note
This parameter is returned only for ECMP routes. Valid values: 0 to 100. |
|
| NextHopId |
string |
The ID of the next hop. |
|
| NextHopType |
string |
The type of the next hop. Valid values:
|
|
| Enabled |
integer |
Whether the next hop of the ECMP route is enabled. Valid values:
|
Examples
Success response
JSON format
{
"PageSize": 0,
"RequestId": "",
"PageNumber": 0,
"TotalCount": 0,
"RouteTables": {
"RouteTable": [
{
"CreationTime": "",
"VRouterId": "",
"RouteTableId": "",
"ResourceGroupId": "",
"RouteTableType": "",
"RouteEntrys": {
"RouteEntry": [
{
"Type": "",
"Status": "",
"NextHopType": "",
"DestinationCidrBlock": "",
"InstanceId": "",
"RouteTableId": "",
"NextHops": {
"NextHop": [
{
"Weight": 0,
"NextHopId": "",
"NextHopType": "",
"Enabled": 0
}
]
}
}
]
}
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.