KRON PAM API Collection v3.7.0
Device Management
List Device Realm By Device Group Id
1 min
code examples curl location globoff '{{url}}/aioc rest web/rest/discovery/getdevicerealmbydevicegroupid/devicegroupid' \\ \ 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/getdevicerealmbydevicegroupid/devicegroupid", 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/getdevicerealmbydevicegroupid/devicegroupid") 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/getdevicerealmbydevicegroupid/devicegroupid" 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" 305024, "id" null, "name" "ssh 247 realm", "description" null, "devicegroups" \[ { "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 } ], "usergroups" \[ { "id" "default group sysyem admins", "eid" "system admins", "description" "default system admin group", "users" \[ { "id" "25e53f47 ce66 4df2 9abc 6961dc668264", "eid" "admin", "personelid" null, "name" "administrator", "passwordalgorithm" null, "password" "21232f297a57a5a743894a0e4a801fc3", "email" null, "surname" "administrator", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7", "default group sysyem admins", "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "default group sysyem users", "3a6da328 7349 4959 a15e b4187dcba1c8" ], "managergroups" \[ "default group sysyem admins", "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "3a6da328 7349 4959 a15e b4187dcba1c8" ], "lastlogin" 1578313463235, "lastloginip" "10 20 50 99", "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false } ], "managers" \[ { "id" "25e53f47 ce66 4df2 9abc 6961dc668264", "eid" "admin", "personelid" null, "name" "administrator", "passwordalgorithm" null, "password" "21232f297a57a5a743894a0e4a801fc3", "email" null, "surname" "administrator", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7", "default group sysyem admins", "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "default group sysyem users", "3a6da328 7349 4959 a15e b4187dcba1c8" ], "managergroups" \[ "default group sysyem admins", "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "3a6da328 7349 4959 a15e b4187dcba1c8" ], "lastlogin" 1578313463235, "lastloginip" "10 20 50 99", "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false } ], "realms" \[], "devicerealms" \[ 305024, 300455 ], "properties" { "admingroup" "true", "systemgroup" "true" }, "recordlimit4search" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "filtergroupidlist" null, "passwordttl" null, "systemgroup" true, "registrationrole" false, "admingroup" true, "autonomousgroup" false, "approvalrequired" false, "externaldirectorysources" null, "otpenabled" false, "sshproxyenabled" false, "rdpproxyenabled" false, "httpproxyenabled" false, "sftpproxyenabled" false, "sqlproxyenabled" false, "containlocaluser4search" false, "allowdirectaccess" false, "allowconsoleaccess" false }, { "id" "829f4d39 54f9 4a76 bf5c 26531cedbca7", "eid" "cemtestusers", "description" null, "users" \[ { "id" "18d7e6bb 186f 4ddb 8a3e a2921ba26f1e", "eid" "sfdasdf\@ !", "personelid" null, "name" "r", "passwordalgorithm" "md5", "password" "827ccb0eea8a706c4c34a16891f84e7b", "email" "xxxaaaaaaaaaaarr\@f com", "surname" "r", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7", "c6fa7732 3984 4cf6 bfd4 afbbd2299902", "218c893b 8257 4bd8 ab02 7189ff98d9cb", "default group sysyem users" ], "managergroups" \[], "lastlogin" null, "lastloginip" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false }, { "id" "fbcb11d7 b98d 49df a3ba bdc93209ab06", "eid" "cemtest3", "personelid" null, "name" "cem", "passwordalgorithm" "md5", "password" "827ccb0eea8a706c4c34a16891f84e7b", "email" "ffff\@l com", "surname" "ari", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7", "default group sysyem users" ], "managergroups" \[], "lastlogin" null, "lastloginip" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false }, { "id" "96389a67 2b9c 45c6 81e9 f8466b7eb86b", "eid" "cemtest1", "personelid" null, "name" "cem", "passwordalgorithm" "md5", "password" "827ccb0eea8a706c4c34a16891f84e7b", "email" "cem ari\@krontech com", "surname" "ari", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7", "default group sysyem users" ], "managergroups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7" ], "lastlogin" null, "lastloginip" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false }, { "id" "62be439b ff19 4e70 80e3 449358aaf7da", "eid" "cemtest2", "personelid" null, "name" "cem", "passwordalgorithm" "md5", "password" "827ccb0eea8a706c4c34a16891f84e7b", "email" "ff\@l com", "surname" "ari", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7", "default group sysyem users" ], "managergroups" \[], "lastlogin" null, "lastloginip" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false }, { "id" "25e53f47 ce66 4df2 9abc 6961dc668264", "eid" "admin", "personelid" null, "name" "administrator", "passwordalgorithm" null, "password" "21232f297a57a5a743894a0e4a801fc3", "email" null, "surname" "administrator", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7", "default group sysyem admins", "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "default group sysyem users", "3a6da328 7349 4959 a15e b4187dcba1c8" ], "managergroups" \[ "default group sysyem admins", "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "3a6da328 7349 4959 a15e b4187dcba1c8" ], "lastlogin" 1578313463235, "lastloginip" "10 20 50 99", "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false } ], "managers" \[ { "id" "96389a67 2b9c 45c6 81e9 f8466b7eb86b", "eid" "cemtest1", "personelid" null, "name" "cem", "passwordalgorithm" "md5", "password" "827ccb0eea8a706c4c34a16891f84e7b", "email" "cem ari\@krontech com", "surname" "ari", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7", "default group sysyem users" ], "managergroups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7" ], "lastlogin" null, "lastloginip" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false } ], "realms" \[ 300547 ], "devicerealms" \[ 305024, 300455, 300464 ], "properties" { "approvalrequiredforconnection" "false", "allowconsoleaccess" "false", "admingroup" "false", "autonomousgroup" "false", "allowdirectaccess" "false" }, "recordlimit4search" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "filtergroupidlist" null, "passwordttl" null, "systemgroup" false, "registrationrole" false, "admingroup" false, "autonomousgroup" false, "approvalrequired" false, "externaldirectorysources" null, "otpenabled" false, "sshproxyenabled" false, "rdpproxyenabled" false, "httpproxyenabled" false, "sftpproxyenabled" false, "sqlproxyenabled" false, "containlocaluser4search" false, "allowdirectaccess" false, "allowconsoleaccess" false }, { "id" "c6fa7732 3984 4cf6 bfd4 afbbd2299902", "eid" "onlytestusers", "description" null, "users" \[ { "id" "50fa0f28 0d89 4360 8048 43616a3561b0", "eid" "testuser2", "personelid" null, "name" "test2", "passwordalgorithm" "md5", "password" "827ccb0eea8a706c4c34a16891f84e7b", "email" "hhff\@l com", "surname" "u", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "c6fa7732 3984 4cf6 bfd4 afbbd2299902", "default group sysyem users" ], "managergroups" \[], "lastlogin" null, "lastloginip" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false }, { "id" "18d7e6bb 186f 4ddb 8a3e a2921ba26f1e", "eid" "sfdasdf\@ !", "personelid" null, "name" "r", "passwordalgorithm" "md5", "password" "827ccb0eea8a706c4c34a16891f84e7b", "email" "xxxaaaaaaaaaaarr\@f com", "surname" "r", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7", "c6fa7732 3984 4cf6 bfd4 afbbd2299902", "218c893b 8257 4bd8 ab02 7189ff98d9cb", "default group sysyem users" ], "managergroups" \[], "lastlogin" null, "lastloginip" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false }, { "id" "59b6d24e 0867 4089 8f68 b1d1e18871eb", "eid" "testuser1", "personelid" null, "name" "test1", "passwordalgorithm" "md5", "password" "827ccb0eea8a706c4c34a16891f84e7b", "email" "sss\@d com", "surname" "u", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "c6fa7732 3984 4cf6 bfd4 afbbd2299902", "default group sysyem users" ], "managergroups" \[ "c6fa7732 3984 4cf6 bfd4 afbbd2299902" ], "lastlogin" null, "lastloginip" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false }, { "id" "edc2e491 28c7 496e 990c bd6c99aabbd4", "eid" "testuser3", "personelid" null, "name" "test3", "passwordalgorithm" "md5", "password" "827ccb0eea8a706c4c34a16891f84e7b", "email" "frrrrrrrrf\@l com", "surname" "r", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "c6fa7732 3984 4cf6 bfd4 afbbd2299902", "default group sysyem users" ], "managergroups" \[], "lastlogin" null, "lastloginip" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false } ], "managers" \[ { "id" "59b6d24e 0867 4089 8f68 b1d1e18871eb", "eid" "testuser1", "personelid" null, "name" "test1", "passwordalgorithm" "md5", "password" "827ccb0eea8a706c4c34a16891f84e7b", "email" "sss\@d com", "surname" "u", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "c6fa7732 3984 4cf6 bfd4 afbbd2299902", "default group sysyem users" ], "managergroups" \[ "c6fa7732 3984 4cf6 bfd4 afbbd2299902" ], "lastlogin" null, "lastloginip" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false } ], "realms" \[ 300547 ], "devicerealms" \[ 305024, 300455, 300464 ], "properties" { "approvalrequiredforconnection" "false", "allowconsoleaccess" "false", "autonomousgroup" "false", "admingroup" "false", "allowdirectaccess" "false" }, "recordlimit4search" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "filtergroupidlist" null, "passwordttl" null, "systemgroup" false, "registrationrole" false, "admingroup" false, "autonomousgroup" false, "approvalrequired" false, "externaldirectorysources" null, "otpenabled" false, "sshproxyenabled" false, "rdpproxyenabled" false, "httpproxyenabled" false, "sftpproxyenabled" false, "sqlproxyenabled" false, "containlocaluser4search" false, "allowdirectaccess" false, "allowconsoleaccess" false } ], "policykeyrealms" \[ 818335, 300528 ] } ]