• Virtual Private Cloud

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

VPC Peering API Overview

Object Introduction

Manage and perform other operations on VPC peering connections, including querying VPC peering connections as well as creating, querying, deleting, and updating a VPC peering connection.

Object Model

Table 1 peering object

Attribute

Type

CRUD

Default Value

Constraint

Description

id

Uuid-str

R

Automatically generated

N/A

Specifies the VPC peering connection ID.

name

String(64)

CRU

N/A

N/A

Specifies the name of the VPC peering connection. The value can contain 1 to 64 characters.

status

String(16)

R

N/A

N/A

Specifies the VPC peering connection status. The value can be PENDING_ACCEPTANCE, REJECTED, EXPIRED, DELETED, or ACTIVE.

request_vpc_info

Dict

CR

N/A

N/A

Specifies information about the local VPC. For details, see Table 2.

accept_vpc_info

Dict

CR

N/A

N/A

Specifies information about the peer VPC. For details, see Table 2.

Table 2 vpc_info object

Attribute

Type

CRUD

Default Value

Constraint

Description

vpc_id

Uuid-str

CR

N/A

An existing VPC ID

Specifies the ID of a VPC involved in a VPC peering connection.

tenant_id

String(255)

CR

Tenant ID of the VPC

N/A

Specifies the ID of the project to which a VPC involved in the VPC peering connection belongs.