Query VPN Gateway Price

Last updated: 2020-06-04 18:10:44

    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 (InquiryVpnPrice) is used to query the VPN price.
    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.

    Parameter Name Required Type Description
    period Yes Int Length of purchase to be queried (in months). The maximum is 36 months.
    bandwidth Yes Int Bandwidth, supported values: 5, 10, 20, 50, 100 (in Mb/s).

    3. Output Parameters

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

    4. Error Codes

    The API does not have a business error code. For common error codes, see VPC Error Codes for details

    5. Example

    Input

      https://domain/v2/index.php?Action=InquiryVpnPrice
      &<Common request parameters>
      &period=1
      &bandwidth=5
    

    Output

    {
        "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
    Help