Skip to content

Update an export policy in a BGP peer group

Request

Update an export policy in the specified peer group.

Updating the policy preserves the existing action.prefixes entries.


Requires nodes::configure:network permission.

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

peerGroupIdstringrequired

BGP peer group ID

policyIdstringrequired

BGP policy ID

Bodyapplication/jsonrequired

BGP export policy update request

namestringrequired

Policy name

Example:"cluster-routes"
matchobject(BGPExportPolicyMatch)
actionobject(BGPPolicyAction)required
curl -i -X PUT \
  'https://apidocs.trustgrid.io/_mock/v2/node/{nodeID}/config/network/bgp/peer-group/{peerGroupId}/export-policies/{policyId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "cluster-routes",
    "match": {
      "cluster": true
    },
    "action": {
      "action": "allow"
    }
  }'

Responses

OK

Response
No content