getDeviceRealmByDeviceGroupId
1 min
GET
{{url}}/aioc-rest-web/rest/discovery/getDeviceRealmByDeviceGroupId/DEVICEGROUPID
Path Parameters
- urlstringDefaulturl
Header Parameters
- X-XSRF-TOKENstringDefault{{csrftoken}}
Responses
200
curl
curl --request GET \
--url {{url}}/aioc-rest-web/rest/discovery/getDeviceRealmByDeviceGroupId/DEVICEGROUPID \
--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/discovery/getDeviceRealmByDeviceGroupId/DEVICEGROUPID", 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/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
python
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)
200
[
{
"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": "[email protected]",
"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": "[email protected]",
"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": "[email protected]",
"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": "[email protected]",
"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": "[email protected]",
"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": "[email protected]",
"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": "[email protected]",
"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": "[email protected]",
"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": "[email protected]",
"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": "[email protected]",
"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
]
}
]