Queries the configurations of Application Load Balancer (ALB) instances.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
alb:ListLoadBalancers | get |
|
| 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:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
MaxResults | integer | No | The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. | 20 |
ZoneId | string | No | The ID of the zone where the ALB instance is deployed. You can call the DescribeZones operation to query zones. | cn-hangzhou-a |
LoadBalancerStatus | string | No | The status of the ALB instance. Valid values:
| Active |
LoadBalancerBussinessStatus | string | No | The service status of the ALB instance. Valid values:
| Normal |
LoadBalancerIds | array | No | The instance IDs. You can specify at most 20 ALB instance IDs. | |
string | No | The instance ID. | alb-o9ulmq5hgn68jk**** | |
LoadBalancerNames | array | No | The instance names. You can specify at most 10 instance names. | |
string | No | The instance name. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). | alb-instance-test | |
VpcIds | array | No | The ID of the VPC to which the ALB instance belongs. You can specify at most 10 VPC IDs. | |
string | No | The ID of the VPC to which the ALB instance belongs. | vpc-bp1b49rqrybk45nio**** | |
Tag | array<object> | No | The tags added to the ALB instance. | |
object | No | The tag structure. | ||
Key | string | No | The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot contain | KeyTest |
Value | string | No | The tag value. You can specify at most 20 tag values. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot contain | alueTest |
AddressType | string | No | The network type. Valid values:
| Intranet |
PayType | string | No | The billing method of the ALB instance. Set the value to PostPay, which specifies the pay-as-you-go billing method. This is the default value. | PostPay |
ResourceGroupId | string | No | The ID of the resource group. | rg-acfmxazb4ph**** |
AddressIpVersion | string | No | The IP version. Valid values:
| IPv4 |
Ipv6AddressType | string | No | The type of IPv6 address that is used by the ALB instance. Valid values:
| Intranet |
DNSName | string | No | The domain name. | alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com |
Response parameters
Examples
Sample success responses
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": "Test LockReason",
"LockType": "FinancialLocked"
}
],
"LoadBalancerStatus": "Active",
"ModificationProtectionConfig": {
"Reason": "Test Reason",
"Status": "ConsoleProtection"
},
"ResourceGroupId": "rg-atstuj3rtop****",
"Tags": [
{
"Key": "KeyTest",
"Value": "alueTest"
}
],
"VpcId": "vpc-bp1b49rqrybk45nio****",
"AddressIpVersion": "DualStack",
"Ipv6AddressType": "Intranet"
}
],
"MaxResults": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710",
"TotalCount": 100
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-11-06 | The request parameters of the API has changed | View Change Details |
2023-11-06 | The request parameters of the API has changed | View Change Details |