CmdID / aws / aws networkmanager
aws networkmanager get-link-associations
Gets the link associations for a device or a link. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To get your link associations
The following get-link-associations example gets the link associations in the specified global network.
aws networkmanager get-link-associations --global-network-id global-network-01231231231231231Identify--global-network-idThe ID of the global network.Its output
{
"LinkAssociations": [
{
"GlobalNetworkId": "global-network-01231231231231231",
"DeviceId": "device-07f6fd08867abc123",
"LinkId": "link-11112222aaaabbbb1",
"LinkAssociationState": "AVAILABLE"
}
]
}For more information, see Associate or disassociate a device link using AWS Network Manager in the AWS Global Networks for Transit Gateways User Guide.
Options
--device-idThe ID of the device.--global-network-idThe ID of the global network.--link-idThe ID of the link.--max-resultsThe maximum number of results to return.--next-tokenThe token for the next page of results.