Query VPN Gateway Price

Last updated: 2017-12-08 15:31:20

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",
}