Retrieves the details of a specified load balancer instance.
Operation description
-
API Call Rate: 100 requests/second.
-
Per-user Call Rate: 10 requests/second.
Try it now
Test
RAM authorization
|
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 balancer instance. |
lb-5rcvo1n1t3hykfhhjwjgq**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| LoadBalancerId |
string |
The ID of the Load Balancer instance. |
lb-5rcvo1n1t3hykfhhjwjgqp**** |
| LoadBalancerName |
string |
The name of the Load Balancer instance. |
example |
| LoadBalancerStatus |
string |
The status of the Load Balancer instance. Valid values:
|
Active |
| EnsRegionId |
string |
The ID of the ENS region. |
cn-chengdu-telecom |
| Address |
string |
The service address of the Load Balancer instance. |
192.168.XX.XX |
| NetworkId |
string |
The ID of the network. |
n-5rwbi3g9zvgxcsiufwhw8**** |
| VSwitchId |
string |
The ID of the vSwitch. |
vsw-5s78m2pdr9osa0j64bn78**** |
| Bandwidth |
integer |
The peak bandwidth of the Load Balancer instance. A value of -1 indicates that the bandwidth is unlimited. |
-1 |
| LoadBalancerSpec |
string |
The specification of the Load Balancer instance. |
elb.s2.medium |
| CreateTime |
string |
The creation time of the Load Balancer instance, in UTC. |
2019-05-21T12:22:00Z |
| EndTime |
string |
The expiration time of the Load Balancer instance. |
2020-05-21T12:22:00Z |
| ListenerPorts |
array |
The frontend ports used by the Load Balancer instance. |
|
|
string |
The frontend port used by the Load Balancer instance. |
80 |
|
| BackendServers |
array<object> |
A list of Backend Servers. |
|
|
object |
A Backend Server. |
||
| ServerId |
string |
The ID of the Backend Server instance. |
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 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 Balancer instance. |
|
|
object |
Details about a frontend port and protocol. |
||
| ListenerPort |
integer |
The Listener port. |
8080 |
| ListenerProtocol |
string |
The Listener protocol. |
tcp |
| Description |
string |
The description of the Listener. |
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 port used by the Backend Servers. The value must be between 1 and 65535. |
6000 |
| AddressIPVersion |
string |
The IP version of the Load Balancer instance. Valid values: |
ipv4 |
| PayType |
string |
The billing method. Valid values:
|
PostPaid |
| LoadBalancerType |
string |
||
| AddressType |
string |
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": "",
"AddressType": ""
}
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.