{"id":3668,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=33"},"modified":"2020-11-20T06:38:36","modified_gmt":"2020-11-20T06:38:36","slug":"retrieve-device-group-details","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/device-groups\/retrieve-device-group-details\/","title":{"rendered":"Retrieve Device Group Details"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> Retrieve Device Group Details <\/h2>\n<p>Get the details of a device group.\n<\/p><\/div>\n<\/div>\n<div class=\"method-example\">\n<div class=\"curl-text\">curl<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\nHTTP Request:<\/p>\n<pre class=\"lang:default decode:true\">GET https:\/\/<portal>.hexnodemdm.com\/api\/v1\/devicegroups\/{DEVICEGROUP_ID}\/ \r\n<\/pre>\n<p>Shell Command:<\/p>\n<pre class=\"lang:default decode:true\">curl -H \"Authorization:<your API key>\" https:\/\/<portal>.hexnodemdm.com\/api\/v1\/devicegroups\/{DEVICEGROUP_ID}\/\r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\nHTTP Response:<\/p>\n<pre class=\"lang:default decode:true\">{  \r\n\"id\": 4, \r\n\"groupname\":\"ios device group\", \r\n\u201cdescription\u201d: \u201cthis is a group of ios devices\u201d, \r\n\"devices\":[ \r\n{  \r\n\"id\": 1, \r\n\"name\": \"neil's ipad\",  \r\n\u201cuser_id\u201d: 2, \r\n\"user_name\": \"neil\", \r\n\"model_name\": \"iPhone 4S\", \r\n\"platform\": \"ios\" \r\n}, \r\n],  \r\n\"policy\":[ \r\n{  \r\n\"id\":3,  \r\n\"name\":\"android devices\",  \r\n\"version\": 5, \r\n\"created_time\": \"2017-04-12T13:05:12.605Z\"  \r\n}, \r\n...\r\n],  \r\n\"locations\":[ \r\n{ \r\n\"device_name\": \"Randy Hall\",  \r\n\"place_name\": \"Wynnum Rd at Bulimba Creek\", \r\n\"reported_time\": \"2017-03-29T02:15:05.175Z\", \r\n\"longitude\": \"153.109797270424\",  \r\n\"latitude\": \"-27.4797261951427\" \r\n},  \r\n{ \r\n\"device_name\": \"XiaomiRedmi Note 4\",  \r\n\"place_name\": \"Walnut, CA 91789, USA\",   \r\n\"reported_time\": \"2017-03-30T09:00:08.901Z\",  \r\n\"longitude\": \"-122.0638889\",  \r\n\"latitude\": \"37.9063889\"  \r\n} \r\n] \r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Retrieve Device Group Details Get the details of a device group. curl HTTP Request: GET https:\/\/.hexnodemdm.com\/api\/v1\/devicegroups\/{DEVICEGROUP_ID}\/ Shell Command: curl -H &#8220;Authorization:&#8221; https:\/\/.hexnodemdm.com\/api\/v1\/devicegroups\/{DEVICEGROUP_ID}\/ HTTP Response: { &#8220;id&#8221;: 4, &#8220;groupname&#8221;:&#8221;ios device group&#8221;, \u201cdescription\u201d: \u201cthis is a group of ios devices\u201d, &#8220;devices&#8221;:[ { &#8220;id&#8221;: 1, &#8220;name&#8221;: &#8220;neil&#8217;s ipad&#8221;, \u201cuser_id\u201d: 2, &#8220;user_name&#8221;: &#8220;neil&#8221;, &#8220;model_name&#8221;: &#8220;iPhone 4S&#8221;, &#8220;platform&#8221;: &#8220;ios&#8221; }, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3665,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3668","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/comments?post=3668"}],"version-history":[{"count":1,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3668\/revisions"}],"predecessor-version":[{"id":4000,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3668\/revisions\/4000"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3665"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}