• Virtual Private Cloud

vpc
  1. Help Center
  2. Virtual Private Cloud
  3. API Reference
  4. APIs
  5. VPC Route
  6. Querying a VPC Route

Querying a VPC Route

Function

This interface is used to query details about a route.

URI

GET /v2.0/vpc/routes/{route_id}
Table 1 Parameter description

Name

Mandatory

Type

Description

route_id

Yes

String

Specifies the route ID, which uniquely identifies the route.

Request Message

  • Request parameter

    None

  • Example request
    GET /v2.0/vpc/routes/60c809cb-6731-45d0-ace8-3bf5626421a9

Response Message

  • Response parameter
    Table 2 Response parameter

    Parameter

    Type

    Description

    route

    Dict

    Specifies the route object list. For details, see Table 1.

  • Example response
    {
        "route": { 
            "type": "peering",  
            "nexthop": "60c809cb-6731-45d0-ace8-3bf5626421a9",  
            "destination": "192.168.200.0/24",  
            "vpc_id": "ab78be2d-782f-42a5-aa72-35879f6890ff",  
            "tenant_id": "6fbe9263116a4b68818cf1edce16bc4f",
            "id": "3d42a0d4-a980-4613-ae76-a2cddecff054" 
        }
    }

Status Codes

For details, see section Status Codes.