CmdID / aws / aws directconnect
aws directconnect describe-lags
Describes all your link aggregation groups (LAG) or the specified LAG. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To describe your LAGs
The following describe-lags example describes all of your LAGs for the current region.
aws directconnect describe-lagsIdentifyIts output, shortened
{
"lags": [
{
"awsDevice": "EqDC2-19y7z3m17xpuz",
"numberOfConnections": 2,
"lagState": "down",
"ownerAccount": "123456789012",
"lagName": "DA-LAG",
"connections": [
{
"ownerAccount": "123456789012",
"connectionId": "dxcon-ffnikghc",
"lagId": "dxlag-fgsu9erb",
"connectionState": "requested",
"bandwidth": "10Gbps",
"location": "EqDC2",
"connectionName": "Requested Connection 1 for Lag dxlag-fgsu9erb",
"region": "us-west-2"
},
{
"ownerAccount": "123456789012",
"connectionId": "dxcon-fglgbdea",
"lagId": "dxlag-fgsu9erb",
"connectionState": "requested",
"bandwidth": "10Gbps",
"location": "EqDC2",
"connectionName": "Requested Connection 2 for Lag dxlag-fgsu9erb",
"region": "us-west-2"
}
],
… 8 more linesFor more information, see View LAG details at a Direct Connect endpoint in the AWS Direct Connect User Guide.
Options
--lag-idThe ID of the LAG.--max-resultsThe maximum number of results to return with a single call.--next-tokenThe token for the next page of results.