Queries route tables.
debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:DescribeRouteTableList | List |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RouterType | string | No | The type of the router to which the route table belongs. Valid values:
| VRouter |
RouterId | string | No | The ID of the router to which the route table belongs. | vrt-bp1lhl0taikrteen8**** |
VpcId | string | No | The ID of the virtual private cloud (VPC) to which the route table belongs. After this parameter is specified, the value of the RouterType parameter is automatically set to VRouter. | vpc-bp15zckdt37pq72**** |
RouteTableId | string | No | The ID of the route table that you want to query. | vtb-bp145q7glnuzdvzu2**** |
RouteTableName | string | No | The name of the route table that you want to query. | doctest |
PageNumber | integer | No | The page number. Default value: 1. | 1 |
PageSize | integer | No | The number of entries returned per page. Maximum value: 50. Default value: 10. | 10 |
ResourceGroupId | string | No | The ID of the resource group to which the route table to be queried belongs. | rg-acfmxazb4ph**** |
RegionId | string | Yes | The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list. | ap-southeast-6 |
Tag | object [] | No | The tags of the resource. | |
Key | string | No | The key of tag N to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string. The tag key can be up to 128 characters in length. It cannot start with | FinanceDept |
Value | string | No | The value of tag N to add to the resource. You can specify up to 20 tag values. The tag value can be an empty string. The tag value can be up to 128 characters in length. It cannot start with | FinanceJoshua |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "DC668356-BCB4-42FD-9BC3-FA2B2E04B634",
"PageSize": 10,
"PageNumber": 1,
"TotalCount": 1,
"RouterTableList": {
"RouterTableListType": [
{
"VpcId": "vpc-bp15zckdt37pq72****",
"CreationTime": "2021-08-22T10:40:25Z",
"Status": "Available",
"RouterId": "vrt-bp1lhl0taikrteen8****",
"AssociateType": "VSwitch",
"RouteTableId": "vtb-bp145q7glnuzdvzu2****",
"OwnerId": 253460731706911260,
"Description": "This is Route Table.",
"RouteTableType": "System",
"ResourceGroupId": "rg-acfmxazb4ph****",
"RouterType": "VRouter",
"RouteTableName": "doctest",
"Tags": {
"Tag": [
{
"Key": "type",
"Value": "ingress"
}
]
},
"VSwitchIds": {
"VSwitchId": [
"vsw-bp12mw1f8k3jgygk9****"
]
},
"GatewayIds": {
"GatewayIds": [
"ipv4gw-5tsnc6s4ogsedtp3k****"
]
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidTagKey | The tag keys are not valid. | The tag index is invalid. |
400 | InvalidTagValue | The tag values are not valid. | The tag value is invalid. |
400 | IellgalParameter.OwnerAccount | The specified parameter OwnerAccount is not valid. | - |
403 | Forbbiden | User not authorized to operate on the specified resource. | The error message returned because you are unauthorized to perform this operation on the specified resource. Acquire the required permissions and try again. |
403 | Abs.InvalidPayType | Specified pay type is not valid. | - |
403 | Abs.InstanceNotExist | Specified instance not exist. | - |
403 | Abs.Forbidden | Specified instance cannot change pay type. | - |
403 | Abs.InvalidPayPeriod | Specified pay period not valid. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-11-27 | The error codes of the API operation change.,The input parameters of the API operation change. | see changesets | ||||||||||||
| ||||||||||||||
2023-08-14 | The error codes of the API operation change. | see changesets | ||||||||||||
| ||||||||||||||
2023-08-03 | API Description Update,The error codes of the API operation change.,The input parameters of the API operation change. | see changesets | ||||||||||||
|