CmdID / aws / aws globalaccelerator
aws globalaccelerator list-listeners
List the listeners for an accelerator. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list listeners
The following list-listeners example lists the listeners for an accelerator.
aws globalaccelerator list-listeners --accelerator-arn arn:aws:globalaccelerator::123456789012:accelerator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify--accelerator-arnThe Amazon Resource Name (ARN) of the accelerator for which you want to list listener objects.Its output
{
"Listeners": [
{
"ListenerArn": "arn:aws:globalaccelerator::123456789012:accelerator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/listener/abcdef1234",
"PortRanges": [
{
"FromPort": 80,
"ToPort": 80
}
],
"Protocol": "TCP",
"ClientAffinity": "NONE"
}
]
}For more information, see Listeners in AWS Global Accelerator in the AWS Global Accelerator Developer Guide.
Options
--accelerator-arnThe Amazon Resource Name (ARN) of the accelerator for which you want to list listener objects.--max-resultsThe number of listener objects that you want to return with this call.--next-tokenThe token for the next set of results.