Modify Intra-region Peering Connections

Last updated: 2019-09-26 21:24:16

1. API Description

This API (ModifyVpcPeeringConnection) is used to modify the attributes of regional peering connection.
Domain for API request:

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 ModifyVpcPeeringConnection.

Parameter Name Required Type Description
peeringConnectionId Yes String ID of VPC peering connection, e.g. pcx-krmzap90.
peeringConnectionName Yes String Peering connection name. You can specify any name you like, but its length should be limited to 60 characters.

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
InvalidPeeringConnectionName Invalid peering connection name. It should be within 60 characters.
InvalidVpc.NotFound VPC not exist. Please check the information you entered.
InvalidPeeringConnection.NotFound Peering connection not exist. Please check the information you entered.

5. Example

Input<Common request parameters>&peeringConnectionId=pcx-krmzap90&peeringConnectionName=uuuuuuu