CmdID / aws / aws globalaccelerator
aws globalaccelerator list-custom-routing-port-mappings-by-destination
List the port mappings for a specific EC2 instance (destination) in a VPC subnet endpoint. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To list the port mappings for a specific custom routing accelerator destination
The following list-custom-routing-port-mappings-by-destination example provides the port mappings for a specific destination EC2 server (at the destination address) for a custom routing accelerator.
aws globalaccelerator list-custom-routing-port-mappings-by-destination --endpoint-id subnet-abcd123example --destination-address 198.51.100.52Identify--endpoint-idThe ID for the virtual private cloud (VPC) subnet.--destination-addressThe endpoint IP address in a virtual private cloud (VPC) subnet for which you want to receive back port mappings.Its output
{
"DestinationPortMappings": [
{
"AcceleratorArn": "arn:aws:globalaccelerator::123456789012:accelerator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"AcceleratorSocketAddresses": [
{
"IpAddress": "192.0.2.250",
"Port": 65514
},
{
"IpAddress": "192.10.100.99",
"Port": 65514
}
],
"EndpointGroupArn": "arn:aws:globalaccelerator::123456789012:accelerator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/listener/0123vxyz/endpoint-group/ab88888example",
"EndpointId": "subnet-abcd123example",
"EndpointGroupRegion": "us-west-2",
"DestinationSocketAddress": {
"IpAddress": "198.51.100.52",
"Port": 80
},
"IpAddressType": "IPv4",
"DestinationTrafficState": "ALLOW"
}
]
}For more information, see How custom routing accelerators work in AWS Global Accelerator in the AWS Global Accelerator Developer Guide.
Options
--destination-addressThe endpoint IP address in a virtual private cloud (VPC) subnet for which you want to receive back port mappings.--endpoint-idThe ID for the virtual private cloud (VPC) subnet.--max-resultsThe number of destination port mappings that you want to return with this call.--next-tokenThe token for the next set of results.