InquiryPriceCreateProxy

Last updated: 2020-10-16 18:17:19

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

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.
BillingType No Integer Billing mode. Valid values: 0: bill-by-bandwidth (default value); 1: bill-by-traffic.

3. Output Parameters

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.
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.

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

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 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 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 Missing parameter.
ResourceNotFound The resource does not exist.
ResourceUnavailable The resource is unavailable.
UnauthorizedOperation Unauthorized operation.
UnknownParameter Unknown parameter.

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback
Help