Queries the configurations of load balancer instances.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
alb:ListLoadBalancers | get | LoadBalancer
LoadBalancer
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. Valid values:
| ettsdgfsdgdfg |
MaxResults | integer | No | The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. | true |
ZoneId | string | No | The ID of the zone where the Application Load Balancer instance is deployed. You can call the DescribeZones operation to query information about the zones. | cn-hangzhou-a |
LoadBalancerStatus | string | No | The state of the Application Load Balancer instance. Valid values:
| Active |
LoadBalancerBussinessStatus | string | No | The service status of the Application Load Balancer instance. Valid values:
| Normal |
| LoadBalancerIds | array | No | The instance IDs. You can specify up to 20 Application Load Balancer instance IDs. | |
string | No | The instance ID. | alb-o9ulmq5hgn68jk**** | |
| LoadBalancerNames | array | No | The instance names. You can specify up to 10 instance names. | |
string | No | The name of the instance. The name must be 2 to 128 characters in length, start with a letter or a Chinese character, and can contain digits, periods (.), underscores (_), and hyphens (-). | alb-instance-test | |
| VpcIds | array | No | The ID of the virtual private cloud (VPC) to which the Application Load Balancer instance belongs. You can specify up to 10 VPC IDs. | |
string | No | The ID of the VPC to which the Application Load Balancer instance belongs. | vpc-bp1b49rqrybk45nio**** | |
| Tag | array<object> | No | The tags of the instances. | |
object | No | The tag of the instance. | ||
Key | string | No | The tag key of the instance. You can specify up to 20 tag keys. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot start with | KeyTest |
Value | string | No | The tag value of the instance. You can specify up to 20 tag values. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot start with | alueTest |
AddressType | string | No | The type of the IP address that the Application Load Balancer instance uses to provide services. Valid values:
| Intranet |
PayType | string | No | The billing method of the instance. Valid value: PostPay (default): The instance is billed on a pay-as-you-go basis. | PostPay |
ResourceGroupId | string | No | The ID of the resource group. | rg-acfmxazb4ph**** |
AddressIpVersion | string | No | The protocol version. Valid values:
| IPv4 |
Ipv6AddressType | string | No | The type of the IPv6 address that the Application Load Balancer instance uses to provide services. Valid values:
| Intranet |
DNSName | string | No | The domain name. | alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com |
Response elements
Element | Type | Description | Example |
object | The configurations of the Application Load Balancer instance. | ||
| LoadBalancers | array<object> | The list of Application Load Balancer instances. | |
array<object> | The details of the Application Load Balancer instance. | ||
| AccessLogConfig | object | The configuration of the access log. | |
LogProject | string | The Log Service project. | sls-setter |
LogStore | string | The Logstore. | test |
AddressAllocatedMode | string | The mode of the IP address. Valid values:
| Fixed |
AddressType | string | The type of IP address that the ALB instance uses to provide services. Valid values:
| Intranet |
BandwidthPackageId | string | The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance. | cbwp-bp1vevu8h3ieh**** |
CreateTime | string | The time when the resource was created. | 2022-07-02T02:49:05Z |
DNSName | string | The domain name. | alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com |
| DeletionProtectionConfig | object | The deletion protection configuration. | |
Enabled | boolean | Indicates whether deletion protection is enabled. Valid values:
| true |
EnabledTime | string | The time when deletion protection was enabled. | 2022-08-02T02:49:05Z |
| LoadBalancerBillingConfig | object | The billing configuration of the ALB instance. | |
PayType | string | The billing method. Valid value: PostPay: pay-as-you-go. | PostPay |
LoadBalancerBussinessStatus | string | The service status of the ALB instance. Valid values:
| Normal |
LoadBalancerEdition | string | The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
| Standard |
LoadBalancerId | string | The ID of the Application Load Balancer instance. | alb-o9ulmq5hgn68jk**** |
LoadBalancerName | string | The name of the ALB instance. | alb-instance-test |
| LoadBalancerOperationLocks | array<object> | The configuration of the configuration lock. | |
object | The details of the configuration lock. | ||
LockReason | string | The reason for the lock. This parameter is valid only if LoadBalancerBussinessStatus is set to Abnormal. | 欠费 |
LockType | string | The type of the lock. Valid values:
| FinancialLocked |
LoadBalancerStatus | string | The state of the Application Load Balancer instance. Valid values:
| Active |
| ModificationProtectionConfig | object | The configuration of modification protection. | |
Reason | string | The reason for enabling modification protection. The reason must be 2 to 128 characters in length, start with a letter or a Chinese character, and can contain digits, periods (.), underscores (_), and hyphens (-). This parameter is returned only if Status is set to ConsoleProtection. | 托管实例 |
Status | string | The status of modification protection. Valid values:
Note If you set the value to ConsoleProtection, you cannot modify the instance configuration in the Application Load Balancer console. However, you can call API operations to modify the instance configuration. | ConsoleProtection |
ResourceGroupId | string | The ID of the resource group. | rg-atstuj3rtop**** |
| Tags | array<object> | The list of tags. | |
object | The tag. | ||
Key | string | The tag key of the instance. | KeyTest |
Value | string | The tag value of the instance. | alueTest |
VpcId | string | The ID of the VPC to which the Application Load Balancer instance belongs. | vpc-bp1b49rqryhk45nio**** |
AddressIpVersion | string | The protocol version. Valid values:
| DualStack |
Ipv6AddressType | string | The type of the IPv6 address that the Application Load Balancer instance uses to provide services. Valid values:
| Intranet |
| SecurityGroupIds | array | The security groups to which the Application Load Balancer instance is added. | |
string | The security group to which the Application Load Balancer instance is added. | sg-2zejdtxxpu8c9tny**** | |
MaxResults | integer | The number of entries returned on each page. | 20 |
NextToken | string | The pagination token that is used in the next request to retrieve a new page of results. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
RequestId | string | The request ID. | 365F4154-92F6-4AE4-92F8-7FF34B540710 |
TotalCount | integer | The number of entries returned. | 100 |
Examples
Success response
JSON format
{
"LoadBalancers": [
{
"AccessLogConfig": {
"LogProject": "sls-setter",
"LogStore": "test"
},
"AddressAllocatedMode": "Fixed",
"AddressType": "Intranet",
"BandwidthPackageId": "cbwp-bp1vevu8h3ieh****",
"CreateTime": "2022-07-02T02:49:05Z",
"DNSName": "alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com",
"DeletionProtectionConfig": {
"Enabled": true,
"EnabledTime": "2022-08-02T02:49:05Z"
},
"LoadBalancerBillingConfig": {
"PayType": "PostPay"
},
"LoadBalancerBussinessStatus": "Normal",
"LoadBalancerEdition": "Standard",
"LoadBalancerId": "alb-o9ulmq5hgn68jk****",
"LoadBalancerName": "alb-instance-test",
"LoadBalancerOperationLocks": [
{
"LockReason": "欠费",
"LockType": "FinancialLocked"
}
],
"LoadBalancerStatus": "Active",
"ModificationProtectionConfig": {
"Reason": "托管实例",
"Status": "ConsoleProtection"
},
"ResourceGroupId": "rg-atstuj3rtop****",
"Tags": [
{
"Key": "KeyTest",
"Value": "alueTest"
}
],
"VpcId": "vpc-bp1b49rqryhk45nio****",
"AddressIpVersion": "DualStack",
"Ipv6AddressType": "Intranet",
"SecurityGroupIds": [
"sg-2zejdtxxpu8c9tny****"
]
}
],
"MaxResults": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710",
"TotalCount": 100
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.