VPC環境で利用できます。
ルーティングテーブルに関連付けられている Subnetリストを削除します。
構文
removeRouteTableSubnet構文は次の通りです。
./ncloud vpc removeRouteTableSubnet \
--vpcNo <vpc-no> \
--routeTableNo <route-table-no> \
--subnetNoList <subnet-no-list> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
オプション
removeRouteTableSubnetの実行時に指定できるオプションについて説明します。
必須オプション
removeRouteTableSubnetの必須オプションです。
| オプション | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
--vpcNo |
String | Required | VPC番号
|
--routeTableNo |
String | Required | ルーティングテーブル番号 |
--subnetNoList |
List | Required | Subnet番号リスト
|
共通オプション
vpcコマンドで共通して使用するオプションについては、VPCのオプションをご参照ください。
例
関連付けられている Subnetの削除リクエストが成功すると、各 Subnetの構成情報が返されます。
コマンド
コマンドの例は次の通りです。
./ncloud vpc removeRouteTableSubnet \
--vpcNo 12345678 \
--routeTableNo 45678901 \
--subnetNoList 23456789 \
--regionCode KR \
--output json
出力
出力の例は次の通りです。
{
"removeRouteTableSubnetResponse": {
"totalRows": 1,
"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"
}
}
],
"requestId": "d0e1f2a3-b4c5-6789-defa-012345678901",
"returnCode": "0",
"returnMessage": "success"
}
}