Queries listeners added to a Network Load Balancer (NLB) instance.
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 |
---|---|---|---|---|
nlb:ListListeners | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ListenerIds | array | No | The listener IDs. | |
ListenerId | string | No | The ID of the listener. You can specify at most 20 IDs. | lsn-bp1bpn0kn908w4nbw****@443 |
LoadBalancerIds | array | No | The ID of the NLB instance. You can query up to 20 NLB instances at a time. | |
LoadBalancerId | string | No | The ID of the NLB instance. You can specify at most 20 IDs. | nlb-83ckzc8d4xlp8o**** |
ListenerProtocol | string | No | The listening protocol. Valid values: TCP, UDP, and TCPSSL. | TCPSSL |
Tag | array<object> | No | The tags. | |
object | No | The tags. | ||
Key | string | No | The key of the tag. You can specify up to 20 tag keys. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot contain | env |
Value | string | No | The value of the tag. You can specify up to 10 tag values. The tag value can be up to 128 characters in length, and cannot contain | product |
NextToken | string | No | The token that is used for the next query. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
MaxResults | integer | No | The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. | 20 |
RegionId | string | No | The ID of the region where the NLB instance is deployed. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
SecSensorEnabled | string | No | Specifies whether to enable fine-grained monitoring. Valid values:
| false |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"Listeners": [
{
"Tags": [
{
"Key": "Created",
"Value": "TF"
}
],
"LoadBalancerId": "nlb-83ckzc8d4xlp8o****",
"ListenerId": "lsn-ga6sjjcll6ou34l1et****",
"ListenerProtocol": "TCPSSL",
"ListenerPort": 443,
"StartPort": "233",
"EndPort": "455",
"ListenerDescription": "tcpssl_443",
"ServerGroupId": "sgp-ppdpc14gdm3x4o****",
"IdleTimeout": 900,
"SecurityPolicyId": "tls_cipher_policy_1_1",
"CertificateIds": [
"12315790212_166f8204689_1714763408_70998****"
],
"CaCertificateIds": [
"139a00604ad-cn-east-hangzh****"
],
"CaEnabled": false,
"ListenerStatus": "Running",
"RegionId": "cn-hangzhou",
"AlpnEnabled": false,
"AlpnPolicy": "HTTP1Only",
"SecSensorEnabled": false,
"ProxyProtocolEnabled": false,
"ProxyProtocolV2Config": {
"Ppv2VpcIdEnabled": false,
"Ppv2PrivateLinkEpIdEnabled": false,
"Ppv2PrivateLinkEpsIdEnabled": false
},
"Cps": 1000,
"Mss": 200
}
],
"TotalCount": 4,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"MaxResults": 20
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | SystemBusy | System is busy, please try again later. | - |
400 | IllegalParam | The param of %s is illegal. | - |
403 | Forbidden.NoPermission | Authentication is failed for NoPermission. | Authentication is failed for NoPermission. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-02-29 | The Error code has changed | View Change Details |
2023-12-12 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-11-27 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-09-26 | The Error code has changed | View Change Details |
2023-09-05 | The Error code has changed | View Change Details |
2023-08-22 | The Error code has changed | View Change Details |
2023-06-29 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |