Queries the basic information about a Network Load Balancer (NLB) instance.
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 |
---|---|---|---|---|
nlb:ListLoadBalancers | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
LoadBalancerType | string | No | The type of the Server Load Balancer (SLB) instance. Set the value to network, which specifies NLB. | network |
ZoneId | string | No | The name of the zone. You can call the DescribeZones operation to query the most recent zone list. | cn-hangzhou-a |
VpcIds | array | No | The ID of the virtual private cloud (VPC) where the NLB instance is deployed. You can specify up to 10 VPC IDs at a time. | |
VpcId | string | No | The ID of the VPC where the NLB instance is deployed. You can specify up to 10 VPC IDs at a time. | vpc-bp1b49rqrybk45nio**** |
AddressType | string | No | The type of IPv4 address used by the NLB instance. Valid values:
| Internet |
AddressIpVersion | string | No | The protocol version. 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 name of the NLB instance. You can specify up to 20 names at a time. | |
LoadBalancerName | string | No | The name of the NLB instance. You can specify up to 20 names at a time. | NLB1 |
ResourceGroupId | string | No | The ID of the resource group. | rg-atstuj3rtop**** |
LoadBalancerIds | array | No | The ID of the NLB instance. You can query up to 20 NLB instances at a time. | |
LoadBalancerId | string | No | The ID of the NLB instance. You can query up to 20 NLB instances at a time. | nlb-83ckzc8d4xlp8o**** |
Tag | array<object> | No | The tags of the NLB instance. | |
object | No | The tags of the NLB instance. | ||
Key | string | No | The key of the tag. 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 contain | KeyTest |
Value | string | No | The value of the tag. 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 token that determines the start point of the next query. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
MaxResults | integer | No | The number of entries to return on each page. 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 |