Queries Gateway Load Balancer (GWLB) 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:
- 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 |
---|---|---|---|---|
gwlb:ListLoadBalancers | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ZoneIds | array | No | The zone ID. You can call the DescribeZones operation to query the most recent zone list. You can query at most 20 zone IDs in each call. | |
string | No | The zone ID. | cn-beijing-h | |
VpcIds | array | No | The virtual private cloud (VPC) ID. You can query at most 20 IDs in each call. | |
VpcId | string | No | The VPC ID. | vpc-bp1xuejaht4o7yhh2**** |
AddressIpVersion | string | No | The IP version. Valid values:
Enumeration values:
| IPv4 |
LoadBalancerStatus | string | No | The GWLB instance status. Valid values:
| Active |
LoadBalancerBusinessStatus | string | No | The business status of the GWLB instance. Valid values:
| Normal |
LoadBalancerNames | array | No | The GWLB instance name. You can specify at most 20 GWLB instance names in each call. | |
LoadBalancerName | string | No | The GWLB instance name. | testGwlbName |
ResourceGroupId | string | No | The resource group ID. | rg-aek2htf5qsyrn**** |
LoadBalancerIds | array | No | The GWLB instance ID. You can query at most 20 GWLB instances in each call. | |
LoadBalancerId | string | No | The GWLB instance ID. | gwlb-cp6prgqy40hols**** |
Tag | array<object> | No | The tags. You can specify at most 20 tags in each call. | |
TagModel | object | No | ||
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. The tag key 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 pagination token that is used in the next request to retrieve a new page of results. Valid values:
| WyJyb290IiwibiIsIm4iLDEsMCwxNjg1MDY1NTgyNzYwLCI2NDcwMGY2ZTc2Zjc0MWFiZGEyZjQyNzc4ZDk2MmJkOTk3ZGZmM2Nm**** |
MaxResults | integer | No | The number of entries per page. Valid values: 1 to 1000. Default value: 20. | 20 |
Skip | integer | No | The number of entries to be skipped in the call. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"LoadBalancers": [
{
"AddressIpVersion": "IPv4",
"CreateTime": "2024-08-05 18:24:07",
"LoadBalancerBusinessStatus": "Normal",
"LoadBalancerId": "gwlb-9njtjmqt7zfcqm****\n",
"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
For a list of error codes, visit the Service error codes.