createRouteTable
    • PDF

    createRouteTable

    • PDF

    Article Summary

    Can be used in a VPC environment.

    Overview

    Create a routing table.

    Request

    Request parameter

    Parameter NameRequired StatusTypeRestrictionsDescription
    regionCodeNoStringRegion Code
    You can decide the region where the routing table is created.
    The regionCode can be obtained through the getRegionList action.
    Default: Select the first region of the getRegionList query results.
    vpcNoYesStringVPC number
    This determines the VPC where the routing table will be created.
    vpcNo can be obtained through the getVpcList action.
    routeTableNameNoStringMin : 3, Max : 30
    Only lowercase letters, numbers, and special characters "-" are allowed and it must start with an alphabetic character.
    It must end with an alphabet letter or number.
    The name of the routing table to be created
    Default: NAVER Cloud Platform automatically assigns it.
    supportedSubnetTypeCodeYesStringSupported subnet type code
    This determines the subnet type that is supported by the routing table to be created.
    Options: PUBLIC (public) | PRIVATE (private)
    routeTableDescriptionNoStringMin : 0, Max : 1000 BytesThe description about the routing table to be created
    responseFormatTypeNoStringFormat type for the response result
    Options : xml | json
    Default : xml

    Response

    Response data type

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

    Example

    Request example

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

    Response example

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

    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.