We are building an app that will have a component to build a virtual device, align a dynamic app and a credential to it using the SL1 API. Looking for some guidance on how to do this as we have never done anything with device creation through the API, only /alerts creation.
Solved
Provisioning a Virtual Device in SL1 API
Best answer by TonyAndres
Hello Rob,
You can POST to /api/device, only filling out the specific fields and using a device class for virtual devices. An example payload is:
{
"name": "Example Virtual Device",
"class_type": "/api/device_class/<virtual device class ID>",
"collector_group": "/api/collector_group/1",
"organization": "/api/organization/0"
}
Replacing <virtual device class ID> with the ID of the virtual device class you want.
Antonio Andres
Senior Technical Support Engineer | ScienceLogic
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
