CmdID

CmdID / aws / aws directconnect

aws directconnect describe-connections

Displays the specified connection or all connections in this Region. 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 list all connections in the current region

The following describe-connections example lists all connections in the current region.

aws directconnect describe-connectionsIdentify
Its output
{
    "connections": [
        {
            "awsDevice": "EqDC2-123h49s71dabc",
            "ownerAccount": "123456789012",
            "connectionId": "dxcon-fguhmqlc",
            "lagId": "dxlag-ffrz71kw",
            "connectionState": "down",
            "bandwidth": "1Gbps",
            "location": "EqDC2",
            "connectionName": "My_Connection",
            "loaIssueTime": 1491568964.0,
            "region": "us-west-2"
        }
    ]
}

For more information, see View Direct Connect connection details in the AWS Direct Connect User Guide.

Options

3 in the AWS CLI reference
--connection-idThe ID of the connection.
--max-resultsThe maximum number of results to return with a single call.
--next-tokenThe token for the next page of results.