removeRoute
- Print
- PDF
removeRoute
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Can be used in a VPC environment.
Overview
This removes the route list configured in the routing table. The default route can't be removed.
Request
Request parameters
Parameter name | Required | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | Region code You can decide the region of the routing table from which a route will be removed. 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 from which a route will be removed. vpcNo can be obtained through the getVpcList action. | |
routeTableNo | Yes | String | Routing table number This determines the number of the routing table from which a route will be removed. The routeTableNo can be obtained through the getRouteTableList action. | |
routeList.N.destinationCidrBlock | Yes | String | Destination IPv4 CIDR block This specifies the destination IP address range of the route to be removed. ex) routeList.1.destinationCidrBlock=0.0.0.0/0&routeList.2.destinationCidrBlock=100.10.20.0/24 | |
routeList.N.targetTypeCode | Yes | String | Destination type code This specifies the destination type of the route to be removed. Options : NATGW (NAT Gateway) | VPCPEERING (VPC Peering) | VGW (Virtual Private Gateway) ex) routeList.1.targetTypeCode=NATGW&routeList.2.targetTypeCode=VPCPEERING | |
routeList.N.targetNo | Yes | String | Destination identification number This determines the destination identification number corresponding to the destination type. The targetNo can be obtained through the query action corresponding to each destination type. ex) routeList.1.targetNo=1234&routeList.2.targetNo=2345 | |
routeList.N.targetName | Yes | String | Destination name Enter the destination name corresponding to the destination type. The targetName can be obtained through the query action corresponding to each destination type. ex) routeList.1.targetName=test-natgateway&routeList.2.targetName=test-peering | |
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/removeRoute
?regionCode=KR
&vpcNo=***04
&routeTableNo=***38
&routeList.1.destinationCidrBlock=***.***.200.0/24
&routeList.1.targetTypeCode=NATGW
&routeList.1.targetNo=***9734
&routeList.1.targetName=test-***
Response Example
The route list of the corresponding routing table after completing the request
<removeRouteResponse>
<requestId>fb1ea6cf-15bf-4600-b737-1d7bed33421e</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>2</totalRows>
<routeList>
<route>
<destinationCidrBlock>***.***.0.0/16</destinationCidrBlock>
<targetName>LOCAL</targetName>
<routeTableNo>***38</routeTableNo>
<targetType>
<code>LOCAL</code>
<codeName>Local</codeName>
</targetType>
<targetNo></targetNo>
<isDefault>true</isDefault>
</route>
<route>
<destinationCidrBlock>***.***.0.0/0</destinationCidrBlock>
<targetName>INTERNET GATEWAY</targetName>
<routeTableNo>***38</routeTableNo>
<targetType>
<code>IGW</code>
<codeName>Internet Gateway</codeName>
</targetType>
<targetNo></targetNo>
<isDefault>true</isDefault>
</route>
</routeList>
</removeRouteResponse>
Was this article helpful?