Domain name for API request: gaap.tencentcloudapi.com.
This API (InquiryPriceCreateProxy) is used to create the price inquiries of acceleration connections.
A maximum of 20 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.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: InquiryPriceCreateProxy. |
Version | Yes | String | Common Params. The value used for this API: 2018-05-29. |
Region | No | String | Common Params. This parameter is not required. |
AccessRegion | Yes | String | Acceleration region name. |
Bandwidth | Yes | Integer | Connection bandwidth cap. Unit: Mbps. |
DestRegion | No | String | Origin server region name. It's an old parameter, please switch to RealServerRegion. |
Concurrency | No | Integer | Upper limit of connection concurrence, which indicates a number of simultaneous online connections. Unit: 10,000 connections. It's an old parameter, please switch to Concurrent. |
RealServerRegion | No | String | Origin server region name; It's a new parameter. |
Concurrent | No | Integer | Upper limit of connection concurrence, which indicates a number of simultaneous online connections. Unit: 10,000 connections. It's a new parameter. |
BillingType | No | Integer | Billing mode. Valid values: 0: bill-by-bandwidth (default value); 1: bill-by-traffic. |
IPAddressVersion | No | String | IP version. Valid values: IPv4 (default), IPv6 . |
NetworkType | No | String | Network type. Valid values: normal (default), cn2 |
PackageType | No | String | Package type of connection groups. Valid values: Thunder (general), Accelerator (specific for games), and CrossBorder (cross-MLC-border connection). |
Http3Supported | No | Integer | (Disused) HTTP3.0 is supported by default when IPAddressVersion is IPv4 . |
Parameter Name | Type | Description |
---|---|---|
ProxyDailyPrice | Float | Basic price of connection in USD/day. |
BandwidthUnitPrice | Array of BandwidthPriceGradient | Tiered price of connection bandwidth. Note: this field may return null, indicating that no valid values can be obtained. |
DiscountProxyDailyPrice | Float | Discounted basic price of connection in USD/day. |
Currency | String | Currency, which supports CNY, USD, etc. |
FlowUnitPrice | Float | Connection traffic price in USD/GB. Note: this field may return null, indicating that no valid values can be obtained. |
DiscountFlowUnitPrice | Float | Discounted connection traffic price in USD/GB. Note: this field may return null, indicating that no valid values can be obtained. |
Cn2BandwidthPrice | Float | Dedicated BGP bandwidth price. Unit: USD/Mbps/day Note: this field may return null , indicating that no valid value can be obtained. |
Cn2BandwidthPriceWithDiscount | Float | Dedicated BGP bandwidth discount price. Unit: USD/Mbps/day Note: this field may return null , indicating that no valid value can be obtained. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: gaap.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: InquiryPriceCreateProxy
<Common request parameters>
{
"Concurrency": "2",
"Bandwidth": "10",
"RealServerRegion": "SouthChina",
"AccessRegion": "EastChina"
}
{
"Response": {
"Cn2BandwidthPrice": 0.0,
"Cn2BandwidthPriceWithDiscount": 0.0,
"ProxyDailyPrice": 80.64,
"FlowUnitPrice": 0.0,
"Currency": "xx",
"DiscountProxyDailyPrice": 56.84,
"RequestId": "xx",
"DiscountFlowUnitPrice": 0.0,
"BandwidthUnitPrice": [
{
"BandwidthRange": [
0,
20
],
"BandwidthUnitPrice": 0.0,
"DiscountBandwidthUnitPrice": 0.0
},
{
"BandwidthRange": [
20,
100
],
"BandwidthUnitPrice": 0.0,
"DiscountBandwidthUnitPrice": 0.0
},
{
"BandwidthRange": [
100,
500
],
"BandwidthUnitPrice": 0.0,
"DiscountBandwidthUnitPrice": 0.0
},
{
"BandwidthRange": [
500,
2000
],
"BandwidthUnitPrice": 0.0,
"DiscountBandwidthUnitPrice": 0.0
},
{
"BandwidthRange": [
2000,
0
],
"BandwidthUnitPrice": 0.0,
"DiscountBandwidthUnitPrice": 0.0
}
]
}
}
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 |
---|---|
AuthFailure | CAM signature/authentication error. |
AuthFailure.NotEnterpriseAuthorization | Not an organizational customer. |
AuthFailure.UnauthorizedOperation | The sub-account is not authorized for this operation. |
FailedOperation | Operation failed. |
FailedOperation.ResourceUpgrading | The resource is being upgraded. |
FailedOperation.UserNotConfirmProtocol | Protocol not activated. |
InternalError | Internal error. |
InvalidParameter | Incorrect parameter. |
InvalidParameterValue | Incorrect parameter value. |
InvalidParameterValue.InvalidBandwidth | The bandwidth value is not in the range. |
InvalidParameterValue.InvalidConcurrency | The number of concurrences is not in the range. |
InvalidParameterValue.UnknownAccessRegion | The acceleration region is not found or you have no access permission to it. |
InvalidParameterValue.UnknownDestRegion | The origin server region is not found or you have no access permission to it. |
MissingParameter | Missing parameter. |
ResourceNotFound | The resource does not exist. |
ResourceUnavailable | The resource is unavailable. |
ResourceUnavailable.AccountViolation | Restricted resources found in your account. Check your inbox and email for details. |
UnauthorizedOperation | Unauthorized operation. |
UnknownParameter | Unknown parameter. |
本页内容是否解决了您的问题?