Skip to content

Create an import policy prefix match

Request

Add a prefix matcher to an import policy.


Requires nodes::configure:network permission.

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

peerGroupIdstringrequired

BGP peer group ID

importPolicyIdstringrequired

BGP import policy ID

Bodyapplication/jsonrequired

BGP import prefix create request

prefixstringrequired

IPv4 CIDR prefix to match

Example:"0.0.0.0/0"
exactboolean

Require an exact prefix-length match when true

descriptionstring

Optional description for this prefix matcher

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

Responses

OK

Response
No content