Skip to content

Create an import policy in a BGP peer group

Request

Add an import policy to the specified peer group.

New import policies start with an empty match.prefixes list.


Requires nodes::configure:network permission.

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

peerGroupIdstringrequired

BGP peer group ID

Bodyapplication/jsonrequired

BGP import policy create request

namestringrequired

Policy name

Example:"accept-defaults"
actionobject(BGPPolicyAction)required
curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/v2/node/{nodeID}/config/network/bgp/peer-group/{peerGroupId}/import-policies' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "accept-defaults",
    "action": {
      "action": "allow"
    }
  }'

Responses

OK

Response
No content