Skip to content

Create a BGP peer in a peer group

Request

Add a remote BGP peer to the specified peer group.


Requires nodes::configure:network permission.

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

peerGroupIdstringrequired

BGP peer group ID

Bodyapplication/jsonrequired

BGP peer create request

namestringrequired

Peer name

Example:"isp-router-1"
ipstringrequired

IPv4 address of the remote peer

Example:"10.0.0.254"
asninteger, [ 1 .. 65534 ]required

Remote autonomous system number

Example:65000
secretstring

Optional MD5 authentication secret

curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/v2/node/{nodeID}/config/network/bgp/peer-group/{peerGroupId}/peers' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "isp-router-1",
    "ip": "10.0.0.254",
    "asn": 65000,
    "secret": "string"
  }'

Responses

OK

Response
No content