Get Device Realms of Session User
1 min
GET
{{url}}/aioc-rest-web/rest/discovery/getDeviceRealmsOfSessionUser
Path Parameters
- urlstringDefaulturl
Header Parameters
- x-xsrf-tokenstringDefault{{csrftoken}}
Responses
200
curl
curl --request GET \
--url {{url}}/aioc-rest-web/rest/discovery/getDeviceRealmsOfSessionUser \
--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/getDeviceRealmsOfSessionUser", 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/getDeviceRealmsOfSessionUser")
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/getDeviceRealmsOfSessionUser"
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": -1,
"id": null,
"name": "dr.proxy",
"description": null,
"deviceGroups": [
{
"dbId": -1,
"id": "dg.sc_proxy",
"name": "Proxy",
"description": null,
"parentGroupId": null,
"parentGroupName": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
-1
],
"deviceIds": [
-1
],
"properties": {},
"children": null,
"devices": null,
"firstResult": null,
"maxResult": null,
"deviceCountInDb": null,
"label": "Proxy",
"fullPath": null,
"showInDeviceTree": true
}
],
"userGroups": [
{
"id": "DEFAULT_GROUP_SYSYEM_USERS",
"eid": "System.users",
"description": "Default user group",
"users": [],
"managers": [],
"realms": [],
"deviceRealms": [
-1
],
"properties": {
"allowDirectAccess": "true",
"systemGroup": "true"
},
"recordLimit4Search": null,
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"filterGroupIdList": null,
"advancedSearchInput": null,
"firstResult": null,
"maxResult": null,
"passwordTtl": null,
"systemGroup": true,
"registrationRole": false,
"allowDirectAccess": true,
"allowConsoleAccess": false,
"adminGroup": false,
"autonomousGroup": false,
"externalDirectorySources": null,
"otpEnabled": false,
"sshProxyEnabled": false,
"accessOverContainer": false,
"rdpProxyEnabled": false,
"httpProxyEnabled": false,
"sftpProxyEnabled": false,
"sqlProxyEnabled": false,
"rapenabled": false,
"approvalRequired": false,
"containLocalUser4Search": false,
"objectGUID": null
}
],
"policyKeyRealms": []
},
{
"dbId": 339455,
"id": null,
"name": "RDP_Test-Realm",
"description": null,
"deviceGroups": [
{
"dbId": 339446,
"id": "b5f1b907-09f3-46d5-97ce-969131690425",
"name": "RDP",
"description": null,
"parentGroupId": null,
"parentGroupName": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
339455
],
"deviceIds": [
339503
],
"properties": {
"discoverySources": "REST",
"globalUsername": "onurk"
},
"children": null,
"devices": null,
"firstResult": null,
"maxResult": null,
"deviceCountInDb": null,
"label": "RDP",
"fullPath": null,
"showInDeviceTree": true
},
{
"dbId": 358436,
"id": "a20ab3e0-d02b-4e3b-a867-f0c2ed4ea8c3",
"name": "RDP-201",
"description": null,
"parentGroupId": null,
"parentGroupName": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
339455
],
"deviceIds": [
358455
],
"properties": {
"addAssignedCredentialToUserSelection": "true"
},
"children": null,
"devices": null,
"firstResult": null,
"maxResult": null,
"deviceCountInDb": null,
"label": "RDP-201",
"fullPath": null,
"showInDeviceTree": true
}
],
"userGroups": [
{
"id": "0482ee83-aec0-4c89-bd42-6d31f4ae8ad5",
"eid": "Test.group",
"description": null,
"users": [],
"managers": [],
"realms": [
374949,
377975
],
"deviceRealms": [
339455,
353451
],
"properties": {
"adminGroup": "false",
"autonomousGroup": "false",
"allowConsoleAccess": "false",
"allowDirectAccess": "false",
"approvalRequiredForConnection": "false"
},
"recordLimit4Search": null,
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"filterGroupIdList": null,
"advancedSearchInput": null,
"firstResult": null,
"maxResult": null,
"passwordTtl": null,
"systemGroup": false,
"registrationRole": false,
"allowDirectAccess": false,
"allowConsoleAccess": false,
"adminGroup": false,
"autonomousGroup": false,
"externalDirectorySources": null,
"otpEnabled": false,
"sshProxyEnabled": false,
"accessOverContainer": false,
"rdpProxyEnabled": false,
"httpProxyEnabled": false,
"sftpProxyEnabled": false,
"sqlProxyEnabled": false,
"rapenabled": false,
"approvalRequired": false,
"containLocalUser4Search": false,
"objectGUID": null
}
],
"policyKeyRealms": []
},
{
"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",
"users": [],
"managers": [],
"realms": [],
"deviceRealms": [
377043,
392562
],
"properties": {
"adminGroup": "true",
"autonomousGroup": "false",
"allowConsoleAccess": "false",
"allowDirectAccess": "false",
"approvalRequiredForConnection": "false",
"systemGroup": "true"
},
"recordLimit4Search": null,
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"filterGroupIdList": null,
"advancedSearchInput": null,
"firstResult": null,
"maxResult": null,
"passwordTtl": null,
"systemGroup": true,
"registrationRole": false,
"allowDirectAccess": false,
"allowConsoleAccess": false,
"adminGroup": true,
"autonomousGroup": false,
"externalDirectorySources": null,
"otpEnabled": false,
"sshProxyEnabled": false,
"accessOverContainer": false,
"rdpProxyEnabled": false,
"httpProxyEnabled": false,
"sftpProxyEnabled": false,
"sqlProxyEnabled": false,
"rapenabled": false,
"approvalRequired": false,
"containLocalUser4Search": false,
"objectGUID": null
}
],
"policyKeyRealms": [
377081
]
},
{
"dbId": 392562,
"id": null,
"name": "sapm dr deneme",
"description": "Furkan Call",
"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
},
{
"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",
"users": [],
"managers": [],
"realms": [],
"deviceRealms": [
377043,
392562
],
"properties": {
"adminGroup": "true",
"autonomousGroup": "false",
"allowConsoleAccess": "false",
"allowDirectAccess": "false",
"approvalRequiredForConnection": "false",
"systemGroup": "true"
},
"recordLimit4Search": null,
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"filterGroupIdList": null,
"advancedSearchInput": null,
"firstResult": null,
"maxResult": null,
"passwordTtl": null,
"systemGroup": true,
"registrationRole": false,
"allowDirectAccess": false,
"allowConsoleAccess": false,
"adminGroup": true,
"autonomousGroup": false,
"externalDirectorySources": null,
"otpEnabled": false,
"sshProxyEnabled": false,
"accessOverContainer": false,
"rdpProxyEnabled": false,
"httpProxyEnabled": false,
"sftpProxyEnabled": false,
"sqlProxyEnabled": false,
"rapenabled": false,
"approvalRequired": false,
"containLocalUser4Search": false,
"objectGUID": null
},
{
"id": "618ca31b-13e7-484c-8bea-9a00a28a8ca7",
"eid": "test UG",
"description": null,
"users": [],
"managers": [],
"realms": [
389927
],
"deviceRealms": [
392562
],
"properties": {
"adminGroup": "false",
"autonomousGroup": "false",
"allowConsoleAccess": "false",
"allowDirectAccess": "false",
"approvalRequiredForConnection": "false"
},
"recordLimit4Search": null,
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"filterGroupIdList": null,
"advancedSearchInput": null,
"firstResult": null,
"maxResult": null,
"passwordTtl": null,
"systemGroup": false,
"registrationRole": false,
"allowDirectAccess": false,
"allowConsoleAccess": false,
"adminGroup": false,
"autonomousGroup": false,
"externalDirectorySources": null,
"otpEnabled": false,
"sshProxyEnabled": false,
"accessOverContainer": false,
"rdpProxyEnabled": false,
"httpProxyEnabled": false,
"sftpProxyEnabled": false,
"sqlProxyEnabled": false,
"rapenabled": false,
"approvalRequired": false,
"containLocalUser4Search": false,
"objectGUID": null
}
],
"policyKeyRealms": []
},
{
"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,
"users": [],
"managers": [],
"realms": [
374949,
377975
],
"deviceRealms": [
339455,
353451
],
"properties": {
"adminGroup": "false",
"autonomousGroup": "false",
"allowConsoleAccess": "false",
"allowDirectAccess": "false",
"approvalRequiredForConnection": "false"
},
"recordLimit4Search": null,
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"filterGroupIdList": null,
"advancedSearchInput": null,
"firstResult": null,
"maxResult": null,
"passwordTtl": null,
"systemGroup": false,
"registrationRole": false,
"allowDirectAccess": false,
"allowConsoleAccess": false,
"adminGroup": false,
"autonomousGroup": false,
"externalDirectorySources": null,
"otpEnabled": false,
"sshProxyEnabled": false,
"accessOverContainer": false,
"rdpProxyEnabled": false,
"httpProxyEnabled": false,
"sftpProxyEnabled": false,
"sqlProxyEnabled": false,
"rapenabled": false,
"approvalRequired": false,
"containLocalUser4Search": false,
"objectGUID": null
}
],
"policyKeyRealms": [
353453
]
}
]