Domain name for API request: vpc.tencentcloudapi.com.
This API (InquiryPriceCreateVpnGateway) is used to query the price for VPN gateway creation.
A maximum of 100 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common parameter. The value used for this API: InquiryPriceCreateVpnGateway. |
Version | Yes | String | Common parameter. The value used for this API: 2017-03-12. |
Region | Yes | String | Common parameter. For more information, please see the list of regions supported by the product. |
InternetMaxBandwidthOut | Yes | Integer | The public network bandwidth configuration. Available bandwidth specifications: 5, 10, 20, 50, and 100. Unit: Mbps. |
InstanceChargeType | No | String | The VPN gateway billing mode. PREPAID: prepaid means monthly subscription. POSTPAID_BY_HOUR: postpaid means pay-as-you-go. Default: POSTPAID_BY_HOUR. If prepaid mode is specified, the InstanceChargePrepaid parameter must be entered. |
InstanceChargePrepaid | No | InstanceChargePrepaid | Parameter settings for prepaid billing mode, also known as monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. This parameter is mandatory for prepaid instances. |
Parameter Name | Type | Description |
---|---|---|
Price | Price | Product price. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://vpc.tencentcloudapi.com/?Action=InquiryPriceCreateVpnGateway
&Version=2017-03-12
&InstanceChargeType=PREPAID
&InstanceChargePrepaid.Period=1
&InternetMaxBandwidthOut=5
&<Common request parameters>
{
"Response": {
"Price": {
"InstancePrice": {
"OriginalPrice": 380,
"DiscountPrice": 380
}
},
"RequestId": "1b2534de-3f38-4913-921a-af5ff1a9cb73"
}
}
https://vpc.tencentcloudapi.com/?Action=InquiryPriceCreateVpnGateway
&Version=2017-03-12
&InstanceChargeType=POSTPAID_BY_HOUR
&InternetMaxBandwidthOut=5
&<Common request parameters>
{
"Response": {
"Price": {
"InstancePrice": {
"UnitPrice": 0.48,
"ChargeUnit": "HOUR"
},
"BandwidthPrice": {
"UnitPrice": 0.8,
"ChargeUnit": "GB"
}
},
"RequestId": "e87327cd-f8fa-4340-9959-58ebe8f11f6b"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InvalidParameterValue | Incorrect parameter value. |
문제 해결에 도움이 되었나요?