Domain name for API request: clb.tencentcloudapi.com.
This API is used to query the price of creating a CLB instance.
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: InquiryPriceCreateLoadBalancer. |
Version | Yes | String | Common Params. The value used for this API: 2018-03-17. |
Region | No | String | Common Params. This parameter is not required for this API. |
LoadBalancerType | Yes | String | Network type of the CLB to query. OPEN : Public network; INTERNAL : Private network is intranet type |
LoadBalancerChargeType | Yes | String | The billing mode to query. POSTPAID :Pay as you go |
LoadBalancerChargePrepaid | No | LBChargePrepaid | Reserved field |
InternetAccessible | No | InternetAccessible | The network billing mode to query |
GoodsNum | No | Integer | Number of CLB instances to query. Default value: 1. |
ZoneId | No | String | Availability zone in the format of "ap-guangzhou-1" |
SlaType | No | String | Specification of the LCU-supported instance, which is input to query the monthly subscription price. Valid values: |
AddressIPVersion | No | String | IP version. Valid values: IPV4 (default), IPV6 (IPV6 NAT64 version) or IPv6FullChain (IPv6 version). |
VipIsp | No | String | It only applies to public CLB. Currently, the static single-line IP type is supported only for the regions of Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu, and Chongqing. If you need to experience it, contact your business manager. After approval, you can select the ISP type as China Mobile (CMCC), China Unicom (CUCC), or China Telecom (CTCC). The network billing mode should be selected as billing by bandwidth package (BANDWIDTH_PACKAGE). If this parameter is not specified, BGP is used by default. You can use the DescribeResources API to query ISPs supported for a region. |
Parameter Name | Type | Description |
---|---|---|
Price | Price | Price of the instance with the specified configurations. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to query the price for creating a prepaid CLB instance.
https://clb.tencentcloudapi.com/?Action=InquiryPriceCreateLoadBalancer
&LoadBalancerType=OPEN
&LoadBalancerChargeType=PREPAID
&GoodsNum=1
&InternetAccessible.InternetChargeType=BANDWIDTH_PREPAID
&InternetAccessible.InternetMaxBandwidthOut=1
&LoadBalancerChargePrepaid.Period=1
&<Common request parameters>
{
"Response": {
"Price": {
"InstancePrice": {
"UnitPrice": 0.02,
"ChargeUnit": "HOUR",
"OriginalPrice": null,
"DiscountPrice": null
},
"BandwidthPrice": {
"UnitPrice": 0.8,
"ChargeUnit": "GB",
"OriginalPrice": null,
"DiscountPrice": null
},
"LcuPrice": null
},
"RequestId": "f4953b5c-990c-49fa-9937-7aebef241d42"
}
}
This example shows you how to query the price for creating a pay-as-you-go CLB instance in the pay-as-you-go network billing mode.
https://clb.tencentcloudapi.com/?Action=InquiryPriceCreateLoadBalancer
&LoadBalancerType=OPEN
&LoadBalancerChargeType=POSTPAID
&InternetAccessible.InternetChargeType=TRAFFIC_POSTPAID_BY_HOUR
&InternetAccessible.InternetMaxBandwidthOut=1
&<Common request parameters>
{
"Response": {
"Price": {
"InstancePrice": {
"UnitPrice": 0.02,
"ChargeUnit": "HOUR",
"OriginalPrice": null,
"DiscountPrice": null
},
"BandwidthPrice": {
"UnitPrice": 48,
"ChargeUnit": "Mbps/MONTH",
"OriginalPrice": null,
"DiscountPrice": null
},
"LcuPrice": null
},
"RequestId": "19a2e45d-ed96-4f60-a954-99a4d41752f3"
}
}
This example shows you how to query the price for creating a pay-as-you-go CLB instance in the network billing mode by bandwidth package.
https://clb.tencentcloudapi.com/?Action=InquiryPriceCreateLoadBalancer
&LoadBalancerType=OPEN
&LoadBalancerChargeType=POSTPAID
&GoodsNum=1
&InternetAccessible.InternetChargeType=BANDWIDTH_PACKAGE
&InternetAccessible.BandwidthpkgSubType=SINGLEISP
&<Common request parameters>
{
"Response": {
"Price": {
"InstancePrice": {
"UnitPrice": 0.02,
"ChargeUnit": "HOUR",
"OriginalPrice": null,
"DiscountPrice": null
},
"BandwidthPrice": {
"UnitPrice": 0.04,
"ChargeUnit": "HOUR",
"OriginalPrice": null,
"DiscountPrice": null
},
"LcuPrice": null
},
"RequestId": "835f9cd8-6af1-4ac6-8fc3-2a9f900b7fff"
}
}
This example shows you how to query the price for creating a pay-as-you-go CLB instance in the network billing mode by bandwidth.
https://clb.tencentcloudapi.com/?Action=InquiryPriceCreateLoadBalancer
&LoadBalancerType=OPEN
&LoadBalancerChargeType=POSTPAID
&InternetAccessible.InternetChargeType=BANDWIDTH_POSTPAID_BY_HOUR
&InternetAccessible.InternetMaxBandwidthOut=1
&<Common request parameters>
{
"Response": {
"Price": {
"BandwidthPrice": null,
"InstancePrice": {
"OriginalPrice": 37.4,
"DiscountPrice": 37.4,
"UnitPrice": null,
"ChargeUnit": null
},
"LcuPrice": null
},
"RequestId": "52f22ea7-3592-4ff0-9d63-a5cc14b79859"
}
}
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 |
---|---|
FailedOperation | Operation failed. |
InternalError | Internal error. |
InvalidParameter | Parameter error. |
InvalidParameterValue | Incorrect parameter value. |
UnauthorizedOperation | Unauthorized operation. |
本页内容是否解决了您的问题?