--- title: "getRouteTableList" slug: "cli-vpc-routetable-getroutetablelist" updated: 2026-10-08T09:54:50Z published: 2026-10-08T09:54: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 VPC環境で利用できます。 ユーザーが指定した条件に基づいてルーティングテーブルリストを照会します。 ## 構文 `getRouteTableList`構文は次の通りです。 ``` ./ncloud vpc getRouteTableList \ [--vpcNo ] \ [--routeTableNoList ] \ [--routeTableName ] \ [--supportedSubnetTypeCode ] \ [--sortedBy ] \ [--sortingOrder ] \ [--pageNo ] \ [--pageSize ] \ [--regionCode ] \ [--output ] ``` ## オプション `getRouteTableList`の実行時に指定できるオプションについて説明します。 ### 必須オプション `getRouteTableList`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--pageSize` | Integer | Conditional | ページごとに表示する結果数 - `pageNo`入力時、必ず入力 - `pageNo`、`pageSize`を利用して結果値をページング処理 | ### 任意オプション `getRouteTableList`の任意オプションです。指定しない場合、オプションにはデフォルト値が適用されます。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--vpcNo` | String | Optional | VPC番号 - [getVpcList](/docs/ja/cli-vpc-vpcmanagement-getvpclist)を参照 | | `--routeTableNoList` | List | Optional | ルーティングテーブル番号リスト - スペースで区切って複数入力可能 (例: `--routeTableNoList 1234 2345`) | | `--routeTableName` | String | Optional | ルーティングテーブル名 | | `--supportedSubnetTypeCode` | String | Optional | サブネットタイプ - `PUBLIC` \| `PRIVATE` - `PUBLIC`: グローバルサブネット - `PRIVATE`: プライベートサブネット | | `--sortedBy` | String | Optional | ソート基準 - `routeTableName` | | `--sortingOrder` | String | Optional | `sortedBy`利用時のソート順 - `ASC` (デフォルト)\| `DESC` - `ASC`: 昇順 - `DESC`: 降順 | | `--pageNo` | Integer | Optional | ページングされた結果のページ番号 - `pageNo`、`pageSize`を利用して結果値をページング処理 | ### 共通オプション `vpc`コマンドで共通して使用するオプションについては、[VPCのオプション](/docs/ja/cli-vpc#%EC%98%B5%EC%85%98)をご参照ください。 ## 例 ルーティングテーブルリストの照会リクエストが成功すると、各ルーティングテーブルの構成情報が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vpc getRouteTableList \ --vpcNo 12345678 \ --routeTableNoList 45678901 45678902 \ --supportedSubnetTypeCode PUBLIC \ --sortedBy routeTableName \ --sortingOrder ASC \ --pageNo 1 \ --pageSize 10 \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "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": "実行中" }, "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": "実行中" }, "routeTableDescription": "VPC [test-vpc-01] default Route Table for public Subnet" } ], "requestId": "b2c3d4e5-f6a7-8901-bcde-f23456789012", "returnCode": "0", "returnMessage": "success" } } ```