getRouteTableSubnetList

Prev Next

Available in VPC

Get the list of associated subnets set for a route table.

Request

This section describes the request format. The method and URI are as follows:

Method URI
GET, POST /getRouteTableSubnetList

Request headers

For information about the headers common to all VPC APIs, see VPC common headers.

Request query parameters

The following describes the parameters.

Field Type Required Description
regionCode String Optional Region code of the route table whose associated subnet list you want to query
  • First Region of the query result (default)
  • Check through getRegionList.
  • routeTableNo String Required Number of the route table whose associated subnet list you want to query
  • Check through getRouteTableList.
  • responseFormatType String Optional

    Request example

    The request example is as follows:

    curl --location 'https://ncloud.apigw.ntruss.com/vpc/v2/getRouteTableSubnetList
    ?regionCode=KR
    &routeTableNo=***38'
    --header 'x-ncp-iam-access-key: {Timestamp}'    
    --header 'x-ncp-iam-access-key: {Access Key}' 
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
    

    Response

    This section describes the response format.

    Response body

    See SubnetList for the response body.

    Response status codes

    For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

    Response example

    The response example is as follows:

    <getRouteTableSubnetListResponse>
      <requestId>a7ee6059-2060-481f-9a4d-b61a38bf387c</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <subnetList>
        <subnet>
          <subnetNo>***44</subnetNo>
          <vpcNo>***04</vpcNo>
          <zoneCode>KR-1</zoneCode>
          <subnetName>test-***</subnetName>
          <subnet>***.***.1.0/24</subnet>
          <subnetStatus>
            <code>INIT</code>
            <codeName>init</codeName>
          </subnetStatus>
          <subnetType>
            <code>PUBLIC</code>
            <codeName>Public</codeName>
          </subnetType>
        </subnet>
      </subnetList>
    </getRouteTableSubnetListResponse>