All Products
Search
Document Center

ENS:DescribeLoadBalancerAttribute

Last Updated:Aug 11, 2026

Queries the details of a specified load balancing instance.

Operation description

  • API call rate: 100 calls per second.

  • Per-user call rate: 10 calls per second.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ens:DescribeLoadBalancerAttribute

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

LoadBalancerId

string

Yes

The ID of the load balancing instance.

lb-5rcvo1n1t3hykfhhjwjgq****

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

LoadBalancerId

string

The ID of the load balancing instance.

lb-5rcvo1n1t3hykfhhjwjgqp****

LoadBalancerName

string

The name of the load balancing instance.

example

LoadBalancerStatus

string

The listener status of the load balancing instance. Valid values:

  • Active: The listeners of the instance can forward received traffic based on rules.

  • InActive: The listeners of the instance no longer forward received traffic.

Active

EnsRegionId

string

The ENS node ID.

cn-chengdu-telecom

Address

string

The service address of the load balancing instance.

192.168.XX.XX

NetworkId

string

The network ID.

n-5rwbi3g9zvgxcsiufwhw8****

VSwitchId

string

The vSwitch ID.

vsw-5s78m2pdr9osa0j64bn78****

Bandwidth

integer

The peak bandwidth of the load balancing instance. The default value is -1, which indicates that bandwidth is not throttled.

-1

LoadBalancerSpec

string

The specification of the load balancing instance.

elb.s2.medium

CreateTime

string

The creation time of the load balancing instance (UTC).

2019-05-21T12:22:00Z

EndTime

string

The end time of the load balancing instance in ISO 8601 UTC format (YYYY-MM-DDTHH:mm:ssZ).

2020-05-21T12:22:00Z

ListenerPorts

array

The frontend ports used by the load balancing instance.

string

The frontend ports used by the load balancing instance.

80

BackendServers

array<object>

The list of backend servers.

object

The list of backend servers.

ServerId

string

The instance ID of the backend server.

i-5vb5h5njxiuhn48a****

Ip

string

The IP address of the backend server.

192.168.XX.XX

Port

string

The port used by the backend server.

0

Type

string

The server type of the backend server.

ens

Weight

integer

The weight of the backend server.

100

ListenerPortsAndProtocols

array<object>

The frontend ports and protocols used by the load balancing instance.

object

The frontend ports and protocols used by the load balancing instance.

ListenerPort

integer

The listener port.

8080

ListenerProtocol

string

The listener protocol.

tcp

Description

string

The description.

test

ListenerForward

string

Indicates whether listener forwarding is enabled.

off

ForwardPort

integer

The destination listener port to which traffic is forwarded.

0

BackendServerPort

integer

The backend port used by the load balancing instance. Valid values: 1 to 65535.

6000

AddressIPVersion

string

The IP version of the load balancing instance. Valid values: ipv4 or ipv6.

ipv4

PayType

string

The billing method. Valid values:

  • PrePaid: subscription.

  • PostPaid (currently the only supported billing method): pay-as-you-go.

PostPaid

LoadBalancerType

string

The type of the load balancing instance.

CLB

AddressType

string

The address type of the load balancing instance.

internet

Examples

Success response

JSON format

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "LoadBalancerId": "lb-5rcvo1n1t3hykfhhjwjgqp****",
  "LoadBalancerName": "example",
  "LoadBalancerStatus": "Active",
  "EnsRegionId": "cn-chengdu-telecom",
  "Address": "192.168.XX.XX",
  "NetworkId": "n-5rwbi3g9zvgxcsiufwhw8****",
  "VSwitchId": "vsw-5s78m2pdr9osa0j64bn78****",
  "Bandwidth": -1,
  "LoadBalancerSpec": "elb.s2.medium",
  "CreateTime": "2019-05-21T12:22:00Z",
  "EndTime": "2020-05-21T12:22:00Z",
  "ListenerPorts": [
    "80"
  ],
  "BackendServers": [
    {
      "ServerId": "i-5vb5h5njxiuhn48a****",
      "Ip": "192.168.XX.XX\n",
      "Port": "0",
      "Type": "ens",
      "Weight": 100
    }
  ],
  "ListenerPortsAndProtocols": [
    {
      "ListenerPort": 8080,
      "ListenerProtocol": "tcp",
      "Description": "test",
      "ListenerForward": "off",
      "ForwardPort": 0,
      "BackendServerPort": 6000
    }
  ],
  "AddressIPVersion": "ipv4",
  "PayType": "PostPaid",
  "LoadBalancerType": "CLB",
  "AddressType": "internet"
}

Error codes

HTTP status code

Error code

Error message

Description

400 ens.interface.error Failed to call API.
400 NoPermission Permission denied.
400 Invalid%s The specified parameter %s is invalid.
400 Missing%s You must specify the parameter %s.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.