Queries detailed information about a Gateway Load Balancer (GWLB) instance, including its status, zone mappings, and tags.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gwlb:GetLoadBalancerAttribute |
get |
*LoadBalancer
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LoadBalancerId |
string |
Yes |
The GWLB instance ID. |
gwlb-9njtjmqt7zfcqm**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AddressIpVersion |
string |
The IP version of the instance. Valid values:
|
IPv4 |
| CreateTime |
string |
The time when the GWLB instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2024-07-08T10:12:58Z |
| LoadBalancerBusinessStatus |
string |
The business status of the GWLB instance. Valid values:
|
Normal |
| LoadBalancerId |
string |
The GWLB instance ID. |
gwlb-9njtjmqt7zfcqm**** |
| LoadBalancerName |
string |
The GWLB instance name. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter. |
gwlb |
| LoadBalancerStatus |
string |
The GWLB instance status. Valid values:
|
Active |
| RequestId |
string |
The request ID. |
B6DC5DDC-9560-59BF-80FA-ED1E5CB417DF |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmx7pmxcy**** |
| Tags |
array<object> |
The tags. |
|
|
object |
The information about the tag. |
||
| Key |
string |
The tag key. Must not be empty. The tag key can be up to 128 characters in length. The tag key cannot start with |
testTagKey |
| Value |
string |
The tag value. Up to 256 characters in length. Must not contain |
testTagValue |
| VpcId |
string |
The VPC ID. |
vpc-k1aajsbwbaq4todet**** |
| ZoneMappings |
array<object> |
The zone-to-vSwitch mappings. At least one zone is required, and up to 20 zones are supported. If the region supports two or more zones, specify at least two zones. |
|
|
array<object> |
The information about the zones and vSwitches. |
||
| LoadBalancerAddresses |
array<object> |
The GWLB instance addresses. |
|
|
object |
The details of the GWLB instance addresses. |
||
| EniId |
string |
The ENI (elastic network interface) ID used by the GWLB instance. |
eni-bp1iahwz3rzgvltz**** |
| PrivateIpv4Address |
string |
The private IPv4 address. |
192.168.XX.XX |
| VSwitchId |
string |
The vSwitch in the zone. Only one vSwitch (subnet) can be specified per zone for a GWLB instance. |
vsw-uf6v8l7d2f1k53xrl**** |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-j |
| TrafficMode |
string |
The traffic processing mode. Valid values:
|
LoadBalance |
Examples
Success response
JSON format
{
"AddressIpVersion": "IPv4",
"CreateTime": "2024-07-08T10:12:58Z",
"LoadBalancerBusinessStatus": "Normal",
"LoadBalancerId": "gwlb-9njtjmqt7zfcqm****",
"LoadBalancerName": "gwlb",
"LoadBalancerStatus": "Active",
"RequestId": "B6DC5DDC-9560-59BF-80FA-ED1E5CB417DF",
"ResourceGroupId": "rg-acfmx7pmxcy****",
"Tags": [
{
"Key": "testTagKey",
"Value": "testTagValue"
}
],
"VpcId": "vpc-k1aajsbwbaq4todet****",
"ZoneMappings": [
{
"LoadBalancerAddresses": [
{
"EniId": "eni-bp1iahwz3rzgvltz****",
"PrivateIpv4Address": "192.168.XX.XX"
}
],
"VSwitchId": "vsw-uf6v8l7d2f1k53xrl****",
"ZoneId": "cn-hangzhou-j"
}
],
"TrafficMode": "LoadBalance"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotFound.LoadBalancer | The specified resource of %s is not found. | |
| 400 | MissingParam.LoadBalancerId | The param of LoadBalancerId is missing. | Load balancing ID parameter missing |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.