KRON PAM API Collection v3.7.0
Device Management
List Device Groups By Parent Group Id
1 min
code examples curl location globoff '{{url}}/aioc rest web/rest/discovery/getdevicegroupsbyparentid/parentgroupid' \\ \ 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/getdevicegroupsbyparentid/parentgroupid", 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/getdevicegroupsbyparentid/parentgroupid") 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/getdevicegroupsbyparentid/parentgroupid" 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" 663099, "id" "bf180f4d d592 4c76 8d77 0ebb3ad1cc36", "name" "http dg", "description" "i̇tü", "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 300455 ], "deviceids" \[ 663150 ], "properties" {}, "children" null, "devices" null, "rootgroupid" null, "globalusername" null, "globalpassword" null, "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }, { "dbid" 318983, "id" "4035b85e 392c 457e a52b 3b0a5d6fa86b", "name" "gcp dg", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 319362 ], "deviceids" \[ 625461, 625460, 625463, 625462, 625457 ], "properties" { "adddevicesshkeytouserselection" "true", "tag key" "10" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" null, "globalpassword" null, "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }, { "dbid" 300289, "id" "9f88ffca f571 4dbf bfc9 72f0495ee652", "name" "rdp", "description" "41 55", "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 300464 ], "deviceids" \[ 300385 ], "properties" { "globalusername" "administrator\@krontechlab net", "addmanuallogintouserselection" "true", "globalpassword" "yiyelvgqr/vp6zsuiwubvg==" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" "administrator\@krontechlab net", "globalpassword" "yiyelvgqr/vp6zsuiwubvg==", "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }, { "dbid" 790536, "id" "1c2b4ba5 4ec9 4920 ac67 2de4229b2b72", "name" "testdg testapi", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[], "deviceids" \[], "properties" { "discoverysources" "rest" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" null, "globalpassword" null, "showindevicetree" true, "useasrolegroup" true, "discoverysources" "rest", "readonly" false }, { "dbid" 703284, "id" "d2eb1d13 98d3 444d afe8 7a7759583a19", "name" "ssh", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 703295 ], "deviceids" \[ 703328 ], "properties" { "globalusername" "root", "globalpassword" "cqauvrmsqausvep6dcls6a==" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" "root", "globalpassword" "cqauvrmsqausvep6dcls6a==", "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }, { "dbid" 300318, "id" "c859907e ee9d 4854 9ee5 930d49396c34", "name" "cisco router", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[], "deviceids" \[ 300434 ], "properties" { "globalusername" "pta", "globalsecretkey" "d2vmutefw4oobd6fjdxubw==", "globalpassword" "c6yrbp3qxtzxhrsabodcnw==" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" "pta", "globalpassword" "c6yrbp3qxtzxhrsabodcnw==", "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }, { "dbid" 627062, "id" "e97cb71b 9fe4 45bf b14e 7eab40ce5f3b", "name" "sql", "description" "sql", "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[], "deviceids" \[ 627151, 627085, 690139, 659598, 627127, 627110 ], "properties" {}, "children" null, "devices" null, "rootgroupid" null, "globalusername" null, "globalpassword" null, "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }, { "dbid" 1, "id" "dg sc proxy", "name" "proxy", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 1 ], "deviceids" \[ 1 ], "properties" {}, "children" null, "devices" null, "rootgroupid" null, "globalusername" null, "globalpassword" null, "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }, { "dbid" 620393, "id" "43eb3141 7dcf 47f8 bc68 c21de3d1b45d", "name" "dg test", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[], "deviceids" \[ 634122, 651738, 650372, 640722, 631170 ], "properties" { "globalusername" "root", "globalsecretkey" "nh4dkuvpyrj3exy90aiqww==", "globalpassword" "jc4c4wlxaszsy8j9ldsf7w==" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" "root", "globalpassword" "jc4c4wlxaszsy8j9ldsf7w==", "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }, { "dbid" 300271, "id" "14b59287 eb65 43f6 9b21 be63eed0361f", "name" "ssh 40 135", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 300455 ], "deviceids" \[ 300408 ], "properties" { "globalusername" "root", "globalpassword" "qw0optfbfqhjf/8wnpo6ba==" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" "root", "globalpassword" "qw0optfbfqhjf/8wnpo6ba==", "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }, { "dbid" 304961, "id" "0bd76222 8268 412f 9809 6677e2ade902", "name" "ssh 247", "description" "ssh 247", "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 305024 ], "deviceids" \[ 304994 ], "properties" { "globalusername" "root", "globalpassword" "momvvd4ue6r3xjlj/9mbmq==" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" "root", "globalpassword" "momvvd4ue6r3xjlj/9mbmq==", "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }, { "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 }, { "dbid" 703281, "id" "a8932a7d 15fc 454d 8fc6 71588bbec3c0", "name" "windows", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 703295 ], "deviceids" \[ 300385 ], "properties" { "globalusername" "administrator", "globalpassword" "yiyelvgqr/vp6zsuiwubvg==" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" "administrator", "globalpassword" "yiyelvgqr/vp6zsuiwubvg==", "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false } ]