Renew VPN Gateway

Last updated: 2020-08-28 14:54:06


    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 (RenewVpn) is used to renew the VPN.
    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.

    Parameter Name Required Type Description
    vpcId Yes string VPC ID or unified ID (unified ID is recommended). For example: vpc-aa3z6vxo. Can be queried via the API DescribeVpcEx.
    vpnGwId Yes string VPN gateway ID to be modified, which can be vpnGwId or unVpnGwId. unVpnGwId is recommended. For example: pngw-nhg87nmg. Can be queried via the API DescribeVpnGw.
    period Yes Int Number of month you want to renew (up to 36 months)

    3. Output Parameters

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

    4. Error Codes

    This API does not have service error codes. For common error codes, see VPC Error Codes.

    5. Example


      &<Common request parameters>


        "code" : 0,
        "message" : "ok",

    Was this page helpful?

    Was this page helpful?

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