Reject Intra-region Peering Connections

Last updated: 2019-09-26 21:26:27

cloud.tencent.com## 1. API Description

This API (RejectVpcPeeringConnection) is used to reject regional peering connection within the same region.
Domain for API request: vpc.api.qcloud.com

2. Input Parameters

The following request parameter list only provides API request parameters. Common request parameters need to be added when the API is called. For more information, refer to Common Request Parameters. The Action field for this API is RejectVpcPeeringConnection.

Parameter Name Required Type Description
peeringConnectionId Yes String ID of VPC peering connection, e.g. pcx-8g675gr8.

3. Output Parameters

Parameter Name Type Description
code Int Error code, 0: Succeeded; other values: Failed.
message String Error message.

4. Error Codes

The following error code list only provides the business logic error codes for this API. For additional common error codes, refer to VPC Error Codes.

Error Code Description
InvalidVpc.NotFound VPC does not exist. Please check the information your entered.
InvalidPeeringConnection.NotFound Peering connection does not exist. Please check the information your entered.

5. Example

Input

https://vpc.api.qcloud.com/v2/index.php?Action=RejectVpcPeeringConnection&<Common request parameters>&peeringConnectionId=pcx-8g675gr8

Output

{
    "code":"0",
    "message":""
}