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
Examples
To list all connections in the current region
The following describe-connections example lists all connections in the current region.
aws directconnect describe-connectionsIdentifyIts 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
--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.