Query CLB Instance Price

Last updated: 2018-06-01 16:42:11

PDF

API Description

This API (InquiryLBPrice) is used to query the price of load balancer instance. For more information, please see Price Overview.

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. For more information, please see Common Request Parameters page. 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. For more information, please see Common Error Codes on the Error Codes page.
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
}