KRON PAM API Collection v3.7.0
Device Management
List Device Group By Parent Group Name
1 min
code examples curl location globoff '{{url}}/aioc rest web/rest/discovery/getdevicegroupsbyparentgroupname/parentgroupname' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'x xsrf token {{csrftoken}}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("x xsrf token", "{{csrftoken}}"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("{{url}}/aioc rest web/rest/discovery/getdevicegroupsbyparentgroupname/parentgroupname", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("{{url}}/aioc rest web/rest/discovery/getdevicegroupsbyparentgroupname/parentgroupname") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["x xsrf token"] = "{{csrftoken}}" response = http request(request) puts response read body import requests import json url = "{{url}}/aioc rest web/rest/discovery/getdevicegroupsbyparentgroupname/parentgroupname" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'x xsrf token' '{{csrftoken}}' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses \[ { "dbid" 826831, "id" "c85a9949 4ab4 459e 972b 2475385ee2a5", "name" "testdg child", "description" null, "parentgroupid" "1c2b4ba5 4ec9 4920 ac67 2de4229b2b72", "ifaceoperationcheck" false, "timetolerance" null, "realms" \[], "deviceids" \[], "properties" {}, "children" null, "devices" null, "rootgroupid" null, "globalusername" null, "globalpassword" null, "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false } ]