You can query created SLB instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:DescribeLoadBalancers |
get |
*LoadBalancer
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the Classic Load Balancer (CLB) instance. You can call the DescribeRegions operation to query region IDs. |
cn-hangzhou |
| ServerId |
string |
No |
The ID of the backend server that is added to the CLB instance. |
i-2zebcbq****** |
| AddressIPVersion |
string |
No |
The IP version. Set the value to ipv4 or ipv6. |
ipv4 |
| LoadBalancerStatus |
string |
No |
The state of the instance. Valid values:
|
active |
| LoadBalancerId |
string |
No |
The ID of the CLB instance. You can specify up to 10 IDs, separated by commas (,). |
lb-bp1b6c719dfa**** |
| LoadBalancerName |
string |
No |
The name of the CLB instance. The name must be 1 to 80 characters in length. It must start with a letter or a Chinese character. It can contain letters, digits, periods (.), underscores (_), and hyphens (-). You can specify up to 10 names. Separate multiple names with commas (,). |
test |
| ServerIntranetAddress |
string |
No |
The internal IP address of the added backend server. You can specify multiple IP addresses. Separate them with commas (,). |
10.XX.XX.102 |
| AddressType |
string |
No |
The network type of the CLB instance. Valid values:
|
intranet |
| InternetChargeType |
string |
No |
The billing method of the Internet-facing CLB instance. Valid values:
|
paybytraffic |
| VpcId |
string |
No |
The ID of the virtual private cloud (VPC) to which the CLB instance belongs. |
vpc-bp1aevy8sof**** |
| VSwitchId |
string |
No |
The ID of the vSwitch to which the CLB instance belongs. |
vsw-bp12mw1f8k3**** |
| NetworkType |
string |
No |
The network type of the internal-facing CLB instance. Valid values:
|
vpc |
| Address |
string |
No |
The service address of the CLB instance. |
192.168.XX.XX |
| MasterZoneId |
string |
No |
The ID of the primary zone of the CLB instance. |
cn-hangzhou-b |
| SlaveZoneId |
string |
No |
The ID of the secondary zone of the CLB instance. The multi-zone feature is not available for Alibaba Finance Cloud users. |
cn-hangzhou-d |
| Tags |
string |
No |
The tags that are added to the CLB instance. The value is a JSON dictionary that consists of tag keys and tag values. You can add up to 10 tags in each request. |
[{"tagKey":"Key1","tagValue":"Value1"}] |
| PayType |
string |
No |
The billing method of the CLB instance. Valid values:
|
PayOnDemand |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfmxazb4p**** |
| PageNumber |
integer |
No |
The page number of the page to return. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 100. Note
If you set PageSize, you must also set PageNumber. |
50 |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The key of tag N. 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 |
FinanceDept |
| Value |
string |
No |
The value of tag N. 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. It cannot start with |
FinanceJoshua |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
8B9DB03B-ED39-5DB8-9C9F-1ED5F548D61E |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries returned on the current page. |
50 |
| TotalCount |
integer |
The total number of instances that meet the filter conditions. |
1 |
| LoadBalancers |
object |
||
| LoadBalancer |
array<object> |
The list of CLB instances. |
|
|
array<object> |
The list of CLB instances. |
||
| VpcId |
string |
The ID of the VPC in which the internal-facing CLB instance is deployed. |
vpc-25dvzy9f8**** |
| CreateTimeStamp |
integer |
The timestamp that indicates when the instance was created. |
1504147745000 |
| LoadBalancerId |
string |
The ID of the CLB instance. |
lb-bp1b6c719dfa**** |
| CreateTime |
string |
The time when the instance was created. The time is in the |
2021-12-02T02:49:05Z |
| PayType |
string |
The billing method of the CLB instance. Valid values:
|
PayOnDemand |
| AddressType |
string |
The network type of the instance. Valid values:
|
intranet |
| NetworkType |
string |
The network type of the internal-facing CLB instance. Valid values:
|
vpc |
| AddressIPVersion |
string |
The IP version. Valid values: ipv4 and ipv6. |
ipv4 |
| LoadBalancerName |
string |
The name of the CLB instance. |
lb-bp1o94dp5i6ea**** |
| Bandwidth |
integer |
The peak bandwidth of the listener. Unit: Mbit/s. |
-1 |
| Address |
string |
The service address of the CLB instance. |
100.XX.XX.28 |
| SlaveZoneId |
string |
The ID of the secondary zone of the instance. |
cn-hangzhou-d |
| MasterZoneId |
string |
The ID of the primary zone of the instance. |
cn-hangzhou-b |
| InternetChargeTypeAlias |
string |
The billing method of the Internet-facing CLB instance. Valid values:
|
paybybandwidth |
| LoadBalancerSpec |
string |
The specification of the CLB instance. Note
Pay-by-data-transfer instances have no specification. The default value slb.lcu.elastic is returned. |
slb.s1.small |
| RegionId |
string |
The region ID of the CLB instance. |
cn-hangzhou |
| ModificationProtectionReason |
string |
The reason why the configuration read-only mode is enabled. The reason must be 1 to 80 characters in length. It must start with a letter or a Chinese character. It can contain letters, digits, periods (.), underscores (_), and hyphens (-). Note
This parameter is valid only if |
ManagedInstance |
| ModificationProtectionStatus |
string |
The status of the configuration read-only mode:
Note
If the value is ConsoleProtection, the configuration read-only mode is enabled. You cannot modify the instance configuration in the CLB console. However, you can call API operations to modify the instance configuration. |
ConsoleProtection |
| VSwitchId |
string |
The ID of the vSwitch in the VPC where the internal-facing CLB instance is deployed. |
vsw-255ecr**** |
| LoadBalancerStatus |
string |
The state of the CLB instance. Valid values:
|
active |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-atstuj3r**** |
| InternetChargeType |
string |
The billing method of the Internet-facing instance. Valid values:
|
3 |
| DeleteProtection |
string |
Indicates whether deletion protection is enabled for the CLB instance. Valid values:
|
off |
| RegionIdAlias |
string |
The name of the region where the CLB instance is deployed. |
cn-hangzhou |
| Tags |
object |
||
| Tag |
array<object> |
The list of tags |
|
|
object |
The list of tags |
||
| TagValue |
string |
The tag value. |
testvalue |
| TagKey |
string |
The tag key. |
testkey |
Examples
Success response
JSON format
{
"RequestId": "8B9DB03B-ED39-5DB8-9C9F-1ED5F548D61E",
"PageNumber": 1,
"PageSize": 50,
"TotalCount": 1,
"LoadBalancers": {
"LoadBalancer": [
{
"VpcId": "vpc-25dvzy9f8****",
"CreateTimeStamp": 1504147745000,
"LoadBalancerId": "lb-bp1b6c719dfa****",
"CreateTime": "2021-12-02T02:49:05Z",
"PayType": "PayOnDemand",
"AddressType": "intranet",
"NetworkType": "vpc",
"AddressIPVersion": "ipv4",
"LoadBalancerName": "lb-bp1o94dp5i6ea****",
"Bandwidth": -1,
"Address": "100.XX.XX.28",
"SlaveZoneId": "cn-hangzhou-d",
"MasterZoneId": "cn-hangzhou-b",
"InternetChargeTypeAlias": "paybybandwidth",
"LoadBalancerSpec": "slb.s1.small",
"RegionId": "cn-hangzhou",
"ModificationProtectionReason": "ManagedInstance",
"ModificationProtectionStatus": "ConsoleProtection",
"VSwitchId": "vsw-255ecr****",
"LoadBalancerStatus": "active",
"ResourceGroupId": "rg-atstuj3r****",
"InternetChargeType": "3",
"DeleteProtection": "off",
"RegionIdAlias": "cn-hangzhou",
"Tags": {
"Tag": [
{
"TagValue": "testvalue",
"TagKey": "testkey"
}
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidTag | The specified tags is invalid. | |
| 400 | TooManyResult | fuzzy query retrieve too many instances. | |
| 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.