Activate Expired Intra-region Peering Connections

Last updated: 2019-11-29 19:40:14

    1. API Description

    This API (EnableVpcPeeringConnection) is used to activate expired regional peering connection.
    Domain for API request: vpc.api.qcloud.com

    If the receiver does not accept the request for a cross-account peering connection within 7 days after the request is initiated, the peering connection become expired. Upon the expiration, the receiver will not be able to perform any action on the peering connection. The initiator can use this API to activate the peering connection and notify the receiver to process the 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 EnableVpcPeeringConnection.

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

    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 toVPC Error Codes.

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

    5. Example

    Input

    https://vpc.api.qcloud.com/v2/index.php?Action=EnableVpcPeeringConnection
    &>
    &peeringConnectionId=pcx-6gw5wvmk
    

    Output

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

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help