Get Policy Realms of Policy Groups by Policy Group Name
1 min
code examples curl request get \\ \ url {{url}}/aioc rest web/rest/policy/getpolicyrealmsofpolicygroups/policygroupname \\ \ header 'accept application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("{{url}}/aioc rest web/rest/policy/getpolicyrealmsofpolicygroups/policygroupname", 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/policy/getpolicyrealmsofpolicygroups/policygroupname") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = http request(request) puts response read body import requests import json url = "{{url}}/aioc rest web/rest/policy/getpolicyrealmsofpolicygroups/policygroupname" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses \[ { "dbid" 376291, "id" null, "name" "pr linux", "description" null, "policygroups" \[ { "dbid" 376256, "name" "pg linux", "description" null, "policies" \[ { "dbid" 376251, "usercreate" "admin", "userupdate" null, "creationdate" 1581605373075, "lastupdate" null, "key" " ", "description" null, "userbehaviorrate" null, "type" "white", "devicetypes" \[ "linux" ], "taskname" null, "xmlcontent" null } ], "policykeys" \[ { "dbid" 376251, "usercreate" "admin", "userupdate" null, "creationdate" 1581605373075, "lastupdate" null, "key" " ", "description" null, "userbehaviorrate" null, "type" "white", "devicetypes" \[ "linux" ], "taskname" null, "xmlcontent" null } ], "httppolicies" \[], "maskingpolicies" \[], "timerestrictions" \[], "realms" \[ 376291 ], "sendemail" false, "sendsnmp" false, "action" "generate error", "confirmationtext" null, "operationmode" "operation", "usercreate" "admin", "userupdate" null, "creationdate" 1581605384541, "lastupdate" null } ], "devicerealms" \[ { "dbid" 376284, "id" null, "name" "dr linux", "description" null, "devicegroups" \[ { "dbid" 376275, "id" "8793abe0 9504 4ac3 abc9 069cc23ac777", "name" "dg linux", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 376284 ], "deviceids" \[ 376491 ], "properties" {}, "children" null, "devices" null, "showindevicetree" true, "useasrolegroup" true, "rootgroupid" null, "globalusername" null, "globalpassword" null, "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" \[ "default group sysyem users", "default group sysyem admins" ], "managergroups" \[ "default group sysyem admins" ], "lastlogin" 1581605646117, "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" \[ "default group sysyem users", "default group sysyem admins" ], "managergroups" \[ "default group sysyem admins" ], "lastlogin" 1581605646117, "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" \[ 376284 ], "properties" { "admingroup" "true", "systemgroup" "true" }, "recordlimit4search" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "filtergroupidlist" null, "sftpproxyenabled" false, "sqlproxyenabled" false, "containlocaluser4search" false, "passwordttl" null, "systemgroup" true, "registrationrole" false, "allowdirectaccess" false, "allowconsoleaccess" false, "admingroup" true, "autonomousgroup" false, "approvalrequired" false, "externaldirectorysources" null, "otpenabled" false, "sshproxyenabled" false, "rdpproxyenabled" false, "httpproxyenabled" false } ], "policykeyrealms" \[ 377590, 376291 ] } ], "usercreate" "admin", "userupdate" null, "creationdate" 1581605446650, "lastupdate" null } ]