Available in VPC
Get the list of routes set in a route table.
Syntax
The getRouteList syntax is as follows:
./ncloud vpc getRouteList \
--vpcNo <vpc-no> \
--routeTableNo <route-table-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getRouteList.
Required options
The following options are required for getRouteList.
| Options | Type | Required | Description |
|---|---|---|---|
--vpcNo |
String | Required | VPC number
|
--routeTableNo |
String | Required | Route table number
|
Common options
For information about the options common to all vpc subcommands, see VPC options.
Examples
If the request to retrieve the route list is successful, the configuration information for each route is returned.
Command
The command example is as follows:
./ncloud vpc getRouteList \
--vpcNo 12345678 \
--routeTableNo 45678901 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getRouteListResponse": {
"totalRows": 2,
"routeList": [
{
"destinationCidrBlock": "0.0.0.0/0",
"targetName": "INTERNET GATEWAY",
"routeTableNo": "45678901",
"targetType": {
"code": "IGW",
"codeName": "Internet Gateway"
},
"targetNo": "",
"isDefault": false
},
{
"destinationCidrBlock": "10.0.0.0/16",
"targetName": "LOCAL",
"routeTableNo": "45678901",
"targetType": {
"code": "LOCAL",
"codeName": "Local"
},
"targetNo": "",
"isDefault": true
}
],
"requestId": "e5f6a7b8-c9d0-1234-efab-567890123456",
"returnCode": "0",
"returnMessage": "success"
}
}