Skip to main content

I am new to Netbrain and I am trying to add the device to the Netbrain through the API call. What would be the correct API call that I need to perform to add a device to netbrain. 

Hi @Charan0105 ,

as far as I know, there is no single API to add devices to NetBrain. Devices are added through discovery. To get there is a little complex. You need to create a Discovery Task in NB, connect to NB, authenticate and select your domain, add devices to the task and run the task.

Create a Discovery Benchmark
Make sure to select API Triggered Discovery

These are the APIs to use, they all provide example code:
Login
Authentication and Authorization API
https://github.com/NetBrainAPI/NetBrain-REST-API-R11/blob/main/REST%20APIs%20Documentation/Authentication%20and%20Authorization/Login%20API.md

Select Domain
https://github.com/NetBrainAPI/NetBrain-REST-API-R11/blob/main/REST%20APIs%20Documentation/Authentication%20and%20Authorization/Specify%20A%20Working%20Domain%20API.md

Add Device to previously configured discovery benchmark
Discovery API Design
https://github.com/NetBrainAPI/NetBrain-REST-API-R11/blob/main/REST%20APIs%20Documentation/Discovery%20Task%20Management/Edit%20Schedule%20Discovery%20API.md

Discovery API Design
https://github.com/NetBrainAPI/NetBrain-REST-API-R11/blob/main/REST%20APIs%20Documentation/Discovery%20Task%20Management/Run%20Discovery%20Task%20Now%20API.md

For cleanup, remove the list fo IPs from the discovery taskhttps://github.com/NetBrainAPI/NetBrain-REST-API-R11/blob/main/REST%20APIs%20Documentation/Discovery%20Task%20Management/Delete%20Seed%20IPs%20to%20Discovery%20Task%20API.md

 

Regards

Carsten


Reply