File: //usr/share/doc/awscli/examples/globalaccelerator/list-custom-routing-endpoint-groups.rst
**To list endpoint groups for a listener in a custom routing accelerator**
The following ``list-custom-routing-endpoint-groups`` example lists the endpoint groups for a listener in a custom routing accelerator. ::
aws globalaccelerator list-custom-routing-endpoint-groups \
--listener-arn arn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh/listener/abcdef1234
Output::
{
"EndpointGroups": [
{
"EndpointGroupArn": "arn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh/listener/abcdef1234/endpoint-group/ab88888example",
"EndpointGroupRegion": "eu-central-1",
"DestinationDescriptions": [
{
"FromPort": 80,
"ToPort": 80,
"Protocols": [
"TCP",
"UDP"
]
}
]
"EndpointDescriptions": [
{
"EndpointId": "subnet-abcd123example"
}
]
}
]
}
For more information, see `Endpoint groups for custom routing accelerators in AWS Global Accelerator <https://docs.aws.amazon.com/global-accelerator/latest/dg/about-custom-routing-endpoint-groups.html>`__ in the *AWS Global Accelerator Developer Guide*.