--- title: "getRouteTableSubnetList" slug: "cli-vpc-routetable-getroutetablesubnetlist" updated: 2026-10-08T09:55:10Z published: 2026-10-08T09:55:10Z canonical: "cli.ncloud-docs.com/cli-vpc-routetable-getroutetablesubnetlist" --- > ## 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. # getRouteTableSubnetList VPC環境で利用できます。 ルーティングテーブルに設定された関連 Subnetリストを照会します。 ## 構文 `getRouteTableSubnetList`構文は次の通りです。 ``` ./ncloud vpc getRouteTableSubnetList \ --routeTableNo \ [--regionCode ] \ [--output ] ``` ## オプション `getRouteTableSubnetList`の実行時に指定できるオプションについて説明します。 ### 必須オプション `getRouteTableSubnetList`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--routeTableNo` | String | Required | ルーティングテーブル番号 - [getRouteTableList](/docs/ja/cli-vpc-routetable-getroutetablelist)を参照 | ### 共通オプション `vpc`コマンドで共通して使用するオプションについては、[VPCのオプション](/docs/ja/cli-vpc#%EC%98%B5%EC%85%98)をご参照ください。 ## 例 関連付けられている Subnetリストの照会リクエストが成功すると、各 Subnetの構成情報が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vpc getRouteTableSubnetList \ --routeTableNo 45678901 \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "getRouteTableSubnetListResponse": { "totalRows": 2, "subnetList": [ { "subnetNo": "23456790", "vpcNo": "12345678", "zoneCode": "KR-1", "subnetName": "test-subnet-02", "subnet": "10.0.4.0/24", "subnetStatus": { "code": "RUN", "codeName": "実行中" }, "subnetType": { "code": "PUBLIC", "codeName": "Public" } }, { "subnetNo": "23456789", "vpcNo": "12345678", "zoneCode": "KR-1", "subnetName": "test-subnet-01", "subnet": "10.0.1.0/24", "subnetStatus": { "code": "RUN", "codeName": "実行中" }, "subnetType": { "code": "PUBLIC", "codeName": "Public" } } ], "requestId": "b8c9d0e1-f2a3-4567-bcde-890123456789", "returnCode": "0", "returnMessage": "success" } } ```