tencent cloud

Cloud Load Balancer

Release Notes and Announcements
CLB Release Notes
Product Announcements
Product Introduction
Overview
Strengths
Use Cases
Principles
Product Comparison
Use Limits
Service Regions and Service Providers
Purchase Guide
Billing Overview
Billing
CLB Resource Package
Purchase Methods
Payment Overdue
Product Attribute Selection
Getting Started
Getting Started with Domain Name-Based CLB
Getting Started with CLB
Getting Started with IPv6 CLB
Deploying Nginx on CentOS
Deploying Java Web on CentOS
Operation Guide
CLB Instance
CLB Listener
Real Server
Health Check
Certificate Management
Log Management
Monitoring and Alarm
Cloud Access Management
Classic CLB
Practical Tutorial
Deploy certificate to CLB (mutual authentication)
Enabling Gzip Compression & Testing
HTTPS Forwarding Configurations
Obtaining Real Client IPs
Best Practices for Configuring Load Balancing Monitoring Alerts
Implementing HA Across Multiple AZs
Load Balancing Algorithm Selection and Weight Configuration Examples
Configuring WAF protection for CLB listening domain names
Configure IAP to authenticate web access to the CLB domain and path
Configure IAP to authenticate programmatic access to CLB's domain and path
Ops Guide
Solution to Excessive Clients in TIME_WAIT Status
Load Balancer HTTPS Service Performance Test
Stress Testing FAQ
CLB Certificate Operation Permissions
Troubleshooting
UDP Health Check Exception
API Documentation
History
Introduction
API Category
Instance APIs
Listener APIs
Backend Service APIs
Target Group APIs
Redirection APIs
Other APIs
Classic CLB APIs
Load Balancing APIs
Making API Requests
Data Types
Error Codes
CLB API 2017
FAQs
Billing
CLB Configuration
Troubleshooting Health Check Issues
HTTPS
WS/WSS Protocol Support
HTTP/2 Protocol Support
Default Domain Name Blocking Prompt
Service Level Agreement
Contact Us
Glossary

InquiryLBPriceAll

PDF
Focus Mode
Font Size
Last updated: 2025-11-20 15:17:49

API Description

This API is used to query the price of CLB instances. For more information about the prices, see Billing Description.
Domain name for API calls: lb.api.qcloud.com

Request Parameters

The list below contains only the API request parameters. Common parameters should be added when you call the API. For more information, see Common Request Parameters. The Action field for this API is InquiryLBPriceAll.
Parameter
Required
Type
Description
loadBalancerType
Yes
Int
CLB type.
2: public network CLB
3: private network CLB
lbChargeType
Yes
String
Billing mode of the CLB instance.
POSTPAID_BY_HOUR: pay-as-you-go on an hourly basis. Keep the default value.
goodsNum
No
Int
Number of instances. Default value: 1
internetAccessible
No
Array
Network billing mode of the CLB instance, such as maximum bandwidth. This field is required for public network CLB.
loadBalancerId
No
String
This field is required only when you renew an instance or modify its configuration.
internetAccessible type
Parameter
Required
Type
Description
internetChargeType
Yes
String
Network billing mode.
TRAFFIC_POSTPAID_BY_HOUR: bill-by-traffic on an hourly pay-as-you-go basis
BANDWIDTH_POSTPAID_BY_HOUR: bill-by-bandwidth on an hourly pay-as-you-go basis
BANDWIDTH_PACKAGE: bill by bandwidth package (only for specified ISPs currently)
internetMaxBandwidthOut
Yes
Int
Maximum outbound bandwidth, in Mbps. Valid ranges: 0-2048 Mbps. This field is only effective for public network CLB instances.

Response Parameters

Parameter
Type
Description
code
Int
Common error code. 0: success; other values: failure. For more information, see Common Error Codes.
message
String
API-related module error message description.
codeDesc
String
Error code. For a successful operation, "Success" is returned. For a failed operation, a message describing the failure is returned.
price
Array
Prices of the CLB instances, in USD.

Example

Querying the price of a public network CLB instance.
https://lb.api.qcloud.com/v2/index.php?Action=InquiryLBPriceAll
&<Common request parameters>
&loadBalancerType=2
&lbChargeType=PREPAID
&goodsNum=1
&inquiryType=2
&internetAccessible.internetChargeType=BANDWIDTH_PREPAID
&internetAccessible.internetMaxBandwidthOut=1
&lbChargePrepaid.period=1
Successful response:
{
"code": 0,
"message": "",
"codeDesc": "Success",
"price": {
"lbIdPrice": {
"originalPrice": 37.4,
"discountPrice": 11.22
}
}
}


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback