{"id":3650,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=15"},"modified":"2022-04-12T10:23:45","modified_gmt":"2022-04-12T10:23:45","slug":"action-status","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/devices\/action-status\/","title":{"rendered":"Action Status"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> Action Status <\/h2>\n<p>Returns status of actions executed in devices.<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" width=\"100%\" class=\"table table-bordered\">\n<thead>\n<tr>\n<th width=\"15%\"> <strong>Parameters<\/strong> <\/th>\n<th width=\"15%\"> <strong>Type<\/strong> <\/th>\n<th width=\"15%\"> <strong>Description<\/strong> <\/th>\n<th width=\"10%\"> <strong>Default value<\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> page <\/td>\n<td> Integer <\/td>\n<td> Optional <\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td> per_page <\/td>\n<td>Integer<\/td>\n<td>Optional<\/td>\n<td>100<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/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\/devices\/{DEVICE_ID}\/action_status\/?page=2 \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\/devices\/{DEVICE_ID}\/action_status\/?page=2\"\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\"count\": 270, \"next\":https:\/\/<portal>.hexnodemdm.com\/api\/v1\/devices\/{DEVICE_ID}\/action_status\/?page=3, \r\n\"previous\":  https:\/\/<portal>.hexnodemdm.com\/api\/v1\/devices\/{DEVICE_ID}\/action_status?\/page=1, \r\n\"results\": [ \r\n{ \r\n\"status\": pending, \r\n\"finished_time\": null,  \r\n\"action_label\": \"Scan Device Location\", \r\n\"subject_details\": {}, \r\n\"error_code\": null,  \r\n\u201cerror_message\u201d: null, \r\n\"created_time\": \"2017-04-12T15:00:04.725Z\" \r\n}, \r\n{ \r\n\"status\": \"success\",  \r\n\"finished_time\": \"2017-04-06T15:59:40.959Z\",  \r\n\"action_label\": \"Associate Policy\",  \r\n\"subject_details\": { \r\n\"identifier\": \"com.hexnode.mdm.3287302066\", \r\n\"link\": \"#\",  \r\n\"name\": \"Effective Profile v2\" \r\n}, \r\n\"error_code\":null, \r\n\"error_message\" : null, \r\n\"created_time\" : \"2017-04-06T15:59:4.959Z\" \r\n} \r\n] \r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Action Status Returns status of actions executed in devices. Parameters Type Description Default value page Integer Optional 1 per_page Integer Optional 100 curl HTTP Request: GET https:\/\/.hexnodemdm.com\/api\/v1\/devices\/{DEVICE_ID}\/action_status\/?page=2 Shell Command: curl -H &#8220;Authorization: &#8221; &#8220;https:\/\/.hexnodemdm.com\/api\/v1\/devices\/{DEVICE_ID}\/action_status\/?page=2&#8221; HTTP Response: { &#8220;count&#8221;: 270, &#8220;next&#8221;:https:\/\/.hexnodemdm.com\/api\/v1\/devices\/{DEVICE_ID}\/action_status\/?page=3, &#8220;previous&#8221;: https:\/\/.hexnodemdm.com\/api\/v1\/devices\/{DEVICE_ID}\/action_status?\/page=1, &#8220;results&#8221;: [ { &#8220;status&#8221;: pending, &#8220;finished_time&#8221;: null, &#8220;action_label&#8221;: &#8220;Scan Device Location&#8221;, &#8220;subject_details&#8221;: {}, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3644,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3650","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3650","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=3650"}],"version-history":[{"count":3,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3650\/revisions"}],"predecessor-version":[{"id":4564,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3650\/revisions\/4564"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3644"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}