Skip to content

Create an export policy prefix

Request

Add an exported prefix entry to an export policy.


Requires nodes::configure:network permission.

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

peerGroupIdstringrequired

BGP peer group ID

exportPolicyIdstringrequired

BGP export policy ID

Bodyapplication/jsonrequired

BGP export prefix create request

prefixstringrequired

IPv4 CIDR prefix to export

Example:"10.0.200.0/24"
descriptionstring

Optional description for this export prefix

curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/v2/node/{nodeID}/config/network/bgp/peer-group/{peerGroupId}/export-policy/{exportPolicyId}/match/prefixes' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "prefix": "10.0.200.0/24",
    "description": "string"
  }'

Responses

OK

Response
No content