addRouteTableSubnet
- Print
- PDF
addRouteTableSubnet
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Can be used in a VPC environment.
Overview
Add the related subnet list to 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 will be added. The regionCode can be obtained through the getRegionList action. Default: Select the first region of the getRegionList query results. | |
vpcNo | Yes | String | VPC number This determines the VPC of the routing table where the related subnet will be added. vpcNo can be obtained through the getVpcList action. | |
routeTableNo | Yes | String | Routing table number This determines the number of the routing table where the related subnet will be added. The routeTableNo can be obtained through the getRouteTableList action. | |
subnetNoList.N | Yes | List<String> | List of the related subnet numbers to be added The subnetNo can be obtained through the getSubnetList action. ex) --subnetNoList 1234 2345 | |
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 addRouteTableSubnet --regionCode KR --vpcNo ***04 --routeTableNo ***38 --subnetNoList ***45
Response example
The related subnet list of the corresponding routing tables after executing 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?