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.
This API (InquiryVpnPrice) is used to query the VPN price.
Domain for API request: vpc.api.qcloud.com
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). |
Parameter Name | Type | Description |
---|---|---|
code | Int | Error code, 0: Succeeded, other values: Failed. |
message | String | Error message. |
price | Int | Price. |
The API does not have a business error code. For common error codes, see VPC Error Codes for details
Input
https://domain/v2/index.php?Action=InquiryVpnPrice &<Common request parameters> &period=1 &bandwidth=5
Output
{
"code" : 0,
"message" : "ok",
}
Was this page helpful?