Queries Gateway Load Balancer (GWLB) listeners.
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:ListListeners | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ListenerIds | array | No | The listener IDs. You can specify at most 20 listener IDs. | |
ListenerId | string | No | The listener ID. | lsn-w3t3vpgjj12b2i**** |
LoadBalancerIds | array | No | The GWLB instance IDs. You can specify at most 20 instance IDs. | |
LoadBalancerId | string | No | The GWLB instance ID. | gwlb-rbtjolkkbudmrr**** |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. Valid values:
| d209f4e63ec942c967c50c888a13**** |
MaxResults | integer | No | The maximum number of results to be returned from a single query when the NextToken parameter is used in the query. Valid values: 1 to 1000. Default value: 20. | 20 |
Tag | array<object> | No | The tags. You can specify at most 20 tags in each call. | |
TagModel | object | No | The tag. | |
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 | tagKey |
Value | string | No | The tag value. The tag value can be up to 256 characters in length and cannot contain | tagValue |
Skip | long | No | The number of entries to be skipped in the call. | 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"Listeners": [
{
"ListenerDescription": "listener-description",
"ListenerId": "lsn-vu7folhh5ntm8u****",
"ListenerStatus": "Running",
"LoadBalancerId": "gwlb-uf6hbeh795xlqln7g****",
"ServerGroupId": "sgp-5yapcb422i51ru****",
"Tags": [
{
"Key": "testKey",
"Value": "testValue"
}
]
}
],
"MaxResults": 20,
"NextToken": "5c281c0a0d6bfb6355ed088c2108aca8e0b5e8707e68****",
"RequestId": "7DBFC67C-A272-5952-8287-6C3EBE4E04D9",
"TotalCount": 8
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MissingParam.TagKey | The param of TagKey is missing. | The parameter of tag key is missing. |
400 | DuplicatedParam.TagKey | The param of %s is duplicated. | The parameter of tag key is duplicated. |
For a list of error codes, visit the Service error codes.