VPC環境で利用できます。
ルーティングテーブル番号を指定してルーティングテーブルを削除します。Subnetに関連付けられているルーティングテーブルと、自動作成されたデフォルトのルーティングテーブルは削除できません。
構文
deleteRouteTable構文は次の通りです。
./ncloud vpc deleteRouteTable \
--routeTableNo <route-table-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
オプション
deleteRouteTableの実行時に指定できるオプションについて説明します。
必須オプション
deleteRouteTableの必須オプションです。
| オプション | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
--routeTableNo |
String | Required | ルーティングテーブル番号 |
共通オプション
vpcコマンドで共通して使用するオプションについては、VPCのオプションをご参照ください。
例
ルーティングテーブルの削除リクエストが成功すると、ルーティングテーブルの構成情報が返されます。
コマンド
コマンドの例は次の通りです。
./ncloud vpc deleteRouteTable \
--routeTableNo 45678901 \
--regionCode KR \
--output json
出力
出力の例は次の通りです。
{
"deleteRouteTableResponse": {
"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": "Updated route table description"
}
],
"requestId": "e1f2a3b4-c5d6-7890-efab-123456789012",
"returnCode": "0",
"returnMessage": "success"
}
}