Queries a list of load balancing instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gwlb:ListLoadBalancers |
list |
LoadBalancer
LoadBalancer
VPC
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ZoneIds |
array |
No |
The list of zone IDs. You can query up to 20 zone IDs at a time. |
|
|
string |
No |
The zone ID. |
cn-beijing-h |
|
| VpcIds |
array |
No |
The list of VPC IDs. You can query up to 20 VPC IDs at a time. |
|
|
string |
No |
The VPC ID. |
vpc-bp1xuejaht4o7yhh2**** |
|
| AddressIpVersion |
string |
No |
The IP version. Valid values:
Valid values:
|
Ipv4 |
| LoadBalancerStatus |
string |
No |
The instance status of the Gateway Load Balancer (GWLB). Valid values:
|
Active |
| LoadBalancerBusinessStatus |
string |
No |
The business status of the Gateway Load Balancer (GWLB). Valid values:
|
Normal |
| LoadBalancerNames |
array |
No |
The list of Gateway Load Balancer (GWLB) instance names. You can query up to 20 instance names at a time. |
|
|
string |
No |
The name of the Network Load Balancer (NLB) instance. |
testGwlbName |
|
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-aek2htf5qsyrn**** |
| LoadBalancerIds |
array |
No |
The list of Gateway Load Balancer (GWLB) instance IDs. You can query up to 20 instances at a time. |
|
|
string |
No |
The ID of the Gateway Load Balancer (GWLB) instance. |
gwlb-cp6prgqy40hols**** |
|
| TrafficMode |
string |
No |
The traffic mode. Valid values:
|
LoadBalance |
| Tag |
array<object> |
No |
The list of tags. You can specify up to 20 tags in a single call. |
|
|
object |
No |
The tag object. |
||
| Key |
string |
No |
The tag key. It cannot be an empty string. A tag key can be up to 128 characters in length. It cannot start with |
testTagKey |
| Value |
string |
No |
The tag value. A tag value can be up to 256 characters in length and cannot contain |
testTagValue |
| NextToken |
string |
No |
The pagination token. Valid values:
|
WyJyb290IiwibiIsIm4iLDEsMCwxNjg1MDY1NTgyNzYwLCI2NDcwMGY2ZTc2Zjc0MWFiZGEyZjQyNzc4ZDk2MmJkOTk3ZGZmM2Nm**** |
| MaxResults |
integer |
No |
The number of entries to return per page. Valid values: 1 to 1000. Default value: 20. |
20 |
| Skip |
integer |
No |
The number of entries to skip during the query. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| LoadBalancers |
array<object> |
The list of Gateway Load Balancer (GWLB) instances. |
|
|
array<object> |
The Gateway Load Balancer (GWLB) instance object. |
||
| AddressIpVersion |
string |
The IP version. Valid values:
|
IPv4 |
| CreateTime |
string |
The time when the resource was created. The time is displayed in UTC in the yyyy-MM-ddTHH:mm:ssZ format. |
2024-08-05T18:24:07Z |
| LoadBalancerBusinessStatus |
string |
The business status of the Gateway Load Balancer (GWLB). Valid values:
|
Normal |
| LoadBalancerId |
string |
The ID of the Gateway Load Balancer (GWLB) instance. |
gwlb-9njtjmqt7zfcqm**** |
| LoadBalancerName |
string |
The name of the Gateway Load Balancer (GWLB) instance. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter or Chinese character. |
testGwlbName |
| LoadBalancerStatus |
string |
The instance status of the Gateway Load Balancer (GWLB). Valid values:
|
Active |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-aek26jasguy**** |
| Tags |
array<object> |
The list of tags. |
|
|
object |
The tag object. |
||
| Key |
string |
The tag key. It cannot be an empty string. A tag key can be up to 128 characters in length. It cannot start with |
testTagKey |
| Value |
string |
The tag value. You can specify up to 20 tag values. This parameter can be an empty string. A tag value can be up to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter or Chinese character. It cannot start with |
testTagValue |
| VpcId |
string |
The VPC ID. |
vpc-uf6eg0vndlsa84n7r**** |
| ZoneMappings |
array<object> |
The list of zone and vSwitch mappings. You must add at least one zone and can add up to 20 zones. If the current region supports two or more zones, add at least two zones. |
|
|
array<object> |
The zone and vSwitch mapping object. |
||
| LoadBalancerAddresses |
array<object> |
The list of Gateway Load Balancer (GWLB) instance addresses. |
|
|
object |
The Gateway Load Balancer (GWLB) instance address object. |
||
| EniId |
string |
The elastic network interface (ENI) ID. |
eni-bp17qv9zbzyqy629**** |
| PrivateIpv4Address |
string |
The private IPv4 address. |
192.168.XX.XX |
| VSwitchId |
string |
The vSwitch associated with the zone. By default, each zone uses one vSwitch and one subnet. |
vsw-2zemule5dz7okwqfv**** |
| ZoneId |
string |
The zone ID. You can invoke the DescribeZones operation of Gateway Load Balancer (GWLB) to obtain the zone ID. |
cn-hangzhou-g |
| MaxResults |
integer |
The number of entries to return per page. Valid values: 1 to 1000. Default value: 20. |
20 |
| NextToken |
string |
The pagination token. Valid values:
|
CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAIldD2UAAAAACjMDLgAAADFTNzMyZDMwMzAzMDY5NzQzNDM0NmI3NzM2NjUzNzc4NzM2YTc0NjYzOTYz**** |
| RequestId |
string |
The ID of the request. |
378A80E9-4262-5D8E-8D62-0969E52D7358 |
| TotalCount |
integer |
The total number of entries. |
100 |
Examples
Success response
JSON format
{
"LoadBalancers": [
{
"AddressIpVersion": "IPv4",
"CreateTime": "2024-08-05T18:24:07Z",
"LoadBalancerBusinessStatus": "Normal",
"LoadBalancerId": "gwlb-9njtjmqt7zfcqm****",
"LoadBalancerName": "testGwlbName",
"LoadBalancerStatus": "Active",
"ResourceGroupId": "rg-aek26jasguy****",
"Tags": [
{
"Key": "testTagKey",
"Value": "testTagValue"
}
],
"VpcId": "vpc-uf6eg0vndlsa84n7r****",
"ZoneMappings": [
{
"LoadBalancerAddresses": [
{
"EniId": "eni-bp17qv9zbzyqy629****",
"PrivateIpv4Address": "192.168.XX.XX"
}
],
"VSwitchId": "vsw-2zemule5dz7okwqfv****",
"ZoneId": "cn-hangzhou-g"
}
]
}
],
"MaxResults": 20,
"NextToken": "CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAIldD2UAAAAACjMDLgAAADFTNzMyZDMwMzAzMDY5NzQzNDM0NmI3NzM2NjUzNzc4NzM2YTc0NjYzOTYz****",
"RequestId": "378A80E9-4262-5D8E-8D62-0969E52D7358",
"TotalCount": 100
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.