VPC環境で利用できます。
ルーティングテーブル番号を指定してルーティングテーブルの説明を変更します。
構文
setRouteTableDescription構文は次の通りです。
./ncloud vpc setRouteTableDescription \
--routeTableNo <route-table-no> \
[--routeTableDescription <route-table-description>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
オプション
setRouteTableDescriptionの実行時に指定できるオプションについて説明します。
必須オプション
setRouteTableDescriptionの必須オプションです。
| オプション | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
--routeTableNo |
String | Required | ルーティングテーブル番号 |
任意オプション
setRouteTableDescriptionの任意オプションです。指定しない場合、オプションにはデフォルト値が適用されます。
| オプション | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
--routeTableDescription |
String | Optional | ルーティングテーブルの説明 (Byte)
|
共通オプション
vpcコマンドで共通して使用するオプションについては、VPCのオプションをご参照ください。
例
ルーティングテーブルの説明の変更リクエストが成功すると、ルーティングテーブルの構成情報が返されます。
コマンド
コマンドの例は次の通りです。
./ncloud vpc setRouteTableDescription \
--routeTableNo 45678901 \
--routeTableDescription "Updated route table description" \
--regionCode KR \
--output json
出力
出力の例は次の通りです。
{
"setRouteTableDescriptionResponse": {
"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": "d4e5f6a7-b8c9-0123-defa-456789012345",
"returnCode": "0",
"returnMessage": "success"
}
}