Device Management
16 min
getDeviceGroupsOfSessionUser
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupsOfSessionUser
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupsOfSessionUser");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AlwaysMultipartFormData = true;
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupsOfSessionUser' \
--header 'Content-Type: application/json'javascript
var form = new FormData();
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupsOfSessionUser",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"dbId": 1249805,
"id": "50221537-4b54-4521-975b-697ac9f6896b",
"name": "TestDeviceGroup",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
971500
],
"deviceIds": [],
"properties": {
"globalPassword": "LU9/IpSSkZvV6eOPKgcDbg==",
"globalUsername": "root",
"useAsRoleGroup": "true",
"addAssignedCredentialToUserSelection": "true"
},
"children": null,
"devices": null,
"text": "TestDeviceGroup",
"opened": false,
"selected": false,
"icon": "",
"parentGroupName": null,
"deviceType": null,
"summaryStatus": null,
"ledIcon": null,
"rootGroupId": null,
"globalUsername": "root",
"globalPassword": "LU9/IpSSkZvV6eOPKgcDbg==",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
}
]getDevicesOfDeviceGroupByDeviceGroupId
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDevicesOfDeviceGroupByDeviceGroupId/DEVICEGROUPID
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDevicesOfDeviceGroupByDeviceGroupId/85223b04-9604-4b37-bbe3-3c1d4d06ad4a");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDevicesOfDeviceGroupByDeviceGroupId/85223b04-9604-4b37-bbe3-3c1d4d06ad4a' \
--header 'Content-Type: application/json' \
--data-raw ''javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDevicesOfDeviceGroupByDeviceGroupId/85223b04-9604-4b37-bbe3-3c1d4d06ad4a",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"dbId": 2511587,
"id": "186ef4bc-7c57-4261-8746-a91ea3f6dbbe",
"name": "10.xx.xx.xx",
"accessProtocol": "SSHv2",
"managementIp": "10.xx.xx.xx",
"elementType": {
"dbId": -1256593,
"elementTypeId": "linux",
"elementTypeName": "Linux Server",
"vendor": null,
"category": null,
"elementTypeProperties": [
{
"dbId": -328321729,
"elementTypePropertyValue": "^Enter the date.*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": -328317181,
"elementTypePropertyValue": "^Are you sure.*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": -224107346,
"elementTypePropertyValue": "do_nothing",
"elementTypePropertyKey": "enforcer.terminal.behaviour.ctrl_z",
"elementTypePropertyType": null
},
{
"dbId": -328315408,
"elementTypePropertyValue": "^Quit.*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": -224107345,
"elementTypePropertyValue": "abort",
"elementTypePropertyKey": "enforcer.terminal.behaviour.ctrl_c",
"elementTypePropertyType": null
},
{
"dbId": -355141703,
"elementTypePropertyValue": "^Select choice.*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": 3530178,
"elementTypePropertyValue": "NL",
"elementTypePropertyKey": "shell.terminal.output.new_line_char",
"elementTypePropertyType": null
},
{
"dbId": -328318769,
"elementTypePropertyValue": ".*(?i)password[:|>].*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": -224107347,
"elementTypePropertyValue": ".*?(>|\\$|#|%)",
"elementTypePropertyKey": "enforcer.terminal.behaviour.prompt_pattern",
"elementTypePropertyType": null
}
]
},
"discoveryTime": 1614770608335,
"properties": {
"pseudoDevice": "true"
},
"deviceGroups": [
"85223b04-9604-4b37-bbe3-3c1d4d06ad4a",
"ddf11064-b96e-4861-913b-d5841214fa4d"
],
"availability": null,
"currentMaintenanceWindow": null,
"interfaceName": null,
"nameManagementIp": "10.xx.xx.xx-10.xx.xx.xx",
"regionName": null,
"filterRecordLimit": null,
"filterSearchPhrase": null,
"filterGroupId": null,
"filterRoleGroupIds": null,
"filterOnlyUnassignedDevices": null,
"deviceGroupNames": null,
"portNum": null,
"pseudoDevice": true,
"domainController": null,
"discoverySource": null
}
]getDeviceGroupByDbidWithDevices
GET
http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithDevices/DgDbID
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithDevices/1017889");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithDevices/1017889' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithDevices/1017889",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 1017889,
"id": "912ab0fc-b7e8-4549-a17a-ce475e39574c",
"name": "test",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [],
"deviceIds": [
968929
],
"properties": {},
"children": [],
"devices": [
{
"dbId": 968929,
"id": "9d9f7562-5297-4b6e-b417-1976af2a75ee",
"name": "10.20.30.130",
"accessProtocol": "SSHv2",
"managementIp": "10.xx.xx.xx",
"elementType": {
"dbId": -1256593,
"elementTypeId": "linux",
"elementTypeName": "Linux Server",
"vendor": null,
"category": null,
"elementTypeProperties": [
{
"dbId": -224107346,
"elementTypePropertyValue": "do_nothing",
"elementTypePropertyKey": "enforcer.terminal.behaviour.ctrl_z",
"elementTypePropertyType": null
},
{
"dbId": -328321729,
"elementTypePropertyValue": "^Enter the date.*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": -328318769,
"elementTypePropertyValue": ".*(?i)password[:|>].*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": -224107347,
"elementTypePropertyValue": ".*?(>|\\$|#|%)",
"elementTypePropertyKey": "enforcer.terminal.behaviour.prompt_pattern",
"elementTypePropertyType": null
},
{
"dbId": -328315408,
"elementTypePropertyValue": "^Quit.*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": -224107345,
"elementTypePropertyValue": "abort",
"elementTypePropertyKey": "enforcer.terminal.behaviour.ctrl_c",
"elementTypePropertyType": null
},
{
"dbId": 3530178,
"elementTypePropertyValue": "NL",
"elementTypePropertyKey": "shell.terminal.output.new_line_char",
"elementTypePropertyType": null
},
{
"dbId": -328317181,
"elementTypePropertyValue": "^Are you sure.*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": -355141703,
"elementTypePropertyValue": "^Select choice.*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
}
]
},
"discoveryTime": 1608737658996,
"properties": {
"pseudoDevice": "true"
},
"deviceGroups": [
"912ab0fc-b7e8-4549-a17a-ce475e39574c"
],
"availability": null,
"currentMaintenanceWindow": null,
"interfaceName": null,
"nameManagementIp": "10.xx.xx.xx-10.xx.xx.xx",
"regionName": null,
"filterRecordLimit": null,
"filterSearchPhrase": null,
"filterGroupId": null,
"filterRoleGroupIds": null,
"filterOnlyUnassignedDevices": null,
"deviceGroupNames": null,
"portNum": null,
"pseudoDevice": true,
"domainController": null,
"discoverySource": null
}
],
"text": "test",
"opened": false,
"selected": false,
"icon": "",
"parentGroupName": null,
"deviceType": null,
"summaryStatus": null,
"ledIcon": null,
"rootGroupId": null,
"globalUsername": null,
"globalPassword": null,
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
}getDeviceGroupByDbidWithoutDevices
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithoutDevices/DgDbID
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithoutDevices/107395");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithoutDevices/107395' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithoutDevices/107395",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 107395,
"id": "8851fead-2b5e-4769-b847-fc8a898999a0",
"name": "SSH",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
107888
],
"deviceIds": [
137963
],
"properties": {
"globalUsername": "root",
"globalPassword": "8k646jpc0XKY+gdetfj3jw=="
},
"children": [],
"devices": null,
"rootGroupId": null,
"globalUsername": "root",
"globalPassword": "8k646jpc0XKY+gdetfj3jw==",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
}getMultipleDeviceGroupsByNames
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/getMultipleDeviceGroupsByNames
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getMultipleDeviceGroupsByNames");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\"SSH\",\"SC Proxy\"]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/getMultipleDeviceGroupsByNames' \
--header 'Content-Type: application/json' \
--data-raw '["SSH","SC Proxy"]'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getMultipleDeviceGroupsByNames",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify(["SSH","SC Proxy"]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"dbId": 1,
"id": "dg.sc_proxy",
"name": "SC 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": 107395,
"id": "8851fead-2b5e-4769-b847-fc8a898999a0",
"name": "SSH",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
107888
],
"deviceIds": [
137963
],
"properties": {
"globalUsername": "root",
"globalPassword": "8k646jpc0XKY+gdetfj3jw=="
},
"children": null,
"devices": null,
"rootGroupId": null,
"globalUsername": "root",
"globalPassword": "8k646jpc0XKY+gdetfj3jw==",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
}
]getDeviceGroupByName
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupByName/<deviceGroupName>
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupByName/DG_Windows_Btu");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupByName/DG_Windows_Btu' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupByName/DG_Windows_Btu",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 971480,
"id": "fa76b493-83eb-4c7d-b1c8-6c1df9784b8f",
"name": "DG_Windows_Btu",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
2009788,
971500,
2623156
],
"deviceIds": [
971511
],
"properties": {
"remoteDesktop.server-layout": "tr-tr-qwerty",
"globalPassword": "LU9/IpSSkZvV6eOPKgcDbg==",
"sessionDurationLimitMinute": "60",
"globalUsername": "Administrator"
},
"children": null,
"devices": null,
"text": "DG_Windows_Btu",
"opened": false,
"selected": false,
"icon": "",
"parentGroupName": null,
"deviceType": null,
"summaryStatus": null,
"ledIcon": null,
"rootGroupId": null,
"globalUsername": "Administrator",
"globalPassword": "LU9/IpSSkZvV6eOPKgcDbg==",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
}getDeviceRealmsOfUser
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceRealmsOfUser/USERID
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceRealmsOfUser/3d4585b2-df78-4155-9e72-e356126b1aee");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceRealmsOfUser/3d4585b2-df78-4155-9e72-e356126b1aee' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceRealmsOfUser/3d4585b2-df78-4155-9e72-e356126b1aee",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"dbId": 1,
"id": null,
"name": "dr.sc_proxy",
"description": null,
"deviceGroups": [
{
"dbId": 1,
"id": "dg.sc_proxy",
"name": "SC 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
}
}
.
.
continue
]getDeviceRealmsOfSessionUser
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceRealmsOfSessionUser
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceRealmsOfSessionUser");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceRealmsOfSessionUser' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceRealmsOfSessionUser",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"dbId": 1,
"id": null,
"name": "dr.sc_proxy",
"description": null,
"deviceGroups": [
{
"dbId": 1,
"id": "dg.sc_proxy",
"name": "SC 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
}
}
.
.
continue
]SaveDeviceRealms
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveDeviceRealms
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceRealms");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[ {\n \n \"name\": \"TEST_DeviceRealm\",\n \"description\": \"TEST_DeviceRealm\",\n \"deviceGroups\": [\n {\n \"dbId\": 1249805,\n \"id\": \"1249805\"\n }\n ], \n \"userGroups\": [\n {\"id\": \"DEFAULT_GROUP_SYSYEM_ADMINS\",\n \"eid\": \"System.Admins\"}\n ]\n }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceRealms' \
--header 'Content-Type: application/json' \
--data-raw '[ {
"name": "TEST_DeviceRealm",
"description": "TEST_DeviceRealm",
"deviceGroups": [
{
"dbId": 1249805,
"id": "1249805"
}
],
"userGroups": [
{"id": "DEFAULT_GROUP_SYSYEM_ADMINS",
"eid": "System.Admins"}
]
}
]'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceRealms",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify([{"name":"TEST_DeviceRealm","description":"TEST_DeviceRealm","deviceGroups":[{"dbId":1249805,"id":"1249805"}],"userGroups":[{"id":"DEFAULT_GROUP_SYSYEM_ADMINS","eid":"System.Admins"}]}]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"TEST_DeviceRealm": "Success"
}updateDeviceRealms
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/updateDeviceRealms
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceRealms");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[ {\n \"dbId\":\"4194567\",\n \"name\": \"TEST_DeviceRealm\",\n \"description\": \"TEST_DeviceRealm\",\n \"deviceGroups\": [\n {\n \"dbId\": 1249805,\n \"id\": \"1249805\"\n }\n ], \n \"userGroups\": [\n {\"id\": \"DEFAULT_GROUP_SYSYEM_ADMINS\",\n \"eid\": \"System.Admins\"}\n ]\n }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceRealms' \
--header 'Content-Type: application/json' \
--data-raw '[ {
"dbId":"4194567",
"name": "TEST_DeviceRealm",
"description": "TEST_DeviceRealm",
"deviceGroups": [
{
"dbId": 1249805,
"id": "1249805"
}
],
"userGroups": [
{"id": "DEFAULT_GROUP_SYSYEM_ADMINS",
"eid": "System.Admins"}
]
}
]'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceRealms",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify([{"dbId":"4194567","name":"TEST_DeviceRealm","description":"TEST_DeviceRealm","deviceGroups":[{"dbId":1249805,"id":"1249805"}],"userGroups":[{"id":"DEFAULT_GROUP_SYSYEM_ADMINS","eid":"System.Admins"}]}]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"TEST_DeviceRealm": "Success"
}deleteDeviceRealms
DELETE
http://{{hostname}}/aioc-rest-web/rest/discovery/deleteDeviceRealms
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceRealms");
client.Timeout = -1;
var request = new RestRequest(Method.DELETE);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[ {\n\t \"dbId\":\"4194567\",\n \"name\": \"TEST_DeviceRealm\"\n \n \n }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request DELETE 'http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceRealms' \
--header 'Content-Type: application/json' \
--data-raw '[ {
"dbId":"4194567",
"name": "TEST_DeviceRealm"
}
]'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceRealms",
"method": "DELETE",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify([{"dbId":"4194567","name":"TEST_DeviceRealm"}]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"TEST_DeviceRealm": "Success"
}getDeviceByiP
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceByIP/<deviceip>
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceByIP/<deviceip>");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceByIP/<deviceip>' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceByIP/<deviceip>",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 971511,
"id": "eec5bb0c-72a0-4871-b376-05c3315be057",
"name": "Windows",
"accessProtocol": "RDP",
"managementIp": "10.xx.xx.xx",
"elementType": {
"dbId": -123,
"elementTypeId": "windows",
"elementTypeName": "Windows",
"vendor": null,
"category": null,
"elementTypeProperties": [
{
"dbId": 2818341,
"elementTypePropertyValue": "true",
"elementTypePropertyKey": "discovery.dns.lookup.hostname",
"elementTypePropertyType": null
}
]
},
"discoveryTime": 1611915048719,
"properties": {
"remoteDesktop.enable-font-smoothing": "true",
"remoteDesktop.server-layout": "tr-tr-qwerty",
"remoteDesktop.security": "any",
"pseudoDevice": "true",
"remoteDesktop.enable-printing": "true",
"remoteDesktop.enable-drive": "true",
"remoteDesktop.ignore-cert": "true"
},
"deviceGroups": [
"2bbc7986-bd1f-4683-bc65-6331c1817235"
],
"availability": null,
"currentMaintenanceWindow": null,
"interfaceName": null,
"nameManagementIp": "Windows-10.xx.xx.xx",
"regionName": null,
"filterRecordLimit": null,
"filterSearchPhrase": null,
"filterGroupId": null,
"filterRoleGroupIds": null,
"filterOnlyUnassignedDevices": null,
"deviceGroupNames": null,
"portNum": null,
"pseudoDevice": true,
"domainController": null,
"discoverySource": null
}getDeviceByName
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceByName/DEVICENAME
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceByName/Windows");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceByName/Windows' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceByName/Windows",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 971511,
"id": "eec5bb0c-72a0-4871-b376-05c3315be057",
"name": "Windows",
"accessProtocol": "RDP",
"managementIp": "10.xx.xx.xx",
"elementType": {
"dbId": -123,
"elementTypeId": "windows",
"elementTypeName": "Windows",
"vendor": null,
"category": null,
"elementTypeProperties": [
{
"dbId": 2818341,
"elementTypePropertyValue": "true",
"elementTypePropertyKey": "discovery.dns.lookup.hostname",
"elementTypePropertyType": null
}
]
},
"discoveryTime": 1611915048719,
"properties": {
"remoteDesktop.enable-font-smoothing": "true",
"remoteDesktop.server-layout": "tr-tr-qwerty",
"remoteDesktop.security": "any",
"pseudoDevice": "true",
"remoteDesktop.enable-printing": "true",
"remoteDesktop.enable-drive": "true",
"remoteDesktop.ignore-cert": "true"
},
"deviceGroups": [
"2bbc7986-bd1f-4683-bc65-6331c1817235",
"fe057e6a-a143-43d7-acab-a9cd8aff0ebe",
"fa76b493-83eb-4c7d-b1c8-6c1df9784b8f",
"89e66f9e-1d55-4527-b6d3-e262a0f855ee"
],
"availability": null,
"currentMaintenanceWindow": null,
"interfaceName": null,
"nameManagementIp": "Windows-10.xx.xx.xx",
"regionName": null,
"filterRecordLimit": null,
"filterSearchPhrase": null,
"filterGroupId": null,
"filterRoleGroupIds": null,
"filterOnlyUnassignedDevices": null,
"deviceGroupNames": null,
"portNum": null,
"pseudoDevice": true,
"domainController": null,
"discoverySource": null
}getDeviceByid
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceById/DEVICEID
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceById/eec5bb0c-72a0-4871-b376-05c3315be057");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceById/eec5bb0c-72a0-4871-b376-05c3315be057' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceById/eec5bb0c-72a0-4871-b376-05c3315be057",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 971511,
"id": "eec5bb0c-72a0-4871-b376-05c3315be057",
"name": "Windows",
"accessProtocol": "RDP",
"managementIp": "10.xx.xx.xx",
"elementType": {
"dbId": -123,
"elementTypeId": "windows",
"elementTypeName": "Windows",
"vendor": null,
"category": null,
"elementTypeProperties": [
{
"dbId": 2818341,
"elementTypePropertyValue": "true",
"elementTypePropertyKey": "discovery.dns.lookup.hostname",
"elementTypePropertyType": null
}
]
},
"discoveryTime": 1611915048719,
"properties": {
"remoteDesktop.enable-font-smoothing": "true",
"remoteDesktop.server-layout": "tr-tr-qwerty",
"remoteDesktop.security": "any",
"pseudoDevice": "true",
"remoteDesktop.enable-printing": "true",
"remoteDesktop.enable-drive": "true",
"remoteDesktop.ignore-cert": "true"
},
"deviceGroups": [
"2bbc7986-bd1f-4683-bc65-6331c1817235"
],
"availability": null,
"currentMaintenanceWindow": null,
"interfaceName": null,
"nameManagementIp": "Windows-10.xx.xx.xx",
"regionName": null,
"filterRecordLimit": null,
"filterSearchPhrase": null,
"filterGroupId": null,
"filterRoleGroupIds": null,
"filterOnlyUnassignedDevices": null,
"deviceGroupNames": null,
"portNum": null,
"pseudoDevice": true,
"domainController": null,
"discoverySource": null
}getDeviceByDbId
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceByDbId/DBID
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceByDbId/971511");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceByDbId/971511' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceByDbId/971511",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 971511,
"id": "eec5bb0c-72a0-4871-b376-05c3315be057",
"name": "Windows",
"accessProtocol": "RDP",
"managementIp": "10.xx.xx.xx",
"elementType": {
"dbId": -123,
"elementTypeId": "windows",
"elementTypeName": "Windows",
"vendor": null,
"category": null,
"elementTypeProperties": [
{
"dbId": 2818341,
"elementTypePropertyValue": "true",
"elementTypePropertyKey": "discovery.dns.lookup.hostname",
"elementTypePropertyType": null
}
]
},
"discoveryTime": 1611915048719,
"properties": {
"remoteDesktop.enable-font-smoothing": "true",
"remoteDesktop.server-layout": "tr-tr-qwerty",
"remoteDesktop.security": "any",
"pseudoDevice": "true",
"remoteDesktop.enable-printing": "true",
"remoteDesktop.enable-drive": "true",
"remoteDesktop.ignore-cert": "true"
},
"deviceGroups": [
"2bbc7986-bd1f-4683-bc65-6331c1817235"
],
"availability": null,
"currentMaintenanceWindow": null,
"interfaceName": null,
"nameManagementIp": "Windows-10.xx.xx.xx",
"regionName": null,
"filterRecordLimit": null,
"filterSearchPhrase": null,
"filterGroupId": null,
"filterRoleGroupIds": null,
"filterOnlyUnassignedDevices": null,
"deviceGroupNames": null,
"portNum": null,
"pseudoDevice": true,
"domainController": null,
"discoverySource": null
}getUnassignedDevices
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getUnassignedDevices
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getUnassignedDevices");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getUnassignedDevices' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getUnassignedDevices",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"dbId": 1598109,
"id": "ead66260-74ae-4f76-aa1b-2950aa238746",
"name": "10.xx.xx.xx",
"accessProtocol": "SSHv2",
"managementIp": "10.xx.xx.xx",
"elementType": {
"dbId": -1256593,
"elementTypeId": "linux",
"elementTypeName": "Linux Server",
"vendor": null,
"category": null,
"elementTypeProperties": [
{
"dbId": -224107347,
"elementTypePropertyValue": ".*?(>|\\$|#|%)",
"elementTypePropertyKey": "enforcer.terminal.behaviour.prompt_pattern",
"elementTypePropertyType": null
},
{
"dbId": -328317181,
"elementTypePropertyValue": "^Are you sure.*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
}
]
},
"discoveryTime": 1609880051564,
"properties": {
"pseudoDevice": "true"
},
"deviceGroups": [],
"availability": null,
"currentMaintenanceWindow": null,
"interfaceName": null,
"nameManagementIp": "10.xx.xx.xx-10.xx.xx.xx",
"regionName": null,
"filterRecordLimit": null,
"filterSearchPhrase": null,
"filterGroupId": null,
"filterRoleGroupIds": null,
"filterOnlyUnassignedDevices": null,
"deviceGroupNames": null,
"portNum": null,
"pseudoDevice": true,
"domainController": null,
"discoverySource": null
}
]saveDevices
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveDevices
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/saveDevices");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n\n\n{\n \n \"managementIp\": \"155.17.17.17\",\n \n \"accessProtocol\": \"RDP\",\n \"elementType\": {\n \"elementTypeId\": \"windows\"\n },\n \"deviceGroups\": [\n \"8851fead-2b5e-4769-b847-fc8a898999a0\"\n ],\n \"pseudoDevice\": true\n}\n \n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/saveDevices' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"managementIp": "155.17.17.17",
"accessProtocol": "RDP",
"elementType": {
"elementTypeId": "windows"
},
"deviceGroups": [
"8851fead-2b5e-4769-b847-fc8a898999a0"
],
"pseudoDevice": true
}
]'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/saveDevices",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify([{"managementIp":"155.17.17.17","accessProtocol":"RDP","elementType":{"elementTypeId":"windows"},"deviceGroups":["8851fead-2b5e-4769-b847-fc8a898999a0"],"pseudoDevice":true}]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"155.17.17.17": "Success"
}updateDevices
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/updateDevices
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/updateDevices");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n {\n \"dbId\": 4195288,\n \"id\": \"c56f71c4-02e6-47d1-81ca-72776ecb87ad\",\n \"managementIp\": \"155.17.17.17\",\n \n \"accessProtocol\": \"RDP\",\n \"elementType\": {\n \"elementTypeId\": \"windows\"\n },\n \"deviceGroups\": [\n \"8851fead-2b5e-4769-b847-fc8a898999a0\"\n ],\n \"pseudoDevice\": true\n}\n \n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/updateDevices' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"dbId": 4195288,
"id": "c56f71c4-02e6-47d1-81ca-72776ecb87ad",
"managementIp": "155.17.17.17",
"accessProtocol": "RDP",
"elementType": {
"elementTypeId": "windows"
},
"deviceGroups": [
"8851fead-2b5e-4769-b847-fc8a898999a0"
],
"pseudoDevice": true
}
]'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/updateDevices",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify([{"dbId":4195288,"id":"c56f71c4-02e6-47d1-81ca-72776ecb87ad","managementIp":"155.17.17.17","accessProtocol":"RDP","elementType":{"elementTypeId":"windows"},"deviceGroups":["8851fead-2b5e-4769-b847-fc8a898999a0"],"pseudoDevice":true}]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"155.17.17.17": "Success"
}deleteDevices
DELETE
http://{{hostname}}/aioc-rest-web/rest/discovery/deleteDevices
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDevices");
client.Timeout = -1;
var request = new RestRequest(Method.DELETE);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n\n {\n \t \"dbId\": 4195288,\n \"id\": \"c56f71c4-02e6-47d1-81ca-72776ecb87ad\",\n \"managementIp\": \"155.17.17.17\"\n }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request DELETE 'http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDevices' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"dbId": 4195288,
"id": "c56f71c4-02e6-47d1-81ca-72776ecb87ad",
"managementIp": "155.17.17.17"
}
]'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDevices",
"method": "DELETE",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify([{"dbId":4195288,"id":"c56f71c4-02e6-47d1-81ca-72776ecb87ad","managementIp":"155.17.17.17"}]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"DeviceDbid: 4195288": "Success"
}saveDeviceGroups
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveDeviceGroups
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceGroups");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[{\n\n \"name\": \"TESTDG_Test\",\n \"description\": \"TESTDG_Test\",\n \"parentGroupId\": null,\n \"ifaceOperationCheck\": false,\n \"timeTolerance\": null,\n \"realms\": [\n 971500\n ],\n \"deviceIds\": [\n 3359111\n ],\n \"properties\": {\n \"globalPassword\": \"123123\",\n \"globalUsername\": \"admin\"\n },\n \"children\": null,\n \"devices\": null,\n \"showInDeviceTree\": true,\n \"useAsRoleGroup\": true,\n \"rootGroupId\": null,\n \"discoverySources\": null,\n \"readOnly\": false\n }]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceGroups' \
--header 'Content-Type: application/json' \
--data-raw '[{
"name": "TESTDG_Test",
"description": "TESTDG_Test",
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
971500
],
"deviceIds": [
3359111
],
"properties": {
"globalPassword": "123123",
"globalUsername": "admin"
},
"children": null,
"devices": null,
"showInDeviceTree": true,
"useAsRoleGroup": true,
"rootGroupId": null,
"discoverySources": null,
"readOnly": false
}]'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceGroups",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify([{"name":"TESTDG_Test","description":"TESTDG_Test","parentGroupId":null,"ifaceOperationCheck":false,"timeTolerance":null,"realms":[971500],"deviceIds":[3359111],"properties":{"globalPassword":"123123","globalUsername":"admin"},"children":null,"devices":null,"showInDeviceTree":true,"useAsRoleGroup":true,"rootGroupId":null,"discoverySources":null,"readOnly":false}]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"TESTDG_Test": "Success"
}updateDeviceGroups
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/updateDeviceGroups
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceGroups");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[{\n \"dbId\": 4195531,\n \"id\": \"fdff8de3-60e0-4d51-8ba4-f57e130d34c8\",\n \"name\": \"TESTDG_Test\",\n \"description\": \"TESTDG_Test\",\n \"parentGroupId\": null,\n \"ifaceOperationCheck\": false,\n \"timeTolerance\": null,\n \"realms\": [\n 971500\n ],\n \"deviceIds\": [\n 3359111\n ],\n \"properties\": {\n \"globalPassword\": \"123123\",\n \"globalUsername\": \"admin\"\n },\n \"children\": null,\n \"devices\": null,\n \"showInDeviceTree\": true,\n \"useAsRoleGroup\": true,\n \"rootGroupId\": null,\n \"discoverySources\": null,\n \"readOnly\": false\n }]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceGroups' \
--header 'Content-Type: application/json' \
--data-raw '[{
"dbId": 4195531,
"id": "fdff8de3-60e0-4d51-8ba4-f57e130d34c8",
"name": "TESTDG_Test",
"description": "TESTDG_Test",
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
971500
],
"deviceIds": [
3359111
],
"properties": {
"globalPassword": "123123",
"globalUsername": "admin"
},
"children": null,
"devices": null,
"showInDeviceTree": true,
"useAsRoleGroup": true,
"rootGroupId": null,
"discoverySources": null,
"readOnly": false
}]'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceGroups",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify([{"dbId":4195531,"id":"fdff8de3-60e0-4d51-8ba4-f57e130d34c8","name":"TESTDG_Test","description":"TESTDG_Test","parentGroupId":null,"ifaceOperationCheck":false,"timeTolerance":null,"realms":[971500],"deviceIds":[3359111],"properties":{"globalPassword":"123123","globalUsername":"admin"},"children":null,"devices":null,"showInDeviceTree":true,"useAsRoleGroup":true,"rootGroupId":null,"discoverySources":null,"readOnly":false}]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"TESTDG_Test": "Success"
}deleteDeviceGroups
DELETE
http://{{hostname}}/aioc-rest-web/rest/discovery/deleteDeviceGroups
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceGroups");
client.Timeout = -1;
var request = new RestRequest(Method.DELETE);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n { \"dbId\": 4195531,\n \"id\": \"fdff8de3-60e0-4d51-8ba4-f57e130d34c8\",\n \"name\": \"TESTDG_Test\"}\n \n \n \n ]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request DELETE 'http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceGroups' \
--header 'Content-Type: application/json' \
--data-raw '[
{ "dbId": 4195531,
"id": "fdff8de3-60e0-4d51-8ba4-f57e130d34c8",
"name": "TESTDG_Test"}
]'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceGroups",
"method": "DELETE",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify([{"dbId":4195531,"id":"fdff8de3-60e0-4d51-8ba4-f57e130d34c8","name":"TESTDG_Test"}]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"TESTDG_Test": "Success"
}saveOrUpdateDeviceGroupProperties
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveOrUpdateDeviceGroupProperties
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/saveOrUpdateDeviceGroupProperties");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"dbId\": 971480,\n \"id\": \"fa76b493-83eb-4c7d-b1c8-6c1df9784b8f\",\n \"name\": \"DG_Windows_Btu\",\n \n \n \"properties\": {\n \"globalUsername\": \"root\",\n \"globalSecretKey\": \"test\",\n \"globalPassword\": \"123\",\n \"discoverySources\": null\n },\n \"children\": [],\n \"devices\": null,\n \"rootGroupId\": null,\n \"showInDeviceTree\": true,\n \"useAsRoleGroup\": true,\n \"discoverySources\": null,\n \"readOnly\": false\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/saveOrUpdateDeviceGroupProperties' \
--header 'Content-Type: application/json' \
--data-raw '{
"dbId": 971480,
"id": "fa76b493-83eb-4c7d-b1c8-6c1df9784b8f",
"name": "DG_Windows_Btu",
"properties": {
"globalUsername": "root",
"globalSecretKey": "test",
"globalPassword": "123",
"discoverySources": null
},
"children": [],
"devices": null,
"rootGroupId": null,
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/saveOrUpdateDeviceGroupProperties",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"dbId":971480,"id":"fa76b493-83eb-4c7d-b1c8-6c1df9784b8f","name":"DG_Windows_Btu","properties":{"globalUsername":"root","globalSecretKey":"test","globalPassword":"123","discoverySources":null},"children":[],"devices":null,"rootGroupId":null,"showInDeviceTree":true,"useAsRoleGroup":true,"discoverySources":null,"readOnly":false}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 971480,
"id": "fa76b493-83eb-4c7d-b1c8-6c1df9784b8f",
"name": "DG_Windows_Btu",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
2009788,
971500,
2623156
],
"deviceIds": [
971511
],
"properties": {
"globalPassword": "iwv2lf+BV9+rerBrieotKA==",
"globalUsername": "root",
"globalSecretKey": "p+GBPUVGapQky2r4+aeZwg=="
},
"children": null,
"devices": null,
"text": "DG_Windows_Btu",
"opened": false,
"selected": false,
"icon": "",
"parentGroupName": null,
"deviceType": null,
"summaryStatus": null,
"ledIcon": null,
"rootGroupId": null,
"globalUsername": "root",
"globalPassword": "iwv2lf+BV9+rerBrieotKA==",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
}getDeviceGroupSubnets
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupSubnets/<deviceGroupID>
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupSubnets/e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupSubnets/e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupSubnets/e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"dbId": 2818361,
"deviceGroupId": "e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c",
"subnetIp": "10.xx.xx.xx",
"mask": null,
"cidr": 30,
"firstIp": 169093424,
"lastIp": 169093427,
"interfaceName": null
}
]deleteDeviceGroupSubnet
DELETE
http://{{hostname}}/aioc-rest-web/rest/discovery/deleteDeviceGroupSubnet
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceGroupSubnet");
client.Timeout = -1;
var request = new RestRequest(Method.DELETE);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{ \"dbId\": 3483567,\n \"deviceGroupId\": \"e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c\",\n \"subnetIp\": \"10.xx.xx.xx\",\n \"mask\": null,\n \"cidr\": 30,\n \"interfaceName\": null\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request DELETE 'http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceGroupSubnet' \
--header 'Content-Type: application/json' \
--data-raw '{ "dbId": 3483567,
"deviceGroupId": "e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c",
"subnetIp": "10.xx.xx.xx",
"mask": null,
"cidr": 30,
"interfaceName": null
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceGroupSubnet",
"method": "DELETE",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"dbId":3483567,"deviceGroupId":"e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c","subnetIp":"10.xx.xx.xx","mask":null,"cidr":30,"interfaceName":null}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
SuccesssaveDeviceGroupSubnet
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveDeviceGroupSubnet
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceGroupSubnet");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"deviceGroupId\": \"e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c\",\n \"subnetIp\": \"10.xx.xx.xx\",\n \"mask\": null,\n \"cidr\": 30,\n \"interfaceName\": null\n\t\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceGroupSubnet' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceGroupId": "e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c",
"subnetIp": "10.xx.xx.xx",
"mask": null,
"cidr": 30,
"interfaceName": null
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceGroupSubnet",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"deviceGroupId":"e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c","subnetIp":"10.xx.xx.xx","mask":null,"cidr":30,"interfaceName":null}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 4196887,
"deviceGroupId": "e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c",
"subnetIp": "10.xx.xx.xx",
"mask": null,
"cidr": 30,
"firstIp": 169093424,
"lastIp": 169093427,
"interfaceName": null
}updateDeviceGroupSubnet
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/updateDeviceGroupSubnet
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceGroupSubnet");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"dbId\": 4196887,\n \"deviceGroupId\": \"e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c\",\n \"subnetIp\": \"10.xx.xx.xx\",\n \"mask\": null,\n \"cidr\": 32,\n \"interfaceName\": null\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceGroupSubnet' \
--header 'Content-Type: application/json' \
--data-raw '{
"dbId": 4196887,
"deviceGroupId": "e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c",
"subnetIp": "10.xx.xx.xx",
"mask": null,
"cidr": 32,
"interfaceName": null
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceGroupSubnet",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"dbId":4196887,"deviceGroupId":"e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c","subnetIp":"10.xx.xx.xx","mask":null,"cidr":32,"interfaceName":null}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 4196887,
"deviceGroupId": "e0424bfe-d1d8-4c4c-87b3-1e0d6ac7db7c",
"subnetIp": "10.xx.xx.xx",
"mask": null,
"cidr": 32,
"firstIp": 169093424,
"lastIp": 169093424,
"interfaceName": null
}getDeviceGroupIpPatterns
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupIpPatterns/DBID
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupIpPatterns/7dad2aa5-414a-4b20-86c0-346876ea88b5");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupIpPatterns/7dad2aa5-414a-4b20-86c0-346876ea88b5' \
--header 'Content-Type: application/json' \
--data-raw ''javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupIpPatterns/7dad2aa5-414a-4b20-86c0-346876ea88b5",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"dbId": 3484693,
"deviceGroupId": "7dad2aa5-414a-4b20-86c0-346876ea88b5",
"interfaceName": null,
"action": "ALLOW",
"ipPattern": "^10\\.20\\.40\\.([1-9]|1[0-9]|2[0-5])$"
}
]deleteDeviceGroupIpPattern
DELETE
http://{{hostname}}/aioc-rest-web/rest/discovery/deleteDeviceGroupIpPattern
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceGroupIpPattern");
client.Timeout = -1;
var request = new RestRequest(Method.DELETE);
request.AddHeader("Host", " localhost");
client.UserAgent = " Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0";
request.AddHeader("Accept", " application/json, text/plain, */*");
request.AddHeader("Accept-Language", " en-US,en;q=0.5");
request.AddHeader("Accept-Encoding", " gzip, deflate");
request.AddHeader("Referer", " http://localhost");
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Connection", " keep-alive");
request.AddHeader("Pragma", " no-cache");
request.AddHeader("Cache-Control", " no-cache");
request.AddParameter("application/json", "{\n \"dbId\": 118263,\n \"deviceGroupId\": \"d8a5810e-f17e-43f4-8036-86a10c5e2ba0\",\n \"interfaceName\": null,\n \"action\": \"ALLOW\",\n \"ipPattern\": \"^10\\\\.20\\\\.40\\\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$\"\n }", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request DELETE 'http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceGroupIpPattern' \
--header 'Host: localhost' \
--header 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: en-US,en;q=0.5' \
--header 'Accept-Encoding: gzip, deflate' \
--header 'Referer: http://localhost' \
--header 'Content-Type: application/json' \
--header 'Connection: keep-alive' \
--header 'Pragma: no-cache' \
--header 'Cache-Control: no-cache' \
--data-raw '{
"dbId": 118263,
"deviceGroupId": "d8a5810e-f17e-43f4-8036-86a10c5e2ba0",
"interfaceName": null,
"action": "ALLOW",
"ipPattern": "^10\\.20\\.40\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$"
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/deleteDeviceGroupIpPattern",
"method": "DELETE",
"timeout": 0,
"headers": {
"Host": " localhost",
"User-Agent": " Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0",
"Accept": " application/json, text/plain, */*",
"Accept-Language": " en-US,en;q=0.5",
"Accept-Encoding": " gzip, deflate",
"Referer": " http://localhost",
"Content-Type": "application/json",
"Connection": " keep-alive",
"Pragma": " no-cache",
"Cache-Control": " no-cache"
},
"data": JSON.stringify({"dbId":118263,"deviceGroupId":"d8a5810e-f17e-43f4-8036-86a10c5e2ba0","interfaceName":null,"action":"ALLOW","ipPattern":"^10\\.20\\.40\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
SuccesssaveDeviceGroupIpPattern
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveDeviceGroupIpPattern
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceGroupIpPattern");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Host", " localhost");
client.UserAgent = " Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0";
request.AddHeader("Accept", " application/json, text/plain, */*");
request.AddHeader("Accept-Language", " en-US,en;q=0.5");
request.AddHeader("Accept-Encoding", " gzip, deflate");
request.AddHeader("Referer", " http://localhost");
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Connection", " keep-alive");
request.AddHeader("Pragma", " no-cache");
request.AddHeader("Cache-Control", " no-cache");
request.AddParameter("application/json", "{\n \"dbId\": 118263,\n \"deviceGroupId\": \"d8a5810e-f17e-43f4-8036-86a10c5e2ba0\",\n \"interfaceName\": null,\n \"action\": \"ALLOW\",\n \"ipPattern\": \"^10\\\\.20\\\\.40\\\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$\"\n }", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceGroupIpPattern' \
--header 'Host: localhost' \
--header 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: en-US,en;q=0.5' \
--header 'Accept-Encoding: gzip, deflate' \
--header 'Referer: http://localhost' \
--header 'Content-Type: application/json' \
--header 'Connection: keep-alive' \
--header 'Pragma: no-cache' \
--header 'Cache-Control: no-cache' \
--data-raw '{
"dbId": 118263,
"deviceGroupId": "d8a5810e-f17e-43f4-8036-86a10c5e2ba0",
"interfaceName": null,
"action": "ALLOW",
"ipPattern": "^10\\.20\\.40\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$"
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/saveDeviceGroupIpPattern",
"method": "POST",
"timeout": 0,
"headers": {
"Host": " localhost",
"User-Agent": " Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0",
"Accept": " application/json, text/plain, */*",
"Accept-Language": " en-US,en;q=0.5",
"Accept-Encoding": " gzip, deflate",
"Referer": " http://localhost",
"Content-Type": "application/json",
"Connection": " keep-alive",
"Pragma": " no-cache",
"Cache-Control": " no-cache"
},
"data": JSON.stringify({"dbId":118263,"deviceGroupId":"d8a5810e-f17e-43f4-8036-86a10c5e2ba0","interfaceName":null,"action":"ALLOW","ipPattern":"^10\\.20\\.40\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 140532,
"deviceGroupId": "d8a5810e-f17e-43f4-8036-86a10c5e2ba0",
"interfaceName": null,
"action": "ALLOW",
"ipPattern": "^10\\.20\\.40\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$"
}updateDeviceGroupIpPattern
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/updateDeviceGroupIpPattern
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceGroupIpPattern");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"dbId\": 3484693,\n \"deviceGroupId\": \"7dad2aa5-414a-4b20-86c0-346876ea88b5\",\n \"interfaceName\": null,\n \"action\": \"DENY\",\n \"ipPattern\": \"^10\\\\.20\\\\.40\\\\.([1-9][0-9]|1([0-1][0-9]|2[0-5]))$\"\n }\n\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceGroupIpPattern' \
--header 'Content-Type: application/json' \
--data-raw '{
"dbId": 3484693,
"deviceGroupId": "7dad2aa5-414a-4b20-86c0-346876ea88b5",
"interfaceName": null,
"action": "DENY",
"ipPattern": "^10\\.20\\.40\\.([1-9][0-9]|1([0-1][0-9]|2[0-5]))$"
}
'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/updateDeviceGroupIpPattern",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"dbId":3484693,"deviceGroupId":"7dad2aa5-414a-4b20-86c0-346876ea88b5","interfaceName":null,"action":"DENY","ipPattern":"^10\\.20\\.40\\.([1-9][0-9]|1([0-1][0-9]|2[0-5]))$"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 3484693,
"deviceGroupId": "7dad2aa5-414a-4b20-86c0-346876ea88b5",
"interfaceName": null,
"action": "DENY",
"ipPattern": "^10\\.20\\.40\\.([1-9][0-9]|1([0-1][0-9]|2[0-5]))$"
}getDeviceGroupWithSecretsRevealed
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupWithSecretsRevealed/DBID
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupWithSecretsRevealed/303880");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Host", " localhost");
client.UserAgent = " Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0";
request.AddHeader("Accept", " application/json, text/plain, */*");
request.AddHeader("Accept-Language", " en-US,en;q=0.5");
request.AddHeader("Accept-Encoding", " gzip, deflate");
request.AddHeader("Referer", " http://localhost");
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Connection", " keep-alive");
request.AddHeader("Pragma", " no-cache");
request.AddHeader("Cache-Control", " no-cache");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupWithSecretsRevealed/303880' \
--header 'Host: localhost' \
--header 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: en-US,en;q=0.5' \
--header 'Accept-Encoding: gzip, deflate' \
--header 'Referer: http://localhost' \
--header 'Content-Type: application/json' \
--header 'Connection: keep-alive' \
--header 'Pragma: no-cache' \
--header 'Cache-Control: no-cache'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupWithSecretsRevealed/303880",
"method": "GET",
"timeout": 0,
"headers": {
"Host": " localhost",
"User-Agent": " Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0",
"Accept": " application/json, text/plain, */*",
"Accept-Language": " en-US,en;q=0.5",
"Accept-Encoding": " gzip, deflate",
"Referer": " http://localhost",
"Content-Type": "application/json",
"Connection": " keep-alive",
"Pragma": " no-cache",
"Cache-Control": " no-cache"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 303880,
"id": "7dad2aa5-414a-4b20-86c0-346876ea88b5",
"name": "SSH DG2",
"description": null,
"parentGroupId": null,
"ifaceOperationCheck": false,
"timeTolerance": null,
"realms": [
304366,
3478516
],
"deviceIds": [],
"properties": {
"globalUsername": "root",
"globalSecretKey": "test",
"globalPassword": "123"
},
"children": [],
"devices": null,
"rootGroupId": null,
"globalUsername": "root",
"globalPassword": "123",
"showInDeviceTree": true,
"useAsRoleGroup": true,
"discoverySources": null,
"readOnly": false
}