List All Policy Realm
1 min
GET
{{url}}/aioc-rest-web/rest/policy/getPolicyRealms
Path Parameters
- urlstringDefaulturl
Header Parameters
- x-xsrf-tokenstringDefault{{csrftoken}}
Responses
200
curl
curl --request GET \
--url {{url}}/aioc-rest-web/rest/policy/getPolicyRealms \
--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/getPolicyRealms", 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/getPolicyRealms")
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/getPolicyRealms"
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": 353453,
"id": null,
"name": "SFTP_Realm",
"description": null,
"policyGroups": [
{
"dbId": 377077,
"name": "SAPM device PG",
"description": "SAPM device PG",
"policies": [
{
"dbId": 377065,
"userCreate": {
"id": "abbccd16-b31f-4449-8cc4-131d08cdebca",
"eid": "irem",
"personelId": null,
"name": "iremgul",
"passwordAlgorithm": null,
"password": null,
"secondPassword": null,
"email": "[email protected]",
"surname": "durmus",
"internal": true,
"properties": {
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5",
"DEFAULT_GROUP_SYSYEM_ADMINS"
],
"managerGroups": [
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5"
],
"lastLogin": 1695929572407,
"lastLoginIp": "10.0.8.82",
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"recordLimit4Search": null,
"checkPermission4Search": false,
"passwordDirty": false,
"secondPasswordChange": false,
"passwordAutoGenerated": false,
"filterFunctionName": null,
"filterMembershipUserId": null,
"filterManagerId": null,
"filterEidList": null,
"filterIdList": null,
"filterManagerOfUserId": null,
"passwordSalt": null,
"creationTime": 1695642004340,
"delegations": [],
"firstResult": null,
"maxResult": null,
"locked": false,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"phoneNumber": null,
"adLineManager": null,
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"tempUserEndTime": null
},
"userUpdate": null,
"creationDate": 1695822866268,
"lastUpdate": null,
"key": ".*",
"description": "all",
"userBehaviorRate": null,
"type": "WHITE",
"deviceTypes": [
"linux"
],
"taskName": null,
"xmlContent": null
}
],
"policyKeys": [
{
"dbId": 377065,
"userCreate": {
"id": "abbccd16-b31f-4449-8cc4-131d08cdebca",
"eid": "irem",
"personelId": null,
"name": "iremgul",
"passwordAlgorithm": null,
"password": null,
"secondPassword": null,
"email": "[email protected]",
"surname": "durmus",
"internal": true,
"properties": {
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5",
"DEFAULT_GROUP_SYSYEM_ADMINS"
],
"managerGroups": [
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5"
],
"lastLogin": 1695929572407,
"lastLoginIp": "10.0.8.82",
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"recordLimit4Search": null,
"checkPermission4Search": false,
"passwordDirty": false,
"secondPasswordChange": false,
"passwordAutoGenerated": false,
"filterFunctionName": null,
"filterMembershipUserId": null,
"filterManagerId": null,
"filterEidList": null,
"filterIdList": null,
"filterManagerOfUserId": null,
"passwordSalt": null,
"creationTime": 1695642004340,
"delegations": [],
"firstResult": null,
"maxResult": null,
"locked": false,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"phoneNumber": null,
"adLineManager": null,
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"tempUserEndTime": null
},
"userUpdate": null,
"creationDate": 1695822866268,
"lastUpdate": null,
"key": ".*",
"description": "all",
"userBehaviorRate": null,
"type": "WHITE",
"deviceTypes": [
"linux"
],
"taskName": null,
"xmlContent": null
}
],
"httpPolicies": [],
"maskingPolicies": [],
"timeRestrictions": [],
"rdpProfiles": [],
"agentProfiles": [],
"realms": [
353453,
377081
],
"sendEmail": false,
"sendSnmp": false,
"action": "GENERATE_ERROR",
"confirmationText": null,
"operationMode": "OPERATION",
"userCreate": {
"id": "abbccd16-b31f-4449-8cc4-131d08cdebca",
"eid": "irem",
"personelId": null,
"name": "iremgul",
"passwordAlgorithm": null,
"password": null,
"secondPassword": null,
"email": "[email protected]",
"surname": "durmus",
"internal": true,
"properties": {
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5",
"DEFAULT_GROUP_SYSYEM_ADMINS"
],
"managerGroups": [
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5"
],
"lastLogin": 1695929572407,
"lastLoginIp": "10.0.8.82",
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"recordLimit4Search": null,
"checkPermission4Search": false,
"passwordDirty": false,
"secondPasswordChange": false,
"passwordAutoGenerated": false,
"filterFunctionName": null,
"filterMembershipUserId": null,
"filterManagerId": null,
"filterEidList": null,
"filterIdList": null,
"filterManagerOfUserId": null,
"passwordSalt": null,
"creationTime": 1695642004340,
"delegations": [],
"firstResult": null,
"maxResult": null,
"locked": false,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"phoneNumber": null,
"adLineManager": null,
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"tempUserEndTime": null
},
"userUpdate": null,
"creationDate": 1695822882468,
"lastUpdate": null,
"awforConnection": null,
"awforCommand": null
}
],
"deviceRealms": [
{
"dbId": 353451,
"id": null,
"name": "SFTP_Realm",
"description": "",
"deviceGroups": [
{
"dbId": 353377,
"id": "cd960167-c4e7-42ca-8f79-2bb8438c3cc6",
"name": "SFTP",
"description": "",
"parentGroupId": null,
"parentGroupName": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
392562,
353451
],
"deviceIds": [
353385
],
"properties": {
"addManualLoginToUserSelection": "true",
"reasonRequiredForConnection": "false",
"useEmailAsUsername": "false",
"globalPassword": null,
"addSessionUserToUserSelection": "true",
"discoverySources": "REST",
"addDeviceSshKeyToUserSelection": "false",
"approvalRequiredForConnection": "false",
"useSudoForLinuxAuditReport": "false",
"showInDeviceTree": "true",
"addAssignedCredentialToUserSelection": "true",
"keepTransferredFileInSftpSessions": "true"
},
"children": null,
"devices": null,
"firstResult": null,
"maxResult": null,
"deviceCountInDb": null,
"label": "SFTP",
"fullPath": null,
"showInDeviceTree": true
}
],
"userGroups": [
{
"id": "0482ee83-aec0-4c89-bd42-6d31f4ae8ad5",
"eid": "Test.group",
"description": null,
"realms": [
374949,
377975
],
"deviceRealms": [
339455,
353451
],
"firstResult": null,
"maxResult": null,
"adminGroup": false
}
],
"policyKeyRealms": [
353453
]
}
],
"userCreate": {
"id": "abbccd16-b31f-4449-8cc4-131d08cdebca",
"eid": "irem",
"personelId": null,
"name": "iremgul",
"passwordAlgorithm": null,
"password": null,
"secondPassword": null,
"email": "[email protected]",
"surname": "durmus",
"internal": true,
"properties": {
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5",
"DEFAULT_GROUP_SYSYEM_ADMINS"
],
"managerGroups": [
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5"
],
"lastLogin": 1695929572407,
"lastLoginIp": "10.0.8.82",
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"recordLimit4Search": null,
"checkPermission4Search": false,
"passwordDirty": false,
"secondPasswordChange": false,
"passwordAutoGenerated": false,
"filterFunctionName": null,
"filterMembershipUserId": null,
"filterManagerId": null,
"filterEidList": null,
"filterIdList": null,
"filterManagerOfUserId": null,
"passwordSalt": null,
"creationTime": 1695642004340,
"delegations": [],
"firstResult": null,
"maxResult": null,
"locked": false,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"phoneNumber": null,
"adLineManager": null,
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"tempUserEndTime": null
},
"userUpdate": {
"id": "abbccd16-b31f-4449-8cc4-131d08cdebca",
"eid": "irem",
"personelId": null,
"name": "iremgul",
"passwordAlgorithm": null,
"password": null,
"secondPassword": null,
"email": "[email protected]",
"surname": "durmus",
"internal": true,
"properties": {
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5",
"DEFAULT_GROUP_SYSYEM_ADMINS"
],
"managerGroups": [
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5"
],
"lastLogin": 1695929572407,
"lastLoginIp": "10.0.8.82",
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"recordLimit4Search": null,
"checkPermission4Search": false,
"passwordDirty": false,
"secondPasswordChange": false,
"passwordAutoGenerated": false,
"filterFunctionName": null,
"filterMembershipUserId": null,
"filterManagerId": null,
"filterEidList": null,
"filterIdList": null,
"filterManagerOfUserId": null,
"passwordSalt": null,
"creationTime": 1695642004340,
"delegations": [],
"firstResult": null,
"maxResult": null,
"locked": false,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"phoneNumber": null,
"adLineManager": null,
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"tempUserEndTime": null
},
"creationDate": 1695718452664,
"lastUpdate": 1695822896984
},
{
"dbId": 377081,
"id": null,
"name": "SAPM device PG",
"description": null,
"policyGroups": [
{
"dbId": 377077,
"name": "SAPM device PG",
"description": "SAPM device PG",
"policies": [
{
"dbId": 377065,
"userCreate": {
"id": "abbccd16-b31f-4449-8cc4-131d08cdebca",
"eid": "irem",
"personelId": null,
"name": "iremgul",
"passwordAlgorithm": null,
"password": null,
"secondPassword": null,
"email": "[email protected]",
"surname": "durmus",
"internal": true,
"properties": {
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5",
"DEFAULT_GROUP_SYSYEM_ADMINS"
],
"managerGroups": [
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5"
],
"lastLogin": 1695929572407,
"lastLoginIp": "10.0.8.82",
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"recordLimit4Search": null,
"checkPermission4Search": false,
"passwordDirty": false,
"secondPasswordChange": false,
"passwordAutoGenerated": false,
"filterFunctionName": null,
"filterMembershipUserId": null,
"filterManagerId": null,
"filterEidList": null,
"filterIdList": null,
"filterManagerOfUserId": null,
"passwordSalt": null,
"creationTime": 1695642004340,
"delegations": [],
"firstResult": null,
"maxResult": null,
"locked": false,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"phoneNumber": null,
"adLineManager": null,
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"tempUserEndTime": null
},
"userUpdate": null,
"creationDate": 1695822866268,
"lastUpdate": null,
"key": ".*",
"description": "all",
"userBehaviorRate": null,
"type": "WHITE",
"deviceTypes": [
"linux"
],
"taskName": null,
"xmlContent": null
}
],
"policyKeys": [
{
"dbId": 377065,
"userCreate": {
"id": "abbccd16-b31f-4449-8cc4-131d08cdebca",
"eid": "irem",
"personelId": null,
"name": "iremgul",
"passwordAlgorithm": null,
"password": null,
"secondPassword": null,
"email": "[email protected]",
"surname": "durmus",
"internal": true,
"properties": {
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5",
"DEFAULT_GROUP_SYSYEM_ADMINS"
],
"managerGroups": [
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5"
],
"lastLogin": 1695929572407,
"lastLoginIp": "10.0.8.82",
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"recordLimit4Search": null,
"checkPermission4Search": false,
"passwordDirty": false,
"secondPasswordChange": false,
"passwordAutoGenerated": false,
"filterFunctionName": null,
"filterMembershipUserId": null,
"filterManagerId": null,
"filterEidList": null,
"filterIdList": null,
"filterManagerOfUserId": null,
"passwordSalt": null,
"creationTime": 1695642004340,
"delegations": [],
"firstResult": null,
"maxResult": null,
"locked": false,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"phoneNumber": null,
"adLineManager": null,
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"tempUserEndTime": null
},
"userUpdate": null,
"creationDate": 1695822866268,
"lastUpdate": null,
"key": ".*",
"description": "all",
"userBehaviorRate": null,
"type": "WHITE",
"deviceTypes": [
"linux"
],
"taskName": null,
"xmlContent": null
}
],
"httpPolicies": [],
"maskingPolicies": [],
"timeRestrictions": [],
"rdpProfiles": [],
"agentProfiles": [],
"realms": [
353453,
377081
],
"sendEmail": false,
"sendSnmp": false,
"action": "GENERATE_ERROR",
"confirmationText": null,
"operationMode": "OPERATION",
"userCreate": {
"id": "abbccd16-b31f-4449-8cc4-131d08cdebca",
"eid": "irem",
"personelId": null,
"name": "iremgul",
"passwordAlgorithm": null,
"password": null,
"secondPassword": null,
"email": "[email protected]",
"surname": "durmus",
"internal": true,
"properties": {
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5",
"DEFAULT_GROUP_SYSYEM_ADMINS"
],
"managerGroups": [
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5"
],
"lastLogin": 1695929572407,
"lastLoginIp": "10.0.8.82",
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"recordLimit4Search": null,
"checkPermission4Search": false,
"passwordDirty": false,
"secondPasswordChange": false,
"passwordAutoGenerated": false,
"filterFunctionName": null,
"filterMembershipUserId": null,
"filterManagerId": null,
"filterEidList": null,
"filterIdList": null,
"filterManagerOfUserId": null,
"passwordSalt": null,
"creationTime": 1695642004340,
"delegations": [],
"firstResult": null,
"maxResult": null,
"locked": false,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"phoneNumber": null,
"adLineManager": null,
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"tempUserEndTime": null
},
"userUpdate": null,
"creationDate": 1695822882468,
"lastUpdate": null,
"awforConnection": null,
"awforCommand": null
}
],
"deviceRealms": [
{
"dbId": 377043,
"id": null,
"name": "SAPM device DR",
"description": "SAPM device",
"deviceGroups": [
{
"dbId": 377038,
"id": "e4442f9a-1144-4196-bb51-2aaee9405330",
"name": "SAPM device",
"description": "SAPM device",
"parentGroupId": null,
"parentGroupName": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
377043,
392562
],
"deviceIds": [
377460
],
"properties": {},
"children": null,
"devices": null,
"firstResult": null,
"maxResult": null,
"deviceCountInDb": null,
"label": "SAPM device",
"fullPath": null,
"showInDeviceTree": true
}
],
"userGroups": [
{
"id": "DEFAULT_GROUP_SYSYEM_ADMINS",
"eid": "System.admins",
"description": "System admin group",
"realms": [],
"deviceRealms": [
377043,
392562
],
"firstResult": null,
"maxResult": null,
"adminGroup": true
}
],
"policyKeyRealms": [
377081
]
}
],
"userCreate": {
"id": "abbccd16-b31f-4449-8cc4-131d08cdebca",
"eid": "irem",
"personelId": null,
"name": "iremgul",
"passwordAlgorithm": null,
"password": null,
"secondPassword": null,
"email": "[email protected]",
"surname": "durmus",
"internal": true,
"properties": {
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5",
"DEFAULT_GROUP_SYSYEM_ADMINS"
],
"managerGroups": [
"0482ee83-aec0-4c89-bd42-6d31f4ae8ad5"
],
"lastLogin": 1695929572407,
"lastLoginIp": "10.0.8.82",
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"recordLimit4Search": null,
"checkPermission4Search": false,
"passwordDirty": false,
"secondPasswordChange": false,
"passwordAutoGenerated": false,
"filterFunctionName": null,
"filterMembershipUserId": null,
"filterManagerId": null,
"filterEidList": null,
"filterIdList": null,
"filterManagerOfUserId": null,
"passwordSalt": null,
"creationTime": 1695642004340,
"delegations": [],
"firstResult": null,
"maxResult": null,
"locked": false,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"phoneNumber": null,
"adLineManager": null,
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"tempUserEndTime": null
},
"userUpdate": null,
"creationDate": 1695822889506,
"lastUpdate": null
}
]