CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

4 in the AWS CLI reference
--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.