CmdID

CmdID / aws / aws directconnect

aws directconnect describe-direct-connect-gateway-attachments

Lists the attachments between your Direct Connect gateways and virtual interfaces. 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 describe Direct Connect gateway attachments

The following describe-direct-connect-gateway-attachments example describes the virtual interfaces that are attached to Direct Connect gateway 5f294f92-bafb-4011-916d-9b0bexample.

aws directconnect describe-direct-connect-gateway-attachments --direct-connect-gateway-id 5f294f92-bafb-4011-916d-9b0bexampleIdentify
--direct-connect-gateway-idThe ID of the Direct Connect gateway.
Its output
{
    "directConnectGatewayAttachments": [
        {
            "virtualInterfaceOwnerAccount": "123456789012",
            "directConnectGatewayId": "5f294f92-bafb-4011-916d-9b0bexample",
            "virtualInterfaceRegion": "us-west-2",
            "attachmentState": "attaching",
            "virtualInterfaceId": "dxvif-fg9zyabc"
        }
    ],
    "nextToken": "eyJ2IjoxLCJzIjoxLCJpIjoibEhXdlNpUXF5RzhoL1JyUW52SlV2QT09IiwiYyI6Im5wQjFHQ0RyQUdRS3puNnNXcUlINCtkTTA4dTk3KzBiU0xtb05JQmlaczZ6NXRIYmk3c3VESUxFTTd6a2FzVHM0VTFwaGJkZGNxTytqWmQ3QzMzOGRQaTVrTThrOG1zelRsV3gyMWV3VTNFPSJ9"
}

For more information, see Direct Connect gateways in the AWS Direct Connect User Guide.

Options

4 in the AWS CLI reference
--direct-connect-gateway-idThe ID of the Direct Connect gateway.
--max-resultsThe maximum number of results to return with a single call.
--next-tokenThe token provided in the previous call to retrieve the next page.
--virtual-interface-idThe ID of the virtual interface.