createRouteTable
- Print
- PDF
createRouteTable
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Can be used in a VPC environment.
Overview
This creates a routing table.
Request
Request parameters
Parameter name | Required | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | Region code You can decide the region in which a routing table will be created. 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 in which a routing table will be created. vpcNo can be obtained through the getVpcList action. | |
routeTableName | No | String | Min : 3, Max : 30 Only lower case characters, numbers, and special character (-) are allowed, and it has to start with an English letter. It must end with an English letter or number. | The name of the routing table to be created Default: NAVER Cloud Platform automatically grants it. |
supportedSubnetTypeCode | Yes | String | Supported subnet type code This determines the subnet type that is supported by a routing table to be created. Options: PUBLIC (Public) | PRIVATE (Private) | |
routeTableDescription | No | String | Min : 0, Max : 1000 Bytes | The description about the routing table to be created |
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/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?