tencent cloud



Last updated: 2022-05-19 15:57:48

1. API Description

Domain name for API request: clb.tencentcloudapi.com.

This API is used to query CLB instance details, including listener, rules, and target real servers.

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: DescribeLoadBalancersDetail.
Version Yes String Common Params. The value used for this API: 2018-03-17.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
Limit No Integer Number of CLB instance lists returned. Default value: 20; maximum value: 100.
Offset No Integer Starting offset of the CLB instance list returned. Default value: 0.
Fields.N No Array of String List of fields. Only fields specified will be returned. If it’s left blank, null is returned. The fields LoadBalancerId and LoadBalancerName are added by default. For details about fields, see LoadBalancerDetail.
TargetType No String Target type. Valid values: NODE and GROUP. If the list of fields contains TargetId, TargetAddress, TargetPort, TargetWeight and other fields, Target of the target group or non-target group must be exported.
Filters.N No Array of Filter Filter condition of querying lists describing CLB instance details:
  • loadbalancer-id - String - Required: no - (Filter condition) CLB instance ID, such as "lb-12345678".
  • project-id - String - Required: no - (Filter condition) Project ID, such as "0" and "123".
  • network - String - Required: no - (Filter condition) Network type of the CLB instance, such as "Public" and "Private".
  • vip - String - Required: no - (Filter condition) CLB instance VIP, such as "" and "2204::22:3".
  • target-ip - String - Required: no - (Filter condition) Private IP of the target real servers, such as"" and "2203::214:4".
  • vpcid - String - Required: no - (Filter condition) Identifier of the VPC instance to which the CLB instance belongs, such as "vpc-12345678".
  • zone - String - Required: no - (Filter condition) Availability zone where the CLB instance resides, such as "ap-guangzhou-1".
  • tag-key - String - Required: no - (Filter condition) Tag key of the CLB instance, such as "name".
  • tag:* - String - Required: no - (Filter condition) CLB instance tag, followed by tag key after the colon ':'. For example, use {"Name": "tag:name","Values": ["zhangsan", "lisi"]} to filter the tag key “name” with the tag value “zhangsan” and “lisi”.
  • fuzzy-search - String - Required: no - (Filter condition) Fuzzy search for CLB instance VIP and CLB instance name, such as "1.1".
  • 3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer Total number of lists describing CLB instance details.
    LoadBalancerDetailSet Array of LoadBalancerDetail List of CLB instance details.
    Note: this field may return null, indicating that no valid values 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 CLB instance details

    Input Example

    &<Common request parameters>

    Output Example

      "Response": {
        "TotalCount": 0,
        "LoadBalancerDetailSet": [],
        "RequestId": "d09b91ba-a81e-4ca3-b423-c64e60127c64"

    5. Developer Resources


    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
    FailedOperation Operation failed.
    InternalError Internal error.
    InvalidParameter Parameter error.
    InvalidParameter.FormatError Wrong parameter format.
    InvalidParameterValue Incorrect parameter value.
    InvalidParameterValue.InvalidFilter Incorrect Filter parameter.
    InvalidParameterValue.Length Wrong parameter length.
    InvalidParameterValue.Range Wrong parameter value range.
    UnauthorizedOperation Unauthorized operation.
    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