Get Device Realm By User Group Name
1 min
GET
{{url}}/aioc-rest-web/rest/discovery/getDeviceRealmByUserGroupName/{{userGroupName}}
Path Parameters
- urlstringDefaulturl
- userGroupNamestringDefaultuserGroupName
Header Parameters
- Content-TypestringDefaultapplication/json
- X-XSRF-TOKENstringDefault{{csrftoken}}
Responses
200
curl
curl --request GET \
--url {{url}}/aioc-rest-web/rest/discovery/getDeviceRealmByUserGroupName/{{userGroupName}} \
--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/getDeviceRealmByUserGroupName/{{userGroupName}}", 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/getDeviceRealmByUserGroupName/{{userGroupName}}")
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/getDeviceRealmByUserGroupName/{{userGroupName}}"
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": 703295,
"id": null,
"name": "DR_testusergroup",
"description": null,
"deviceGroups": [
{
"dbId": 703284,
"id": "d2eb1d13-98d3-444d-afe8-7a7759583a19",
"name": "SSH",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
703295
],
"deviceIds": [
703328
],
"properties": {
"globalUsername": "root",
"globalPassword": "CqauVRmsQAUsvep6dcls6A=="
},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": "root",
"globalPassword": "CqauVRmsQAUsvep6dcls6A==",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
},
{
"dbId": 703281,
"id": "a8932a7d-15fc-454d-8fc6-71588bbec3c0",
"name": "Windows",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
703295
],
"deviceIds": [
300385
],
"properties": {
"globalUsername": "Administrator",
"globalPassword": "YiyelVgqR/VP6zsuIWUBvg=="
},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": "Administrator",
"globalPassword": "YiyelVgqR/VP6zsuIWUBvg==",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
}
],
"userGroups": [
{
"id": "3a6da328-7349-4959-a15e-b4187dcba1c8",
"eid": "UG_testusergroup",
"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": "deda0ba4-1052-430e-a90f-05ef5e0e098b",
"eid": "testuser",
"personelId": null,
"name": "testuser",
"passwordAlgorithm": "MD5",
"password": "202cb962ac59075b964b07152d234b70",
"email": "[email protected]",
"surname": "testuser",
"internal": true,
"properties": {
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"3a6da328-7349-4959-a15e-b4187dcba1c8"
],
"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": "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": [
703295
],
"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": []
}
]