Queries the basic information about Network Load Balancer (NLB) 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:
- For mandatory resource types, indicate with a prefix of * .
- 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 |
---|---|---|---|---|
nlb:ListLoadBalancers | get | LoadBalancer acs:nlb:{#regionId}:{#accountId}:loadbalancer/* |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
LoadBalancerType | string | No | The type of the Server Load Balancer (SLB) instances. Set the value to network, which specifies NLB. | network |
ZoneId | string | No | The ID of the zone. You can call the DescribeZones operation to query the most recent zone list. | cn-hangzhou-a |
VpcIds | array | No | The IDs of the virtual private clouds (VPCs) where the NLB instances are deployed. You can specify up to 10 VPC IDs in each call. | |
VpcId | string | No | The ID of a VPC where the NLB instance is deployed. You can specify up to 10 VPC IDs in each call. | vpc-bp1b49rqrybk45nio**** |
AddressType | string | No | The type of IPv4 address used by the NLB instance. Valid values:
| Internet |
AddressIpVersion | string | No | The IP version of the NLB instance. Valid values:
| ipv4 |
Ipv6AddressType | string | No | The type of IPv6 address used by the NLB instance. Valid values:
| Internet |
DNSName | string | No | The domain name of the NLB instance. | nlb-wb7r6dlwetvt5j****.cn-hangzhou.nlb.aliyuncs.com |
LoadBalancerStatus | string | No | The status of the NLB instance. Valid values:
| Active |
LoadBalancerBusinessStatus | string | No | The business status of the NLB instance. Valid values:
| Normal |
LoadBalancerNames | array | No | The names of the NLB instances. You can specify up to 20 names in each call. | |
LoadBalancerName | string | No | The name of the NLB instance. You can specify up to 20 names in each call. | NLB1 |
ResourceGroupId | string | No | The ID of the resource group to which the instance belongs. | rg-atstuj3rtop**** |
LoadBalancerIds | array | No | The NLB instance IDs. You can specify up to 20 IDs in each call. | |
LoadBalancerId | string | No | The NLB instance ID. You can specify up to 20 IDs in each call. | nlb-83ckzc8d4xlp8o**** |
Tag | array<object> | No | The tags of the NLB instance. | |
object | No | The tag of the NLB instance. | ||
Key | string | No | The key of the tag. You can specify up to 20 tags. The tag key cannot be an empty string. It must be 1 to 64 characters in length, cannot start with | KeyTest |
Value | string | No | The value of the tag. You can specify up to 20 tags. The tag value can be an empty string. The tag value can be up to 128 characters in length, cannot start with | ValueTest |
NextToken | string | No | The pagination token used to specify a particular page of results. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
MaxResults | integer | No | The number of entries to return in each call. Valid values: 1 to 100. Default value: 20. | 20 |
RegionId | string | No | The ID of the region where the NLB instance is deployed. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"LoadBalancers": [
{
"RegionId": "cn-hangzhou",
"LoadBalancerId": "nlb-83ckzc8d4xlp8o****",
"LoadBalancerName": "NLB1",
"LoadBalancerType": "Network",
"AddressType": "Internet",
"AddressIpVersion": "ipv4",
"Ipv6AddressType": "Internet",
"LoadBalancerStatus": "Active",
"LoadBalancerBusinessStatus": "Normal",
"OperationLocks": [
{
"LockType": "SecurityLocked",
"LockReason": "Service exception\n"
}
],
"VpcId": "vpc-bp1b49rqrybk45nio****",
"CreateTime": "2022-07-18T17:22Z",
"ResourceGroupId": "rg-atstuj3rtop****",
"DNSName": "nlb-wb7r6dlwetvt5j****.cn-hangzhou.nlb.aliyuncs.com",
"ZoneMappings": [
{
"VSwitchId": "vsw-bp1rmcrwg3erh1fh8****",
"ZoneId": "cn-hangzhou-a",
"LoadBalancerAddresses": [
{
"EniId": "eni-bp12f1xhs5yal61a****",
"PrivateIPv4Address": "192.168.3.32",
"AllocationId": "eip-bp1aedxso6u80u0qf****",
"PublicIPv4Address": "120.XX.XX.69",
"Ipv6Address": "2001:db8:1:1:1:1:1:1",
"PrivateIPv4HcStatus": "Healthy",
"PrivateIPv6HcStatus": "Healthy"
}
],
"Status": "Active"
}
],
"BandwidthPackageId": "cbwp-bp1vevu8h3ieh****",
"SecurityGroupIds": [
"sg-bp10uag3q0jkxu72****"
],
"CrossZoneEnabled": true,
"LoadBalancerBillingConfig": {
"PayType": "PostPay"
},
"DeletionProtectionConfig": {
"Enabled": true,
"Reason": "The instance is running\n",
"EnabledTime": "2022-12-01T17:22Z"
},
"ModificationProtectionConfig": {
"Status": "ConsoleProtection",
"Reason": "Service guarantee period\n",
"EnabledTime": "2022-12-01T17:22Z"
},
"Tags": [
{
"Key": "KeyTest",
"Value": "ValueTest"
}
]
}
],
"TotalCount": 10,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"MaxResults": 20
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam.%s | The param of %s is illegal. | - |
400 | IllegalParam.LoadBalancerType | The LoadBalancerType value is invalid. | - |
400 | SystemBusy | System is busy, please try again later. | - |
400 | IllegalParam.loadBalancerName | Param loadBalancerName is illegal. | The instance name is invalid. Check the parameters. |
403 | Forbidden.NoPermission | Authentication is failed for NoPermission. | Authentication is failed for NoPermission. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-01-29 | The Error code has changed | View Change Details |
2023-09-26 | The Error code has changed | View Change Details |
2023-09-19 | The Error code has changed | View Change Details |
2023-09-13 | The Error code has changed | View Change Details |
2023-08-22 | The Error code has changed | View Change Details |
2023-06-07 | The response structure of the API has changed | View Change Details |
2023-04-04 | The response structure of the API has changed | View Change Details |