KRON PAM API Collection v3.5
Device Management
getDeviceRealmByDbId
1 min
code examples curl location globoff '{{url}}/aioc rest web/rest/discovery/getdevicerealmbyid/devicerealmdbid' \\ \ 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/getdevicerealmbyid/devicerealmdbid", 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/getdevicerealmbyid/devicerealmdbid") 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/getdevicerealmbyid/devicerealmdbid" 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" 319362, "id" null, "name" "googlerealmz", "description" null, "devicegroups" \[ { "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, 658428 ], "properties" { "adddevicesshkeytouserselection" "true", "tag key" "10" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" null, "globalpassword" null, "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false } ], "usergroups" \[ { "id" "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "eid" "omerug", "description" null, "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 }, { "id" "eaa44a68 c2f5 4e99 9015 6bcf8a1762f0", "eid" "omer", "personelid" "123", "name" "ömer kaan", "passwordalgorithm" "md5", "password" "202cb962ac59075b964b07152d234b70", "email" "omerkaantillem\@gmail com", "surname" "tillem", "internal" true, "properties" { "phonenumber" "5367970450", "ubathreshold" "50" }, "groups" \[ "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "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" "5367970450", "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" \[ 319362 ], "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 } ], "policykeyrealms" \[] }