Skip to content

Create an export policy in a BGP peer group

Request

Add an export policy to the specified peer group.

New export policies always start with an empty action.prefixes list.


Requires nodes::configure:network permission.

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

peerGroupIdstringrequired

BGP peer group ID

Bodyapplication/jsonrequired

BGP export policy create request

namestringrequired

Policy name

Example:"cluster-routes"
matchobject(BGPExportPolicyMatch)
actionobject(BGPPolicyAction)required
curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/v2/node/{nodeID}/config/network/bgp/peer-group/{peerGroupId}/export-policies' \
  -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