CmdID

CmdID / aws / aws directconnect

aws directconnect describe-direct-connect-gateway-associations

Lists the associations between your Direct Connect gateways and virtual private gateways and transit gateways. AWS CLI reference

1 example 6 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 associations

The following describe-direct-connect-gateway-associations example describes all the associations with Direct Connect gateway 5f294f92-bafb-4011-916d-9b0bexample.

aws directconnect describe-direct-connect-gateway-associations --direct-connect-gateway-id 5f294f92-bafb-4011-916d-9b0bexampleIdentify
--direct-connect-gateway-idThe ID of the Direct Connect gateway.
Its output
{
    "nextToken": "eyJ2IjoxLCJzIjoxLCJpIjoiOU83OTFodzdycnZCbkN4MExHeHVwQT09IiwiYyI6InIxTEN0UEVHV0I1UFlkaWFnNlUxanJkRWF6eW1iOElHM0FRVW1MdHRJK0dxcnN1RWtvcFBKWFE2ZjRNRGdGTkhCa0tDZmVINEtZOEYwZ0dEYWZpbmU0ZnZMYVhKRjdXRVdENmdQZ1Y4d2w0PSJ9",
    "directConnectGatewayAssociations": [
        {
            "associationState": "associating",
            "virtualGatewayOwnerAccount": "123456789012",
            "directConnectGatewayId": "5f294f92-bafb-4011-916d-9b0bexample",
            "virtualGatewayId": "vgw-6efe725e",
            "virtualGatewayRegion": "us-west-2"
        },
        {
            "associationState": "disassociating",
            "virtualGatewayOwnerAccount": "123456789012",
            "directConnectGatewayId": "5f294f92-bafb-4011-916d-9b0bexample",
            "virtualGatewayId": "vgw-ebaa27db",
            "virtualGatewayRegion": "us-west-2"
        }
    ]
}

For more information, see Associate or disassociate Direct Connect virtual private gateways in the AWS Direct Connect User Guide.

Options

6 in the AWS CLI reference
--associated-gateway-idThe ID of the associated gateway.
--association-idThe ID of the Direct Connect gateway association.
--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-gateway-idThe ID of the virtual private gateway or transit gateway.