tencent cloud

Feedback

InquiryPriceCreateProxy

Last updated: 2022-08-10 16:13:21

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 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 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.
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 Specifies whether to enable HTTP3. Valid values: 0 (disable HTTP3); 1 (enable HTTP3). Note: If HTTP3 is enabled for a connection, TCP/UDP access will not be allowed. After the connection is created, you cannot change your HTTP3 setting.

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

4. Example

Example1 Querying the price for creating an acceleration connection

Input Example

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

Output Example

{
  "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
      }
    ]
  }
}

5. Developer Resources

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

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support