UpdateDirectConnectGatewayAssociation#

Description#

Adds or removes subnets to be advertised via BGP to the user equipment.

Request Parameters#

  • addAllowedPrefixestoDirectConnectGateway — The list of subnets allowed to be advertised via BGP to the user equipment.

    • Type: List of RouteFilterPrefix objects

    • Required: No

    • Constraints: Should not overlap with the prefixes of associations of this Direct Connect gateway

  • associationId — The ID of the association.

    • Type: String

    • Required: No

  • removeAllowedPrefixestoDirectConnectGateway — The list of subnets to be excluded from advertising via BGP to the user equipment.

Response Elements#

Examples#

Request

https://directconnect.k2.cloud/?Action=UpdateDirectConnectGatewayAssociation
&associationId=dxassoc-4419A549
&addAllowedPrefixesToDirectConnectGateway.0.cidr=10.0.1.0/24

Response

{
    "directConnectGatewayAssociation": {
        "directConnectGatewayId": "dxgw-A1BF7297",
        "directConnectGatewayOwnerAccount": "user-1@c2dev",
        "associationState": "updating",
        "associatedGateway": {
            "id": "tgw-83EDA0ED",
            "type": "transitGateway",
            "onwerAccount": "user-1@c2dev"
        },
        "associationId": "dxassoc-4419A549",
        "allowedPrefixesToDirectConnectGateway": [
            {
                "cidr": "10.0.0.0/24"
            },
            {
                "cidr": "10.0.1.0/24"
            }
        ]
    }
}
c2-dc UpdateDirectConnectGatewayAssociation associationId dxassoc-4419A549 addAllowedPrefixesToDirectConnectGateway.0.cidr 10.0.1.0/24

c2-dc UpdateDirectConnectGatewayAssociation associationId dxassoc-4419A549 addAllowedPrefixesToDirectConnectGateway.0.cidr 10.0.1.0/24 addAllowedPrefixesToDirectConnectGateway.1.cidr 12.0.0.0/24 removeAllowedPrefixesToDirectConnectGateway.0.cidr 10.0.0.0/24