CmdID

CmdID / aws / aws directconnect

aws directconnect describe-direct-connect-gateways

Lists all your Direct Connect gateways or only the specified Direct Connect gateway. AWS CLI reference

1 example 3 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 your Direct Connect gateways

The following describe-direct-connect-gateways example describes all of your Direct Connect gateways.

aws directconnect describe-direct-connect-gatewaysIdentify
Its output
{
    "directConnectGateways": [
        {
            "amazonSideAsn": 64512,
            "directConnectGatewayId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "ownerAccount": "123456789012",
            "directConnectGatewayName": "DxGateway2",
            "directConnectGatewayState": "available"
        },
        {
            "amazonSideAsn": 64512,
            "directConnectGatewayId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
            "ownerAccount": "123456789012",
            "directConnectGatewayName": "DxGateway1",
            "directConnectGatewayState": "available"
        }
    ]
}

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

Options

3 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.