Get Policy Realms of Device Realms by Device Realm Name
1 min
GET
{{url}}/aioc-rest-web/rest/policy/getPolicyRealmsOfDeviceRealms/{{deviceRealmName}}
Path Parameters
- urlstringDefaulturl
- deviceRealmNamestringDefaultdeviceRealmName
Header Parameters
- X-XSRF-TOKENstringDefault{{csrftoken}}
Responses
200
curl
curl --request GET \
--url {{url}}/aioc-rest-web/rest/policy/getPolicyRealmsOfDeviceRealms/{{deviceRealmName}} \
--header 'accept: application/json' \
--header 'x-xsrf-token: {{csrftoken}}'javascript
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/policy/getPolicyRealmsOfDeviceRealms/{{deviceRealmName}}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("{{url}}/aioc-rest-web/rest/policy/getPolicyRealmsOfDeviceRealms/{{deviceRealmName}}")
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
python
import requests
import json
url = "{{url}}/aioc-rest-web/rest/policy/getPolicyRealmsOfDeviceRealms/{{deviceRealmName}}"
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)
200
[
{
"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
},
{
"dbId": 377590,
"id": null,
"name": "PR_second",
"description": null,
"policyGroups": [
{
"dbId": 377585,
"name": "PG_second",
"description": null,
"policies": [
{
"dbId": 377572,
"userCreate": "admin",
"userUpdate": null,
"creationDate": 1581608151289,
"lastUpdate": null,
"key": "date",
"description": null,
"userBehaviorRate": null,
"type": "BLACK",
"deviceTypes": [
"linux"
],
"taskName": null,
"xmlContent": null
},
{
"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": 377572,
"userCreate": "admin",
"userUpdate": null,
"creationDate": 1581608151289,
"lastUpdate": null,
"key": "date",
"description": null,
"userBehaviorRate": null,
"type": "BLACK",
"deviceTypes": [
"linux"
],
"taskName": null,
"xmlContent": null
},
{
"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": [
377590
],
"sendEmail": false,
"sendSnmp": false,
"action": "APPROVAL_VIA_EMAIL",
"confirmationText": null,
"operationMode": "OPERATION",
"userCreate": "admin",
"userUpdate": null,
"creationDate": 1581608173274,
"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": 1581608183305,
"lastUpdate": null
}
]