getRouteTableDetail

Prev Next

Available in VPC

Get the details of a route table by specifying the route table number.

Syntax

The getRouteTableDetail syntax is as follows:

./ncloud vpc getRouteTableDetail \
    --routeTableNo <route-table-no> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running getRouteTableDetail.

Required options

The following options are required for getRouteTableDetail.

Options Type Required Description
--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 route table details is successful, the route table configuration information is returned.

Command

The command example is as follows:

./ncloud vpc getRouteTableDetail \
    --routeTableNo 45678901 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "getRouteTableDetailResponse": {
    "totalRows": 1,
    "routeTableList": [
      {
        "routeTableNo": "45678901",
        "routeTableName": "test-route-table",
        "regionCode": "KR",
        "vpcNo": "12345678",
        "supportedSubnetType": {
          "code": "PUBLIC",
          "codeName": "Public"
        },
        "isDefault": false,
        "routeTableStatus": {
          "code": "RUN",
          "codeName": "In operation"
        },
        "routeTableDescription": "Test route table"
      }
    ],
    "requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
    "returnCode": "0",
    "returnMessage": "success"
  }
}