Query CLB Instance Price

Last updated: 2019-11-29 20:35:18

API Description

This API (InquiryLBPrice) is used to query the price of load balancer instance.

Domain name for API access: lb.api.qcloud.com

Request Parameters

The following request parameter list only provides the API request parameters. Common request parameters are required when the API is called.The Action field for this API is InquiryLBPrice.

Parameter Name Required Type Description
loadBalancerType Yes Int Type of the load balancer instance.
2: Public network-based; 3: Private network-based.

Response Parameters

Parameter Name Type Description
code Int Common error code. 0: Successful; other values: Failed.
message String Module error message description depending on API.
codeDesc String Error code. For a successful operation, "Success" is returned. For a failed operation, a message describing the failure is returned.
price Int Price of the load balancer instance (in 0.01 CNY/hr).

Example

Query the price of a public-based load balancer instance.

https://lb.api.qcloud.com/v2/index.php?Action=InquiryLBPrice
&<Common request parameters>
&loadBalancerType=2

The returned correct output of the request:

{
    "code": 0,
    "message": "",
    "codeDesc": "Success",
    "price": 2
}