{"id":3673,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=38"},"modified":"2022-04-07T10:16:53","modified_gmt":"2022-04-07T10:16:53","slug":"list-policies","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/policies\/list-policies\/","title":{"rendered":"List Policies"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> List Policies <\/h2>\n<p>Lists all policies.<\/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>Parameter<\/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\/policy\/  \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\/policy\/\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\": 4, \r\n\"next\": null \r\n\"previous\": null, \r\n\"results\": [ \r\n{ \r\n\"id\": 129, \r\n\"name\": \"tested\", \r\n\"description\": \"\", \r\n\"version\": 21, \r\n\"archived\": false,\r\n\"ios_configured\": false, \r\n\"android_configured\": true, \r\n\"windows_configured\": false, \r\n\"created_time\": \"2017-05-04T07:32:44.775574Z\", \r\n\"modified_time\": \"2017-05-05T09:39:33.577660Z\", \r\n\"device_count\": 0 \r\n} \r\n] \r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>List Policies Lists all policies. Parameter Type Description Default value page Integer Optional 1 per_page Integer Optional 100 curl HTTP Request: GET https:\/\/.hexnodemdm.com\/api\/v1\/policy\/ Shell Command: curl -H &#8220;Authorization:&#8221; https:\/\/.hexnodemdm.com\/api\/v1\/policy\/ HTTP Response: { &#8220;count&#8221;: 4, &#8220;next&#8221;: null &#8220;previous&#8221;: null, &#8220;results&#8221;: [ { &#8220;id&#8221;: 129, &#8220;name&#8221;: &#8220;tested&#8221;, &#8220;description&#8221;: &#8220;&#8221;, &#8220;version&#8221;: 21, &#8220;archived&#8221;: false, &#8220;ios_configured&#8221;: false, &#8220;android_configured&#8221;: true, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3672,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3673","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3673","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=3673"}],"version-history":[{"count":6,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3673\/revisions"}],"predecessor-version":[{"id":4683,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3673\/revisions\/4683"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3672"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}