CmdID / aws / aws globalaccelerator
aws globalaccelerator list-custom-routing-port-mappings
Provides a complete mapping from the public accelerator IP address and port to destination EC2 instance IP addresses and ports in the virtual public cloud (VPC) subnet endpoint for a custom routing accelerator. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To list the port mappings in a custom routing accelerator
The following list-custom-routing-port-mappings example provides a partial list of the port mappings in a custom routing accelerator.
aws globalaccelerator list-custom-routing-port-mappings --accelerator-arn arn:aws:globalaccelerator::123456789012:accelerator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify--accelerator-arnThe Amazon Resource Name (ARN) of the accelerator to list the custom routing port mappings for.Its output, shortened
{
"PortMappings": [
{
"AcceleratorPort": 40480,
"EndpointGroupArn": "arn:aws:globalaccelerator::123456789012:accelerator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/listener/0123vxyz/endpoint-group/098765zyxwvu",
"EndpointId": "subnet-1234567890abcdef0",
"DestinationSocketAddress": {
"IpAddress": "192.0.2.250",
"Port": 80
},
"Protocols": [
"TCP",
"UDP"
],
"DestinationTrafficState": "ALLOW"
},
{
"AcceleratorPort": 40481,
"EndpointGroupArn": "arn:aws:globalaccelerator::123456789012:accelerator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/listener/0123vxyz/endpoint-group/098765zyxwvu",
"EndpointId": "subnet-1234567890abcdef0",
"DestinationSocketAddress": {
"IpAddress": "192.0.2.251",
"Port": 80
},
"Protocols": [
"TCP",
"UDP"
],
"DestinationTrafficState": "ALLOW"
}
… 2 more linesFor more information, see How custom routing accelerators work in AWS Global Accelerator in the AWS Global Accelerator Developer Guide.
Options
--accelerator-arnThe Amazon Resource Name (ARN) of the accelerator to list the custom routing port mappings for.--endpoint-group-arnThe Amazon Resource Name (ARN) of the endpoint group to list the custom routing port mappings for.--max-resultsThe number of destination port mappings that you want to return with this call.--next-tokenThe token for the next set of results.