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.

removeRouteTableSubnet

Prev Next

VPC環境で利用できます。

概要

ルートテーブルに関連するSubnetリストを取り消します。

リクエスト

リクエストパラメータ

パラメータ名 必須の有無 タイプ 制約事項 説明
regionCode No String リージョンコード
関連付けられたSubnetが取り消されるルートテーブルのリージョン(Region)を決定できます。
regionCodeはgetRegionListアクションを通じて取得できます。
Default:getRegionList照会結果の最初のリージョンを選択
vpcNo Yes String VPC番号
関連付けられたSubnetが取り消されるルートテーブルのVPCを決定します。
vpcNoはgetVpcListアクションを通じて取得できます。
routeTableNo Yes String ルートテーブル番号
関連付けられたSubnetが取り消されるルートテーブル番号を決定します。
routeTableNoはgetRouteTableListアクションを通じて取得できます。
subnetNoList.N Yes List<String> 取り消す関連付けられたSubnet番号リスト
subnetNoはgetSubnetListアクションを通じて取得できます。
ex)--subnetNoList 1234 2345
responseFormatType No String レスポンス結果のフォーマットタイプ
Options : xml | json
Default : xml

レスポンス

レスポンスデータタイプ

  • SubnetListタイプ
SubnetList extends CommonResponse
private Integer totalRows;
private List subnetList = new ArrayList<>();
Subnet
private String subnetNo;
private String vpcNo;
private String zoneCode;
private String subnetName;
private String subnet;
private CommonCode subnetStatus;
private Date createDate;
private CommonCode subnetType;
private CommonCode usageType;
private String networkAclNo;

リクエスト例

ncloud vpc removeRouteTableSubnet --regionCode KR --vpcNo ***04 --routeTableNo ***38 --subnetNoList ***45

レスポンス例

リクエストの実行後、当該ルートテーブルの関連付けられたSubnetリスト

<removeRouteTableSubnetResponse>
  <requestId>fbbfe907-87a9-41cf-9941-7c8b7c81e66f</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <subnetList>
    <subnet>
      <subnetNo>***44</subnetNo>
      <vpcNo>3804</vpcNo>
      <zoneCode>KR-1</zoneCode>
      <subnetName>test-***</subnetName>
      <subnet>***.***.1.0/24</subnet>
      <subnetStatus>
        <code>RUN</code>
        <codeName>run</codeName>
      </subnetStatus>
      <subnetType>
        <code>PUBLIC</code>
        <codeName>Public</codeName>
      </subnetType>
    </subnet>
  </subnetList>
</removeRouteTableSubnetResponse>