getRouteList
    • PDF

    getRouteList

    • PDF

    Article summary

    Can be used in a VPC environment.

    Overview

    Query the routing list set in the routing table.

    Request

    Request parameter

    Parameter NameRequired StatusTypeRestrictionsDescription
    regionCodeNoStringRegion Code
    You can decide the region of the routing table where the routing list will be queried.
    The regionCode can be obtained through the getRegionList action.
    Default: Select the first region of the getRegionList query results.
    routeTableNoYesStringRouting table number
    This determines the routing table number of the routing list to be queried.
    The routeTableNo can be obtained through the getRouteTableList action.
    vpcNoYesStringVPC number
    This determines the VPC number of the routing table to be queried.
    vpcNo can be obtained through the getVpcList action.
    responseFormatTypeNoStringFormat type for the response result
    Options : xml | json
    Default : xml

    Response

    Response data type

    • routeList type
    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;

    Example

    Request example

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

    Response example

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

    Was this article helpful?

    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.