Accept an Intra-Region Peering Connection

Last updated: 2020-06-04 17:42:18

    Note:

    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new VPC API 3.0 which is standardized and faster.

    1. API Description

    This API (AcceptVpcPeeringConnection) is used to accept intra-region peering connections.
    Domain name for API requests: vpc.api.qcloud.com

    This API is used by the receiver to accept the request for intra-region peering connection from another account. The peering connection takes effect immediately after the request is accepted.

    2. Input Parameters

    Below is a list of API request parameters. You need to add common request parameters to your request when calling this API. For more information, see the Common Request Parameters page. The Action field for this API is AcceptVpcPeeringConnection.

    Parameter name Required Type Description
    peeringConnectionId Yes String ID of the VPC peering connection, for example: pcx-6gw5wvmk.

    3. Output Parameters

    Parameter name Type Description
    code Int Error code. 0: Successful; other values: Failed.
    message string Error message.

    4. Error Codes

    The following error codes only include business logic error codes for this API. For additional common error codes, see VPC Error Codes.

    Error code Description
    InvalidVpc.NotFound Invalid VPC. This error code indicates that the VPC does not exist. In this case, verify whether the resource information that you entered is correct.
    InvalidPeeringConnection.NotFound Invalid peering connection. This error code indicates that the peering connection does not exist. In this case, verify whether the resource information that you entered is correct.

    5. Example

    Input

    https://vpc.api.qcloud.com/v2/index.php?Action=AcceptVpcPeeringConnection
    &<Common Request Parameters>
    &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