Queries the basic information about created Network Load Balancer (NLB) instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nlb:ListLoadBalancers |
get |
LoadBalancer
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LoadBalancerType |
string |
No |
The type of load balancing. Only network is returned, which indicates Network Load Balancer (NLB). |
network |
| ZoneId |
string |
No |
The zone name. You can call the DescribeZones operation to query zones. |
cn-hangzhou-a |
| VpcIds |
array |
No |
The VPC ID of the NLB instance. You can query up to 10 VPC IDs at a time. |
|
|
string |
No |
The VPC ID of the NLB instance. You can query up to 10 VPC IDs at a time. |
vpc-bp1b49rqrybk45nio**** |
|
| AddressType |
string |
No |
The IPv4 address type of the NLB instance. Valid values:
|
Internet |
| AddressIpVersion |
string |
No |
The protocol version. Valid values:
|
ipv4 |
| Ipv6AddressType |
string |
No |
The IPv6 address type of the NLB instance. Valid values:
|
Internet |
| DNSName |
string |
No |
The DNS domain name. |
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 query up to 20 instance names at a time. |
|
|
string |
No |
The name of the NLB instance. You can query up to 20 instances at a time. |
NLB1 |
|
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-atstuj3rtop**** |
| LoadBalancerIds |
array |
No |
The IDs of the NLB instances. You can query up to 20 instances at a time. |
|
|
string |
No |
The ID of the NLB instance. You can query up to 20 instances at a time. |
nlb-83ckzc8d4xlp8o**** |
|
| Tag |
array<object> |
No |
The labels of the NLB instance. |
|
|
object |
No |
The labels of the NLB 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 |
ValueTest |
| 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 per page. Valid values: 1 to 100. Default value: 20. |
20 |
| RegionId |
string |
No |
The region ID of the NLB instance. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
response |
||
| RequestId |
string |
The request ID. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
| LoadBalancers |
array<object> |
The list of NLB instances. |
|
|
array<object> |
The NLB instance information. |
||
| RegionId |
string |
The region ID of the NLB instance. |
cn-hangzhou |
| LoadBalancerId |
string |
The ID of the NLB instance. |
nlb-83ckzc8d4xlp8o**** |
| LoadBalancerName |
string |
The name of the NLB instance. |
NLB1 |
| LoadBalancerType |
string |
The type of the load balancing instance. Only Network is returned, which indicates Network Load Balancer (NLB). |
Network |
| AddressType |
string |
The IPv4 address type of the NLB instance. Valid values:
|
Internet |
| AddressIpVersion |
string |
The protocol version. Valid values:
|
ipv4 |
| Ipv6AddressType |
string |
The IPv6 address type of the NLB instance. Valid values:
|
Internet |
| LoadBalancerStatus |
string |
The status of the NLB instance. Valid values:
|
Active |
| LoadBalancerBusinessStatus |
string |
The business status of the NLB instance. Valid values:
|
Normal |
| OperationLocks |
array<object> |
The operation lock configuration of the NLB instance. This parameter takes effect when |
|
|
object |
The operation lock configuration of the NLB instance. |
||
| LockType |
string |
The type of lock. Valid values:
|
SecurityLocked |
| LockReason |
string |
The reason why the NLB instance is locked. |
Service exception |
| VpcId |
string |
The VPC ID of the NLB instance. |
vpc-bp1b49rqrybk45nio**** |
| CreateTime |
string |
The time when the resource was created. The time is displayed in UTC in the |
2022-07-18T17:22:45Z |
| ResourceGroupId |
string |
The resource group ID. |
rg-atstuj3rtop**** |
| DNSName |
string |
The DNS domain name. |
nlb-wb7r6dlwetvt5j****.cn-hangzhou.nlb.aliyuncs.com |
| ZoneMappings |
array<object> |
The list of zone and vSwitch mappings. |
|
|
array<object> |
The list of zone and vSwitch mappings. |
||
| VSwitchId |
string |
The ID of the vSwitch in the zone. By default, each zone contains one vSwitch and one subnet. |
vsw-bp1rmcrwg3erh1fh8**** |
| ZoneId |
string |
The name of the zone. You can call the DescribeZones operation to query the zones. |
cn-hangzhou-a |
| LoadBalancerAddresses |
array<object> |
The IP addresses that are used by the NLB instance. |
|
|
object |
The information about the array object. |
||
| EniId |
string |
The ID of the elastic network interface (ENI) attached to the NLB instance. |
eni-bp12f1xhs5yal61a**** |
| PrivateIPv4Address |
string |
The private IPv4 address of the NLB instance. |
192.168.3.32 |
| AllocationId |
string |
The ID of the elastic IP address (EIP). |
eip-bp1aedxso6u80u0qf**** |
| PublicIPv4Address |
string |
The public IPv4 address of the NLB instance. |
120.XX.XX.69 |
| Ipv6Address |
string |
The IPv6 address used by the NLB instance. |
2001:db8:1:1:1:1:1:1 |
| PrivateIPv4HcStatus |
string |
The health status of the private IPv4 address of the NLB instance. Valid values:
Note
This parameter is returned only when the Status of the zone is Active. |
Healthy |
| PrivateIPv6HcStatus |
string |
The health status of the IPv6 address of the NLB instance. Valid values:
Note
This parameter is returned only when the Status of the zone is Active. |
Healthy |
| Status |
string |
The zone status. Valid values:
|
Active |
| BandwidthPackageId |
string |
The ID of the Internet Shared Bandwidth instance associated with the Internet-facing NLB instance. |
cbwp-bp1vevu8h3ieh**** |
| SecurityGroupIds |
array |
The security groups to which the NLB instance is added. |
|
|
string |
The security group to which the NLB instance is added. |
sg-bp10uag3q0jkxu72**** |
|
| CrossZoneEnabled |
boolean |
Indicates whether cross-zone load balancing is enabled for the NLB instance. Valid values:
|
true |
| LoadBalancerBillingConfig |
object |
The billing configuration of the NLB instance. |
|
| PayType |
string |
The billing method of the NLB instance. Only PostPay is supported, which indicates the pay-as-you-go billing method. |
PostPay |
| DeletionProtectionConfig |
object |
The deletion protection configuration. |
|
| Enabled |
boolean |
Indicates whether deletion protection is enabled. Valid values:
|
true |
| Reason |
string |
The reason why the deletion protection feature is enabled or disabled. The reason must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The reason must start with a letter. |
The instance is running |
| EnabledTime |
string |
The time when deletion protection was enabled. The time is displayed in UTC in |
2022-12-01T17:22Z |
| ModificationProtectionConfig |
object |
The modification protection configuration. |
|
| Status |
string |
Indicates whether the configuration read-only mode is enabled. Valid values:
Note
If you set this parameter to ConsoleProtection, you cannot use the NLB console to modify instance configurations. However, you can call API operations to modify instance configurations. |
ConsoleProtection |
| Reason |
string |
The reason why the configuration read-only mode is enabled. The reason must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The reason must start with a letter. This parameter takes effect only if Status is set to ConsoleProtection. |
Service guarantee period |
| EnabledTime |
string |
The time when the configuration read-only mode was enabled. The time is displayed in UTC in |
2022-12-01T17:22Z |
| Tags |
array<object> |
The list of tags. |
|
|
object |
The list of tags. |
||
| Key |
string |
The tag key. |
KeyTest |
| Value |
string |
The tag value. |
ValueTest |
| TotalCount |
integer |
The total number of entries returned. |
10 |
| NextToken |
string |
The pagination token that is used in the next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
The number of entries per page. |
20 |
Examples
Success response
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.