--- title: "getRouteTableList" slug: "cli-vpc-routetable-getroutetablelist" tags: ["VPC"] updated: 2026-10-08T05:05:50Z published: 2026-10-08T05:05:50Z canonical: "cli.ncloud-docs.com/cli-vpc-routetable-getroutetablelist" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # getRouteTableList Available in VPC Get the list of route tables based on the conditions the user specifies. ## Syntax The `getRouteTableList` syntax is as follows: ``` ./ncloud vpc getRouteTableList \ [--vpcNo ] \ [--routeTableNoList ] \ [--routeTableName ] \ [--supportedSubnetTypeCode ] \ [--sortedBy ] \ [--sortingOrder ] \ [--pageNo ] \ [--pageSize ] \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `getRouteTableList`. ### Required options The following options are required for `getRouteTableList`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--pageSize` | Integer | Conditional | Results to display per page - Required when specifying `pageNo`. - Uses `pageNo` and `pageSize` to paginate the results. | ### Optional options These are the optional options for `getRouteTableList`. Options that are not specified will use their default values. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--vpcNo` | String | Optional | VPC number - See [getVpcList](/docs/en/cli-vpc-vpcmanagement-getvpclist). | | `--routeTableNoList` | List | Optional | Route table number list - You can enter multiple items separated by spaces (e.g., `--routeTableNoList 1234 2345`). | | `--routeTableName` | String | Optional | Route table name | | `--supportedSubnetTypeCode` | String | Optional | Subnet type - `PUBLIC` \| `PRIVATE` - `PUBLIC`: Public subnet - `PRIVATE`: Private subnet | | `--sortedBy` | String | Optional | Sort by - `routeTableName` | | `--sortingOrder` | String | Optional | Sort order when using `sortedBy` - `ASC` (default) \| `DESC` - `ASC`: Ascending - `DESC`: Descending | | `--pageNo` | Integer | Optional | Page numbers in paged results - Page the result values using `pageNo` and `pageSize`. | ### Common options For information about the options common to all `vpc` subcommands, see [VPC options](/docs/en/cli-vpc#%EC%98%B5%EC%85%98). ## Examples If the request to retrieve the list of route tables is successful, the configuration information for each route table is returned. ### Command The command example is as follows: ``` ./ncloud vpc getRouteTableList \ --vpcNo 12345678 \ --routeTableNoList 45678901 45678902 \ --supportedSubnetTypeCode PUBLIC \ --sortedBy routeTableName \ --sortingOrder ASC \ --pageNo 1 \ --pageSize 10 \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "getRouteTableListResponse": { "totalRows": 2, "routeTableList": [ { "routeTableNo": "45678901", "routeTableName": "test-route-table", "regionCode": "KR", "vpcNo": "12345678", "supportedSubnetType": { "code": "PUBLIC", "codeName": "Public" }, "isDefault": false, "routeTableStatus": { "code": "RUN", "codeName": "In operation" }, "routeTableDescription": "Updated route table description" }, { "routeTableNo": "45678902", "routeTableName": "test-vpc-01-default-public-table", "regionCode": "KR", "vpcNo": "12345678", "supportedSubnetType": { "code": "PUBLIC", "codeName": "Public" }, "isDefault": true, "routeTableStatus": { "code": "RUN", "codeName": "In operation" }, "routeTableDescription": "VPC [test-vpc-01] default Route Table for public Subnet" } ], "requestId": "b2c3d4e5-f6a7-8901-bcde-f23456789012", "returnCode": "0", "returnMessage": "success" } } ```