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
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 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 |
| 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:
|
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.