createRouteTable

Prev Next

VPC環境で利用できます。

概要

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

リクエスト

リクエストパラメータ

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

レスポンス例

<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>