InquiryPriceCreateProxy

Last updated: 2019-11-25 22:37:20

1. API Description

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.

2. Input Parameters

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 parameter. The value used for this API: InquiryPriceCreateProxy
Version Yes String Common parameter. The value used for this API: 2018-05-29
Region No String Common parameter. This parameter is not required for this API.
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.

3. Output Parameters

Parameter Name Type Description
ProxyDailyPrice Float Basic cost of connection (unit: CNY/day).
BandwidthUnitPrice Array of BandwidthPriceGradient Connection bandwidth price gradient.
DiscountProxyDailyPrice Float Discounted basic cost of connection (unit: CNY/day).
Currency String Currency, which supports CNY, USD, etc.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Creating an Acceleration Connection Price Inquiry

Input Example

https://gaap.tencentcloudapi.com/?Action=InquiryPriceCreateProxy
&AccessRegion=EastChina
&RealServerRegion=SouthChina
&Bandwidth=10
&Concurrency=2
&<Common request parameters>

Output Example

{
  "Response": {
    "ProxyDailyPrice": 80.64,
    "DiscountProxyDailyPrice": 56.84,
    "Currency": "CNY",
    "BandwidthUnitPrice": [
      {
        "BandwidthRange": [
          0,
          20
        ],
        "BandwidthUnitPrice": 130
      },
      {
        "BandwidthRange": [
          20,
          100
        ],
        "BandwidthUnitPrice": 90
      },
      {
        "BandwidthRange": [
          100,
          500
        ],
        "BandwidthUnitPrice": 70
      },
      {
        "BandwidthRange": [
          500,
          2000
        ],
        "BandwidthUnitPrice": 60
      },
      {
        "BandwidthRange": [
          2000,
          -1
        ],
        "BandwidthUnitPrice": 50
      }
    ],
    "RequestId": "81370460-5826-4c6f-a864-9b825a4a04b9"
  }
}

5. Developer Resources

API Explorer

This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed
InternalError Internal error
InvalidParameter Parameter error
InvalidParameterValue Parameter value error
InvalidParameterValue.InvalidBandwidth The bandwidth value is not in the range.
InvalidParameterValue.InvalidConcurrency The number of concurrences is not in the range.
InvalidParameterValue.UnknownAccessRegion An acceleration region that is unknown or you have no access permissions to it.
InvalidParameterValue.UnknownDestRegion An origin server region that is unknown or you have no access permissions to it.
MissingParameter Parameter missing
ResourceNotFound Resource does not exist
ResourceUnavailable Resource is unavailable
UnauthorizedOperation Unauthorized operation
UnknownParameter Unknown parameter error