Queries the details of a specified SLB instance.
Operation description
If backend servers are added to a vServer group, call DescribeVServerGroupAttribute to query the details.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:DescribeLoadBalancerAttribute |
get |
*loadbalancer
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the Classic Load Balancer instance. You can call DescribeRegions to query region IDs. |
cn-hangzhou |
| LoadBalancerId |
string |
Yes |
The ID of the Classic Load Balancer instance. |
lb-bp1b6c719dfa08ex**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| VpcId |
string |
The VPC ID of the internal-facing Classic Load Balancer instance. |
vpc-25dvzy9f8**** |
| Tags |
object |
||
| Tag |
array<object> |
The list of tags. |
|
|
object |
The list of tags. |
||
| TagKey |
string |
The tag key of the instance. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 64 characters in length, and cannot start with |
test |
| TagValue |
string |
The tag value of the instance. Valid values of N: 1 to 20. The tag value can be an empty string. The tag value can be up to 128 characters in length, and cannot start with |
value |
| CreateTimeStamp |
integer |
The UNIX timestamp when the Classic Load Balancer instance was created. |
1504147745000 |
| CreateTime |
string |
The time when the Classic Load Balancer instance was created. The time is in the |
2017-08-31T02:49:05Z |
| LoadBalancerId |
string |
The ID of the Classic Load Balancer instance. |
lb-bp1b6c719dfa08ex**** |
| PayType |
string |
The billing method of the Classic Load Balancer instance. Valid values:
|
PayOnDemand |
| AddressType |
string |
The address type of the Classic Load Balancer instance. |
internet |
| NetworkType |
string |
The network type of the Classic Load Balancer instance. |
vpc |
| AddressIPVersion |
string |
The IP version. Valid values: ipv4 and ipv6. |
ipv4 |
| RenewalCycUnit |
string |
The auto-renewal cycle. Valid values: Year and Month (default). Note
This parameter is valid only for subscription instances on the China site, where PayType is set to PrePay and RenewalStatus is set to AutoRenewal. |
Month |
| RequestId |
string |
The request ID. |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
| Bandwidth |
integer |
The peak bandwidth of the Internet-facing instance that is billed by bandwidth. |
5 |
| LoadBalancerName |
string |
The name of the Classic Load Balancer instance. |
lb-instance-test |
| Address |
string |
The endpoint of the Classic Load Balancer instance. |
42.XX.XX.6 |
| SlaveZoneId |
string |
The ID of the secondary zone for the Classic Load Balancer instance. |
cn-hangzhou-d |
| EndTimeStamp |
integer |
The UNIX timestamp when the Classic Load Balancer instance expires. |
3249380160000 |
| MasterZoneId |
string |
The ID of the primary zone for the Classic Load Balancer instance. |
cn-hangzhou-b |
| LoadBalancerSpec |
string |
The performance specification of the Classic Load Balancer instance. Note
Instances that use pay-by-usage billing do not have a performance specification property. The default value slb.lcu.elastic is returned. |
slb.s1.small |
| AutoReleaseTime |
integer |
The timestamp when the instance is released. |
1513947075000 |
| ModificationProtectionReason |
string |
The reason for setting the modification protection status. The reason must be 1 to 80 characters in length, and must start with a letter or Chinese character. It can contain digits, periods (.), underscores (_), and hyphens (-). Note
This parameter is valid only when ModificationProtectionStatus is set to ConsoleProtection. |
Instance service guarantee period |
| RegionId |
string |
The region ID of the Classic Load Balancer instance. |
cn-hangzhou |
| ModificationProtectionStatus |
string |
The modification protection status of the Classic Load Balancer. Valid values:
Note
When this parameter is set to ConsoleProtection, you cannot modify the instance configurations in the SLB console, but you can call API operations to modify the instance configurations. |
ConsoleProtection |
| EndTime |
string |
The expiration time of the Classic Load Balancer instance. The time is in the |
2022-09-08T16:00:00Z |
| VSwitchId |
string |
The vSwitch ID of the internal-facing instance. |
vsw-255ecrwq5**** |
| LoadBalancerStatus |
string |
The status of the Classic Load Balancer instance. Valid values:
|
active |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-atstuj3rtop**** |
| InternetChargeType |
string |
The billing method for Internet-facing instances. Valid values:
|
paybytraffic |
| DeleteProtection |
string |
Indicates whether deletion protection is enabled for the instance. Valid values: on and off. |
off |
| RegionIdAlias |
string |
The region alias of the Classic Load Balancer instance. |
cn-hangzhou |
| RenewalStatus |
string |
The renewal status. Valid values:
Note
This parameter is valid only for subscription instances on the China site, where PayType is set to PrePay. |
AutoRenewal |
| RenewalDuration |
integer |
The auto-renewal duration. This parameter is valid only when RenewalStatus is set to AutoRenewal.
Note
This parameter is valid only for subscription instances on the China site, where PayType is set to PrePay. |
1 |
| ListenerPorts |
object |
||
| ListenerPort |
array |
The frontend ports used by the Classic Load Balancer instance. |
|
|
integer |
The frontend ports used by the Classic Load Balancer instance. |
80 |
|
| ListenerPortsAndProtocal |
object |
||
| ListenerPortAndProtocal |
array<object> |
The listener ports or protocols. |
|
|
object |
The frontend protocols used by the Classic Load Balancer instance. |
||
| ListenerProtocal |
string |
The frontend protocols used by the Classic Load Balancer instance. |
http |
| ListenerPort |
integer |
The frontend port that is used by the CLB instance. |
443 |
| ListenerPortsAndProtocol |
object |
||
| ListenerPortAndProtocol |
array<object> |
The frontend ports and protocols used by the instance. |
|
|
object |
The frontend ports and protocols used by the instance. |
||
| ListenerPort |
integer |
The frontend port that is used by the CLB instance. |
80 |
| ListenerProtocol |
string |
The frontend protocols used by the instance. |
https |
| ListenerForward |
string |
Indicates whether listener forwarding is enabled. |
on |
| Description |
string |
The description of the listener port and protocol. |
The description of listener port and protocol. |
| ForwardPort |
integer |
The destination listener port to which traffic is forwarded. It must be an existing HTTPS listener port. |
443 |
| BackendServers |
object |
||
| BackendServer |
array<object> |
The list of backend servers for the instance. |
|
|
object |
The list of backend servers for the instance. |
||
| Type |
string |
The backend server type. Valid values:
|
ecs |
| Weight |
integer |
The weight of the backend server. |
90 |
| Description |
string |
The description of the backend server. Note
If Description is not set, this parameter is not returned. |
Backend servers |
| ServerIp |
string |
The instance ID of the ENI or ECI. |
192.XX.XX.11 |
| ServerId |
string |
The instance ID of the backend server. |
i-2zej4lxhjoq1icu***** |
Examples
Success response
JSON format
{
"VpcId": "vpc-25dvzy9f8****",
"Tags": {
"Tag": [
{
"TagKey": "test",
"TagValue": "value"
}
]
},
"CreateTimeStamp": 1504147745000,
"CreateTime": "2017-08-31T02:49:05Z",
"LoadBalancerId": "lb-bp1b6c719dfa08ex****",
"PayType": "PayOnDemand",
"AddressType": "internet",
"NetworkType": "vpc",
"AddressIPVersion": "ipv4",
"RenewalCycUnit": "Month",
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710",
"Bandwidth": 5,
"LoadBalancerName": "lb-instance-test",
"Address": "42.XX.XX.6",
"SlaveZoneId": "cn-hangzhou-d",
"EndTimeStamp": 3249380160000,
"MasterZoneId": "cn-hangzhou-b",
"LoadBalancerSpec": "slb.s1.small",
"AutoReleaseTime": 1513947075000,
"ModificationProtectionReason": "Instance service guarantee period",
"RegionId": "cn-hangzhou",
"ModificationProtectionStatus": "ConsoleProtection",
"EndTime": "2022-09-08T16:00:00Z",
"VSwitchId": "vsw-255ecrwq5****",
"LoadBalancerStatus": "active",
"ResourceGroupId": "rg-atstuj3rtop****",
"InternetChargeType": "paybytraffic",
"DeleteProtection": "off",
"RegionIdAlias": "cn-hangzhou",
"RenewalStatus": "AutoRenewal",
"RenewalDuration": 1,
"ListenerPorts": {
"ListenerPort": [
80
]
},
"ListenerPortsAndProtocal": {
"ListenerPortAndProtocal": [
{
"ListenerProtocal": "http",
"ListenerPort": 443
}
]
},
"ListenerPortsAndProtocol": {
"ListenerPortAndProtocol": [
{
"ListenerPort": 80,
"ListenerProtocol": "https",
"ListenerForward": "on",
"Description": "The description of listener port and protocol.",
"ForwardPort": 443
}
]
},
"BackendServers": {
"BackendServer": [
{
"Type": "ecs",
"Weight": 90,
"Description": "Backend servers",
"ServerIp": "192.XX.XX.11",
"ServerId": "i-2zej4lxhjoq1icu*****"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | LocationServiceTimeout | Location service connection timeout. Please try again later. | |
| 403 | UnauthorizedRegion | The specified region of is not authorized. | The specified region of is not authorized. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.