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
Examples
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-gatewaysIdentifyIts 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
--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.