CmdID / aws / aws directconnect
aws directconnect describe-hosted-connections
Lists the hosted connections that have been provisioned on the specified interconnect or link aggregation group (LAG). AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list connections on an interconnect
The following describe-hosted-connections example lists connections that have been provisioned on the given interconnect.
aws directconnect describe-hosted-connections --connection-id dxcon-fgktov66Identify--connection-idThe ID of the interconnect or LAG.Its output
{
"connections": [
{
"partnerName": "TIVIT",
"vlan": 101,
"ownerAccount": "123456789012",
"connectionId": "dxcon-ffzc51m1",
"connectionState": "ordering",
"bandwidth": "500Mbps",
"location": "TIVIT",
"connectionName": "mydcinterconnect",
"region": "us-west-2"
}
]
}For more information, see Hosted Direct Connect connections in the AWS Direct Connect User Guide.
Options
--connection-idThe ID of the interconnect or LAG.--max-resultsThe maximum number of results to return with a single call.--next-tokenThe token for the next page of results.