addRouteTableSubnet
- Print
- PDF
addRouteTableSubnet
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Can be used in a VPC environment.
Overview
This adds a related subnet list to the routing table.
Request
Request parameters
Parameter name | Required | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | Region code You can decide the region of the routing table in which the related subnet will be added. regionCode can be obtained through the getRegionList action. Default: Select the first region of the getRegionList search results | |
vpcNo | Yes | String | VPC number This determines the VPC of the routing table in which a related subnet will be added. vpcNo can be obtained through the getVpcList action. | |
routeTableNo | Yes | String | Routing table number This determines the routing table number in which a related subnet will be added. The routeTableNo can be obtained through the getRouteTableList action. | |
subnetNoList.N | Yes | List<String> | List of related subnet numbers to be added subnetNo can be obtained through the getSubnetList action. ex) subnetNoList.1=1234&subnetNoList.2=2345 | |
responseFormatType | No | String | Format type of the response results Options : xml | json Default : xml |
Response
Response body
Example
Request Example
GET {API_URL}/vpc/v2/addRouteTableSubnet
?regionCode=KR
&vpcNo=***04
&routeTableNo=***38
&subnetNoList.1=***45
Response Example
The related subnet list of the corresponding routing table after completing the request
<addRouteTableSubnetResponse>
<requestId>d8559867-f266-4782-8bf4-d99bd318336e</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>2</totalRows>
<subnetList>
<subnet>
<subnetNo>***44</subnetNo>
<vpcNo>***04</vpcNo>
<zoneCode>KR-1</zoneCode>
<subnetName>test-***</subnetName>
<subnet>***.***.1.0/24</subnet>
<subnetStatus>
<code>RUN</code>
<codeName>run</codeName>
</subnetStatus>
<subnetType>
<code>PUBLIC</code>
<codeName>Public</codeName>
</subnetType>
</subnet>
<subnet>
<subnetNo>***45</subnetNo>
<vpcNo>***04</vpcNo>
<zoneCode>KR-1</zoneCode>
<subnetName>test-***</subnetName>
<subnet>***.***.2.0/24</subnet>
<subnetStatus>
<code>INIT</code>
<codeName>init</codeName>
</subnetStatus>
<subnetType>
<code>PUBLIC</code>
<codeName>Public</codeName>
</subnetType>
</subnet>
</subnetList>
</addRouteTableSubnetResponse>
Was this article helpful?