All Products
Search
Document Center

Virtual Private Cloud:DescribeRouteTableList

Last Updated:Oct 19, 2026

Queries route tables.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vpc:DescribeRouteTableList

list

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/*

  • vpc:VRouter
  • vpc:VBR
None

Request parameters

Parameter

Type

Required

Description

Example

RouterType

string

No

The type of the vRouter to which the route table belongs. Valid values:

  • VRouter (default): vRouter.

  • VBR: Virtual Border Router.

VRouter

RouterId

string

No

The ID of the vRouter 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.

If you specify this parameter, the value of the RouterType parameter is automatically set to VRouter.

vpc-bp15zckdt37pq72****

RouteTableId

string

No

The ID of the route table.

vtb-bp145q7glnuzdvzu2****

RouteTableName

string

No

The name of the route table.

doctest

PageNumber

integer

No

The page number. Default value: 1.

1

PageSize

integer

No

The number of entries to return per page in a paging query. Maximum value: 50. Default value: 10.

10

ResourceGroupId

string

No

The ID of the resource group to which the route table 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 region IDs.

ap-southeast-6

Tag

array<object>

No

The tags of the resource.

object

No

The tag.

Key

string

No

The tag key of 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, and cannot start with aliyun or acs:. It cannot contain http:// or https://.

FinanceDept

Value

string

No

The tag value of 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, and cannot start with aliyun or acs:. It cannot contain http:// or https://.

FinanceJoshua

RouteTableType

string

No

The type of the route table. Valid values:

  • System: system route table.

  • Custom: custom route table.

System

Response elements

Element

Type

Description

Example

object

The details of the queried route tables.

RequestId

string

The request ID.

DC668356-BCB4-42FD-9BC3-FA2B2E04B634

PageSize

integer

The number of entries per page.

10

PageNumber

integer

The current page number.

1

TotalCount

integer

The total number of entries.

1

RouterTableList

object

RouterTableListType

array<object>

The details of the route tables.

array<object>

The details of the route table.

VpcId

string

The ID of the VPC to which the route table belongs.

vpc-bp15zckdt37pq72****

CreationTime

string

The time when the route table was created. The time is displayed in ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.

2021-08-22T10:40:25Z

Status

string

The status of the route table. Valid values:

  • Pending: The route table is being created.

  • Available: The route table is available.

  • Deleting: The route table is being deleted.

Available

RouterId

string

The ID of the vRouter to which the route table belongs.

vrt-bp1lhl0taikrteen8****

AssociateType

string

The type of the cloud resource with which the route table is associated. Valid values:

  • VSwitch: vSwitch.

  • Gateway: IPv4 gateway.

VSwitch

RouteTableId

string

The ID of the route table.

vtb-bp145q7glnuzdvzu2****

OwnerId

integer

The Alibaba Cloud account ID to which the routing table belongs.

253460731706911258

Description

string

The description of the route table.

This is Route Table.

RouteTableType

string

The type of the route table. Valid values:

  • Custom: custom route table.

  • System: system route table.

System

ResourceGroupId

string

The ID of the resource group to which the route table belongs.

rg-acfmxazb4ph****

RouterType

string

The type of the vRouter to which the route table belongs. Valid values:

  • VRouter: vRouter.

  • VBR: Virtual Border Router.

VRouter

RouteTableName

string

The name of the route table.

doctest

Tags

object

Tag

array<object>

The tags of the route table.

object

The tags of the route table.

Key

string

The tag key of the route table.

type

Value

string

The tag value of the route table.

ingress

VSwitchIds

object

VSwitchId

array

The list of vSwitches.

string

The vSwitch ID.

vsw-bp12mw1f8k3jgygk9****

GatewayIds

object

GatewayIds

array

The details of the IPv4 gateway.

string

The details of the IPv4 gateway.

ipv4gw-5tsnc6s4ogsedtp3k****

RoutePropagationEnable

boolean

Specifies whether the route table receives propagated routes. Valid values:

  • true: The route table receives propagated routes.

  • false: The route table does not receive propagated routes.

true

Examples

Success response

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****"
          ]
        },
        "RoutePropagationEnable": true
      }
    ]
  }
}

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. The specified parameter OwnerAccount is illegal.
403 Forbbiden User not authorized to operate on the specified resource. User not authorized to operate on the specified resource.
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.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.