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.

getRouteList

Prev Next

VPC環境で利用できます。

概要

ルートテーブルに設定されたルートリストを照会します。

リクエスト

リクエストパラメータ

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

レスポンス

レスポンスデータタイプ

  • routeListタイプ
RouteList extends CommonResponse
private Integer totalRows;
private List routeList = new ArrayList<>();
Route
private String routeTableNo;
private String destinationCidrBlock;
private String targetName;
private CommonCode targetType;
private String targetNo;
private Boolean isDefault;

リクエスト例

ncloud vpc getRouteList --regionCode KR --routeTableNo ***38 --vpcNo ***04

レスポンス例

<getRouteListResponse>
  <requestId>97b1034c-e030-40b8-bc22-58da1c3e5b0b</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>2</totalRows>
  <routeList>
    <route>
      <destinationCidrBlock>***.***.0.0/16</destinationCidrBlock>
      <targetName>LOCAL</targetName>
      <routeTableNo>***38</routeTableNo>
      <targetType>
        <code>LOCAL</code>
        <codeName>Local</codeName>
      </targetType>
      <targetNo></targetNo>
      <isDefault>true</isDefault>
    </route>
    <route>
      <destinationCidrBlock>***.***.0.0/0</destinationCidrBlock>
      <targetName>INTERNET GATEWAY</targetName>
      <routeTableNo>***38</routeTableNo>
      <targetType>
        <code>IGW</code>
        <codeName>Internet Gateway</codeName>
      </targetType>
      <targetNo></targetNo>
      <isDefault>true</isDefault>
    </route>
  </routeList>
</getRouteListResponse>