Lists Gateway Load Balancer (GWLB) 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 virtual private cloud (VPC) IDs. You can query up to 20 VPC IDs at a time. | |
string | No | The VPC ID. | vpc-bp1xuejaht4o7yhh2**** | |
AddressIpVersion | string | No | The protocol version. Valid value:
Valid values:
| Ipv4 |
LoadBalancerStatus | string | No | The status of the GWLB instance. Valid values:
| Active |
LoadBalancerBusinessStatus | string | No | The business status of the GWLB instance. Valid values:
| Normal |
| LoadBalancerNames | array | No | The list of GWLB instance names. You can query up to 20 instance names at a time. | |
string | No | The name of the GWLB instance. | testGwlbName | |
ResourceGroupId | string | No | The ID of the resource group. | rg-aek2htf5qsyrn**** |
| LoadBalancerIds | array | No | The list of GWLB instance IDs. You can query up to 20 instance IDs at a time. | |
string | No | The ID of the 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 each call. | |
object | No | The tag object. | ||
Key | string | No | The tag key. The tag key cannot be an empty string. The tag key can be up to 128 characters in length, and cannot start with | testTagKey |
Value | string | No | The tag value. The tag value can be up to 256 characters in length and cannot contain | testTagValue |
NextToken | string | No | The token that is used for the next query. Valid values:
| WyJyb290IiwibiIsIm4iLDEsMCwxNjg1MDY1NTgyNzYwLCI2NDcwMGY2ZTc2Zjc0MWFiZGEyZjQyNzc4ZDk2MmJkOTk3ZGZmM2Nm**** |
MaxResults | integer | No | The number of entries to return on each page. Valid values: 1 to 1000. Default value: 20. | 20 |
Skip | integer | No | The number of entries to skip. | 1 |
Response elements
Element | Type | Description | Example |
object | |||
| LoadBalancers | array<object> | The list of GWLB instances. | |
array<object> | The GWLB instance. | ||
AddressIpVersion | string | The protocol version. Valid value:
| IPv4 |
CreateTime | string | The time when the resource was created. The time is displayed in UTC and follows the yyyy-MM-ddTHH:mm:ssZ format. | 2024-08-05T18:24:07Z |
LoadBalancerBusinessStatus | string | The business status of the GWLB instance. Valid values:
| Normal |
LoadBalancerId | string | The ID of the GWLB instance. | gwlb-9njtjmqt7zfcqm**** |
LoadBalancerName | string | The name of the GWLB instance. The name must be 2 to 128 characters in length, start with a letter or a Chinese character, and can contain digits, periods (.), underscores (_), and hyphens (-). | testGwlbName |
LoadBalancerStatus | string | The status of the GWLB instance. Valid values:
| Active |
ResourceGroupId | string | The ID of the resource group. | rg-aek26jasguy**** |
| Tags | array<object> | The list of tags. | |
object | The tag. | ||
Key | string | The tag key. The tag key cannot be an empty string. The tag key can be up to 128 characters in length, and cannot start with | testTagKey |
Value | string | The tag value. 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, must start with a letter or a Chinese character, and can contain digits, periods (.), underscores (_), and hyphens (-). The tag value cannot start with | testTagValue |
VpcId | string | The VPC ID. | vpc-uf6eg0vndlsa84n7r**** |
| ZoneMappings | array<object> | The list of mappings between zones and vSwitches. You must add at least one zone and can add up to 20 zones. If the current region supports two or more zones, we recommend that you add two or more zones. | |
array<object> | The mapping between a zone and a vSwitch. | ||
| LoadBalancerAddresses | array<object> | The list of addresses of the GWLB instance. | |
object | The address of the GWLB instance. | ||
EniId | string | The ID of the elastic network interface (ENI). | eni-bp17qv9zbzyqy629**** |
PrivateIpv4Address | string | The private IPv4 address. | 192.168.XX.XX |
VSwitchId | string | The vSwitch in the zone. Each zone uses a vSwitch and a subnet by default. | vsw-2zemule5dz7okwqfv**** |
ZoneId | string | The zone ID. You can call the DescribeZones operation to query the most recent zone list. | cn-hangzhou-g |
MaxResults | integer | The number of entries returned on each page. Valid values: 1 to 1000. Default value: 20. | 20 |
NextToken | string | The token that is used for the next query. Valid values:
| CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAIldD2UAAAAACjMDLgAAADFTNzMyZDMwMzAzMDY5NzQzNDM0NmI3NzM2NjUzNzc4NzM2YTc0NjYzOTYz**** |
RequestId | string | The request ID. | 378A80E9-4262-5D8E-8D62-0969E52D7358 |
TotalCount | integer | The total number of entries returned. | 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.