--- title: "createRouteTable" slug: "cli-vpc-routetable-createroutetable" updated: 2026-10-08T09:55:24Z published: 2026-10-08T09:55:24Z canonical: "cli.ncloud-docs.com/cli-vpc-routetable-createroutetable" --- > ## 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. # createRouteTable VPC環境で利用できます。 ユーザーが指定した条件に基づいてルーティングテーブルを作成します。 ## 構文 `createRouteTable`構文は次の通りです。 ``` ./ncloud vpc createRouteTable \ --vpcNo \ --supportedSubnetTypeCode \ [--routeTableName ] \ [--routeTableDescription ] \ [--regionCode ] \ [--output ] ``` ## オプション `createRouteTable`の実行時に指定できるオプションについて説明します。 ### 必須オプション `createRouteTable`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--vpcNo` | String | Required | VPCの番号 - [getVpcList](/docs/ja/cli-vpc-vpcmanagement-getvpclist)を参照 | | `--supportedSubnetTypeCode` | String | Required | サブネットタイプ - `PUBLIC` \| `PRIVATE` - `PUBLIC`: グローバルサブネット - `PRIVATE`: プライベートサブネット | ### 任意オプション `createRouteTable`の任意オプションです。指定しない場合、オプションにはデフォルト値が適用されます。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--routeTableName` | String | Optional | ルーティングテーブルの名前 - 英字の小文字、数字、記号の`-`を組み合わせて3~30文字以内で入力 - 先頭文字は英字、末尾文字は英字または数字のみ使用 - 未入力の場合は、NAVERクラウドプラットフォームが自動で割り当て | | `--routeTableDescription` | String | Optional | ルーティングテーブルの説明 (Byte) - `0`~`1,000` | ### 共通オプション `vpc`コマンドで共通して使用するオプションについては、[VPCのオプション](/docs/ja/cli-vpc#%EC%98%B5%EC%85%98)をご参照ください。 ## 例 ルーティングテーブルの作成リクエストが成功すると、ルーティングテーブルの構成情報と作成状態が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vpc createRouteTable \ --vpcNo 12345678 \ --supportedSubnetTypeCode PUBLIC \ --routeTableName test-route-table \ --routeTableDescription "Test route table" \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "createRouteTableResponse": { "totalRows": 1, "routeTableList": [ { "routeTableNo": "45678901", "routeTableName": "test-route-table", "regionCode": "KR", "vpcNo": "12345678", "supportedSubnetType": { "code": "PUBLIC", "codeName": "Public" }, "isDefault": false, "routeTableStatus": { "code": "RUN", "codeName": "実行中" }, "routeTableDescription": "Test route table" } ], "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "returnCode": "0", "returnMessage": "success" } } ```