Queries the attributes of a listener for a Gateway Load Balancer (GWLB) instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gwlb:GetListenerAttribute |
get |
*LoadBalancer
*Listener
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ListenerId |
string |
Yes |
The listener ID. |
lsn-brx2y3hqdinciz**** |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The data returned. |
||
| ListenerDescription |
string |
The custom description of the listener. The description must be 2 to 256 characters in length. It can contain Chinese characters, letters, digits, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (_), and hyphens (-). |
listener_description |
| ListenerId |
string |
The listener ID. |
lsn-3kbj3587mqhm3p**** |
| ListenerStatus |
string |
The status of the listener. Valid values:
|
Provisioning |
| LoadBalancerId |
string |
The ID of the Gateway Load Balancer instance. |
gwlb-te609d6696632f76**** |
| RegionId |
string |
The ID of the region where the Gateway Load Balancer instance is deployed. |
cn-hangzhou |
| RequestId |
string |
The request ID. |
75CC3312-7757-5EE1-90D8-49CEA66608AE |
| ServerGroupId |
string |
The server group ID. |
sgp-sp8d2r6y7t0xtl**** |
| TcpIdleTimeout |
integer |
The timeout period of an idle TCP connection. |
350 |
| 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, cannot start with |
testKey |
| Value |
string |
The tag value. The tag value can be up to 256 characters in length and cannot contain |
testValue |
Examples
Success response
JSON format
{
"ListenerDescription": "listener_description",
"ListenerId": "lsn-3kbj3587mqhm3p****",
"ListenerStatus": "Provisioning",
"LoadBalancerId": "gwlb-te609d6696632f76****",
"RegionId": "cn-hangzhou",
"RequestId": "75CC3312-7757-5EE1-90D8-49CEA66608AE",
"ServerGroupId": "sgp-sp8d2r6y7t0xtl****",
"TcpIdleTimeout": 350,
"Tags": [
{
"Key": "testKey",
"Value": "testValue"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | ResourceNotFound.Listener | The specified resource of %s is not found. | The specified resource of %s is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.