Can be used in a VPC environment.
Overview
Query the related subnet list set in the routing table.
Request
Request parameter
| Parameter Name | Required Status | Type | Restrictions | Description | 
|---|---|---|---|---|
| regionCode | No | String | Region Code You can decide the region of the routing table where the related subnet list will be queried. The regionCode can be obtained through the getRegionList action. Default: Select the first region of the getRegionList query results.  | 
|
| routeTableNo | Yes | String | Routing table number This determines the number of the routing table of the related subnet list to be queried. The routeTableNo can be obtained through the getRouteTableList action.  | 
|
| responseFormatType | No | String | Format type for the response result Options : xml | json Default : xml  | 
Response
Response data type
- SubnetList type
 
| SubnetList extends CommonResponse | 
|---|
| private Integer totalRows; | 
| private List | 
| Subnet | 
|---|
| private String subnetNo; | 
| private String vpcNo; | 
| private String zoneCode; | 
| private String subnetName; | 
| private String subnet; | 
| private CommonCode subnetStatus; | 
| private Date createDate; | 
| private CommonCode subnetType; | 
| private CommonCode usageType; | 
| private String networkAclNo; | 
Example
Request example
ncloud vpc getRouteTableSubnetList --regionCode KR --routeTableNo ***38
Response example
<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>