Update devicegroups via API

Hi all:

I’ve written a script that shows all the associated hostnames for our various internal apps. I was hoping to be able to create/update devicegroups in librenms via the api so our teams can monitor system(s) performance for each app. However, I am unable to find a way to do this via the api and was wondering if anyone had figured out a way to do this programmatically?

Thanks!

1 Like

Static device groups are a fairly new thing in LibreNMS.
I don’t think there is an API endpoint for them. Would be happy to see code for this added to LibreNMS.

1 Like

Another thumbs up for full devicegroups API support here! I’m currently trying to write a Terraform provider for LibreNMS but can’t do devicegroups until the full set of CRUD operations are supported.

I can see that there are recent commits to the API code though, so fingers crossed :wink:

1 Like