• Virtual Private Cloud

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

Querying a VPC Peering Connection

Function

This interface is used to query details about a VPC peering connection.

URI

GET /v2.0/vpc/peerings/{peering_id}
Table 1 Parameter description

Name

Mandatory

Type

Description

peering_id

Yes

String

Specifies the VPC peering connection ID, which uniquely identifies the VPC peering connection. The peering_id value is used as the filter.

Request Message

  • Request parameter

    None

  • Example request
    GET /v2.0/vpc/peerings/22b76469-08e3-4937-8c1d-7aad34892be1

Response Message

  • Response parameter
    Table 2 Response parameter

    Parameter

    Type

    Description

    peering

    Dict

    Specifies the VPC peering connection object list. For details, see Table 1.

  • Example response
    { 
        "peering": { 
            "name": "test", 
            "id": "22b76469-08e3-4937-8c1d-7aad34892be1"
            "request_vpc_info": {
               "vpc_id": "9daeac7c-a98f-430f-8e38-67f9c044e299",
               "tenant_id": "f65e9ebc-ed5d-418b-a931-9a723718ba4e"
            },
            "accept_vpc_info": {
               "vpc_id": "f583c072-0bb8-4e19-afb2-afb7c1693be5",
               "tenant_id": "f65e9ebc-ed5d-418b-a931-9a723718ba4e"
            }, 
    "status": "ACTIVE"
        }
    }

Status Codes

For details, see section Status Codes.