List Device Groups By Parent Group Id
1 min
GET
{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupsByParentId/{{parentGroupId}}
Path Parameters
- urlstringDefaulturl
- parentGroupIdstringDefaultparentGroupId
Header Parameters
- X-XSRF-TOKENstringDefault{{csrftoken}}
Responses
200
curl
curl --request GET \
--url {{url}}/aioc-rest-web/rest/discovery/getDeviceGroupsByParentId/{{parentGroupId}} \
--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/getDeviceGroupsByParentId/{{parentGroupId}}", 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/getDeviceGroupsByParentId/{{parentGroupId}}")
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/getDeviceGroupsByParentId/{{parentGroupId}}"
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": 663099,
"id": "bf180f4d-d592-4c76-8d77-0ebb3ad1cc36",
"name": "HTTP DG",
"description": "İTÜ",
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
300455
],
"deviceIds": [
663150
],
"properties": {},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": null,
"globalPassword": null,
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
},
{
"dbId": 318983,
"id": "4035b85e-392c-457e-a52b-3b0a5d6fa86b",
"name": "GCP DG",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
319362
],
"deviceIds": [
625461,
625460,
625463,
625462,
625457
],
"properties": {
"addDeviceSshKeyToUserSelection": "true",
"tag.key": "10"
},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": null,
"globalPassword": null,
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
},
{
"dbId": 300289,
"id": "9f88ffca-f571-4dbf-bfc9-72f0495ee652",
"name": "RDP",
"description": "41.55",
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
300464
],
"deviceIds": [
300385
],
"properties": {
"globalUsername": "[email protected]",
"addManualLoginToUserSelection": "true",
"globalPassword": "YiyelVgqR/VP6zsuIWUBvg=="
},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": "[email protected]",
"globalPassword": "YiyelVgqR/VP6zsuIWUBvg==",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
},
{
"dbId": 790536,
"id": "1c2b4ba5-4ec9-4920-ac67-2de4229b2b72",
"name": "TESTDG_TestAPI",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [],
"deviceIds": [],
"properties": {
"discoverySources": "REST"
},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": null,
"globalPassword": null,
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": "REST",
"readOnly": false
},
{
"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": 300318,
"id": "c859907e-ee9d-4854-9ee5-930d49396c34",
"name": "Cisco Router",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [],
"deviceIds": [
300434
],
"properties": {
"globalUsername": "pta",
"globalSecretKey": "D2VMutEfW4Oobd6fJdXUbw==",
"globalPassword": "C6yRBP3qxtZXhRsABodCnw=="
},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": "pta",
"globalPassword": "C6yRBP3qxtZXhRsABodCnw==",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
},
{
"dbId": 627062,
"id": "e97cb71b-9fe4-45bf-b14e-7eab40ce5f3b",
"name": "SQL",
"description": "SQL",
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [],
"deviceIds": [
627151,
627085,
690139,
659598,
627127,
627110
],
"properties": {},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": null,
"globalPassword": null,
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
},
{
"dbId": 1,
"id": "dg.sc_proxy",
"name": "Proxy",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
1
],
"deviceIds": [
1
],
"properties": {},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": null,
"globalPassword": null,
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
},
{
"dbId": 620393,
"id": "43eb3141-7dcf-47f8-bc68-c21de3d1b45d",
"name": "DG_test",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [],
"deviceIds": [
634122,
651738,
650372,
640722,
631170
],
"properties": {
"globalUsername": "root",
"globalSecretKey": "NH4dKuvpyrj3EXY90AIQww==",
"globalPassword": "jC4C4WLXaSzSy8j9ldsf7w=="
},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": "root",
"globalPassword": "jC4C4WLXaSzSy8j9ldsf7w==",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
},
{
"dbId": 300271,
"id": "14b59287-eb65-43f6-9b21-be63eed0361f",
"name": "ssh-40.135",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
300455
],
"deviceIds": [
300408
],
"properties": {
"globalUsername": "root",
"globalPassword": "qw0OptfbFQhJf/8WNpo6BA=="
},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": "root",
"globalPassword": "qw0OptfbFQhJf/8WNpo6BA==",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
},
{
"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
},
{
"dbId": 826831,
"id": "c85a9949-4ab4-459e-972b-2475385ee2a5",
"name": "testDG_child",
"description": null,
"parentGroupId": "1c2b4ba5-4ec9-4920-ac67-2de4229b2b72",
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [],
"deviceIds": [],
"properties": {},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": null,
"globalPassword": null,
"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
}
]