MENU
      addRouteTableSubnet

        addRouteTableSubnet


        記事の要約

        VPC環境で利用できます。

        概要

        ルートテーブルに関連するSubnetリストを追加します。

        リクエスト

        リクエストパラメータ

        パラメータ名必須の有無タイプ制約事項説明
        regionCodeNoStringリージョンコード
        関連付けられたSubnetが追加されるルートテーブルのリージョン(Region)を決定できます。
        regionCodeはgetRegionListアクションを通じて取得できます。
        Default:getRegionList照会結果の最初のリージョンを選択
        vpcNoYesStringVPC番号
        関連付けられたSubnetが追加されるルートテーブルのVPCを決定します。
        vpcNoはgetVpcListアクションを通じて取得できます。
        routeTableNoYesStringルートテーブル番号
        関連付けられたSubnetが追加されるルートテーブル番号を決定します。
        routeTableNoはgetRouteTableListアクションを通じて取得できます。
        subnetNoList.NYesList<String>追加する関連付けられたSubnet番号リスト
        subnetNoはgetSubnetListアクションを通じて取得できます。
        ex)--subnetNoList 1234 2345
        responseFormatTypeNoStringレスポンス結果のフォーマットタイプ
        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 addRouteTableSubnet --regionCode KR --vpcNo ***04 --routeTableNo ***38 --subnetNoList ***45
        Plain text

        レスポンス例

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

        <addRouteTableSubnetResponse>
          <requestId>d8559867-f266-4782-8bf4-d99bd318336e</requestId>
          <returnCode>0</returnCode>
          <returnMessage>success</returnMessage>
          <totalRows>2</totalRows>
          <subnetList>
            <subnet>
              <subnetNo>***44</subnetNo>
              <vpcNo>***04</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>
            <subnet>
              <subnetNo>***45</subnetNo>
              <vpcNo>***04</vpcNo>
              <zoneCode>KR-1</zoneCode>
              <subnetName>test-***</subnetName>
              <subnet>***.***.2.0/24</subnet>
              <subnetStatus>
                <code>INIT</code>
                <codeName>init</codeName>
              </subnetStatus>
              <subnetType>
                <code>PUBLIC</code>
                <codeName>Public</codeName>
              </subnetType>
            </subnet>
          </subnetList>
        </addRouteTableSubnetResponse>
        XML

        この記事は役に立ちましたか?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.