API Get operating systems and Device filter
CompletedI'd like to be able to request the list of operating systems via the API, and then be able per operating system to request the amount of devices having that operating system registered.
So like:
curl -X GET -u 'admin:adm!nd42' https://yourdevice42address/api/1.0/operatingsystems/ --insecure to get $OS
and
curl -X GET -u 'admin:adm!nd42' https://yourdevice42address/api/1.0/devices/all/?os=$OS&include_cols= --insecure to get the count per $OS
Or one query in which I get each operating system and it's count, that would be nice as well.
We would like to use this to build an external dashboard showing how many systems we still need to migrate from one distribution to the other. This to prevent for management to dive into the mailed excel sheet en count the amounts with a function.
-
This actually works and has been release in one of the pre 8.3.3 versions:
curl -X GET -u admin:admin https://yourdevice42address/api/1.0/operatingsystems/ --insecure
It doesn't show in the API documentation yet unfortunately.
0
Please sign in to leave a comment.
Comments
1 comment