DescribeDirectConnectGatewayAssociations#

Description#

Returns the list of Direct Connect gateway associations.

Request Parameters#

  • associatedGatewayId — The ID of the associated gateway.

    • Type: String

    • Required: No

  • associationId — The ID of the association.

    • Type: String

    • Required: No

  • directConnectGatewayId — The ID of the Direct Connect gateway.

    • Type: String

    • Required: No

  • virtualGatewayId — The ID of the transit gateway.

    • Type: String

    • Required: No

Response Elements#

Examples#

Request

https://directconnect.k2.cloud/?Action=DescribeDirectConnectGatewayAssociations
&associationId=dxassoc-4419A549

Response

{
    "directConnectGatewayAssociations": [
        {
            "directConnectGatewayId": "dxgw-A1BF7297",
            "directConnectGatewayOwnerAccount": "user-1@c2dev",
            "associationState": "associated",
            "associatedGateway": {
                "id": "tgw-83EDA0ED",
                "type": "transitGateway",
                "onwerAccount": "user-1@c2dev"
            },
            "associationId": "dxassoc-4419A549",
            "allowedPrefixesToDirectConnectGateway": [
                {
                    "cidr": "10.0.0.0/24"
                }
            ]
        }
    ]
}
c2-dc DescribeDirectConnectGatewayAssociations associationId dxassoc-4419A549

c2-dc DescribeDirectConnectGatewayAssociations associatedGatewayId tgw-83EDA0ED

c2-dc DescribeDirectConnectGatewayAssociations virtualGatewayId tgw-83EDA0ED

c2-dc DescribeDirectConnectGatewayAssociations associatedGatewayId tgw-83EDA0ED directConnectGatewayId dxgw-A1BF7297