MENU
      createRouteTable

        createRouteTable


        記事の要約

        VPC環境で利用できます。

        概要

        ルートテーブルを作成します。

        リクエスト

        リクエストパラメータ

        パラメータ名必須の有無タイプ制約事項説明
        regionCodeNoStringリージョンコード
        ルートテーブルが作成されるリージョン(Region)を決定できます。
        regionCodeはgetRegionListアクションを通じて取得できます。
        Default:getRegionList照会結果の最初のリージョンを選択
        vpcNoYesStringVPC番号
        ルートテーブルが作成されるVPCを決定します。
        vpcNoはgetVpcListアクションを通じて取得できます。
        routeTableNameNoStringMin : 3, Max : 30
        小文字、数字、特殊文字のハイフン(-)のみが認められ、最初の文字をアルファベットにしてください。
        アルファベットまたは数字で終わるようにしてください。
        作成するルートテーブル名
        Default:NAVER Cloud Platformが自動的に付与します。
        supportedSubnetTypeCodeYesStringサポートするサブネットのタイプコード
        作成するルートテーブルがサポートするサブネットタイプを決定します。
        Options : PUBLIC (グローバル) | PRIVATE (プライベート)
        routeTableDescriptionNoStringMin : 0, Max : 1000 Bytes作成するルートテーブルに関する説明
        responseFormatTypeNoStringレスポンス結果のフォーマットタイプ
        Options : xml | json
        Default : xml

        レスポンス

        レスポンスデータタイプ

        • RouteTableListタイプ
        RouteTableList extends CommonResponse
        private Integer totalRows;
        private List routeTableList = new ArrayList<>();
        RouteTable
        private String routeTableNo;
        private String routeTableName;
        private String regionCode;
        private String vpcNo;
        private CommonCode supportedSubnetType;
        private Boolean isDefault;
        private CommonCode routeTableStatus;
        private String routeTableDescription;

        リクエスト例

        ncloud vpc createRouteTable --regionCode KR --vpcNo ***04 --routeTableName test-*** --supportedSubnetTypeCode PUBLIC
        Plain text

        レスポンス例

        <createRouteTableResponse>
          <requestId>9f59a9dc-cddf-4580-a232-3359f088a1e8</requestId>
          <returnCode>0</returnCode>
          <returnMessage>success</returnMessage>
          <totalRows>1</totalRows>
          <routeTableList>
            <routeTable>
              <routeTableNo>***38</routeTableNo>
              <routeTableName>test-***</routeTableName>
              <regionCode>KR</regionCode>
              <vpcNo>***04</vpcNo>
              <supportedSubnetType>
                <code>PUBLIC</code>
                <codeName>Public</codeName>
              </supportedSubnetType>
              <isDefault>false</isDefault>
              <routeTableStatus>
                <code>RUN</code>
                <codeName>run</codeName>
              </routeTableStatus>
              <routeTableDescription></routeTableDescription>
            </routeTable>
          </routeTableList>
        </createRouteTableResponse>
        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.