Skip to content

Update an import policy in a BGP peer group

Request

Update an import policy in the specified peer group.

Updating the policy preserves the existing match.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 import policy update request

namestringrequired

Policy name

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

Responses

OK

Response
No content