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:
- For mandatory resource types, indicate with a prefix of * .
- 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 | *Listener acs:nlb:{#regionId}:{#accountId}:listener/* |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ListenerIds | array | No | The listener IDs. You can specify up to 20 listeners. | |
ListenerId | string | No | The listener ID. You can specify up to 20 listeners. | lsn-bp1bpn0kn908w4nbw****@443 |
LoadBalancerIds | array | No | The IDs of the NLB instances. You can specify up to 20 instances. | |
LoadBalancerId | string | No | The ID of the NLB instance. You can specify up to 20 instances. | nlb-83ckzc8d4xlp8o**** |
ListenerProtocol | string | No | The listener protocol. Valid values: TCP, UDP, and TCPSSL. | TCPSSL |
Tag | array<object> | No | The tags. | |
object | No | The tag. | ||
Key | string | No | The key of the tag. You can specify up to 20 tags. The tag key cannot be an empty string. It can be up to 64 characters in length, cannot start with | env |
Value | string | No | The value of the tag. You can specify up to 20 tags. The tag value can be an empty string. It can be up to 128 characters in length, cannot start with | product |
NextToken | string | No | The pagination token used to specify a particular page of results. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
MaxResults | integer | No | The number of entries to return in each call. 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 |