• Virtual Private Cloud

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

Route API Overview

Object Introduction

Manage and perform other operations on VPC routes, including querying routes, creating a route, querying a route, and deleting a route.

Object Model

Table 1 route object

Attribute

Type

CRUD

Default Value

Constraint

Description

id

String

R

Automatically generated

N/A

Specifies the route ID.

destination

String(64)

CR

N/A

N/A

Specifies the destination IP address or CIDR block.

nexthop

String(64)

CR

N/A

N/A

Specifies the next hop. If the route type is peering, enter the VPC peering connection ID.

type

String(16)

CR

N/A

Currently, the value can only be peering.

Specifies the route type.

vpc_id

String

CR

N/A

Existing VPC ID

Specifies the VPC for which a route is to be added.

tenant_id

String(255)

R

N/A

N/A

Specifies the project ID.