• Virtual Private Cloud

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

Updating a VPC Peering Connection

Function

Updates a VPC peering connection.

URI

PUT /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.

Request Message

  • Request parameter
    Table 2 Request parameter

    Parameter

    Type

    Mandatory

    Description

    peering

    Dict

    Yes

    Updates a VPC peering connection.

    Mandatory: None. When updating a VPC peering connection, you must specify at least one attribute. Currently, only the VPC peering connection name can be updated.

  • Example request
    PUT /v2.0/vpc/peerings/7a9a954a-eb41-4954-a300-11ab17a361a2 
    { 
        "peering": { 
            "name": "test2" 
        } 
    }

Response Message

  • Response parameter
    Table 3 Response parameter

    Parameter

    Type

    Description

    peering

    Dict

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

  • Example response
    { 
        "peering": { 
            "name": "test2", 
           "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": "059a737356594b41b447b557bf0aae56"
            }, 
            "status": "ACTIVE"
        }
    }

Status Codes

For details, see section Status Codes.