Category Filter
List Device Groups
Returns a list of all device groups.
Parameters | Type | Description | Default value |
---|---|---|---|
page | Integer | Optional | 1 |
per_page | Integer | Optional | 100 |
curl
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 |
GET https://<portal>.hexnodemdm.com/api/v1/devicegroups/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- { "page":1, "per_page":100, } |
Shell Command:
1 |
curl -H "Authorization:<your API key>" https://<portal>.hexnodemdm.com/api/v1/devicegroups/ |
HTTP Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
{ "count": 11, "next": https://<portal>.hexnodemdm.com/api/v1/devicegroups/? page=2&per_page=10, "previous": null, "results": [ { "id":1, "groupname":"example", device_count:1, description:"ios device group", "grouptype":"custom", "modified_date":"2017-04-12T13:05:12.605Z" } , { "id":2, groupname:"example", "device_count":3, "description":"android device group", "grouptype":"dynamic", "modified_date":"2017-04-12T13:05:12.605Z" } ] } |