Device Management
16 min
getDeviceGroupsOfSessionUser
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupsOfSessionUser
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);getDevicesOfDeviceGroupByDeviceGroupId
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDevicesOfDeviceGroupByDeviceGroupId/DEVICEGROUPID
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);getDeviceGroupByDbidWithDevices
GET
http://{{hostname }}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithDevices/DgDbID
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);getDeviceGroupByDbidWithoutDevices
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithoutDevices/DgDbID
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);getMultipleDeviceGroupsByNames
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/getMultipleDeviceGroupsByNames
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);getDeviceGroupByName
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupByName/<deviceGroupName>
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);getDeviceRealmsOfUser
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceRealmsOfUser/USERID
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);getDeviceRealmsOfSessionUser
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceRealmsOfSessionUser
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);SaveDeviceRealms
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveDeviceRealms
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);updateDeviceRealms
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/updateDeviceRealms
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);deleteDeviceRealms
DELETE
http://{{hostname}}/aioc-rest-web/rest/discovery/deleteDeviceRealms
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);getDeviceByiP
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceByIP/<deviceip>
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);getDeviceByName
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceByName/DEVICENAME
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);getDeviceByid
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceById/DEVICEID
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);getDeviceByDbId
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceByDbId/DBID
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);getUnassignedDevices
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getUnassignedDevices
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);saveDevices
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveDevices
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);updateDevices
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/updateDevices
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);deleteDevices
DELETE
http://{{hostname}}/aioc-rest-web/rest/discovery/deleteDevices
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);saveDeviceGroups
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveDeviceGroups
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);updateDeviceGroups
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/updateDeviceGroups
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);deleteDeviceGroups
DELETE
http://{{hostname}}/aioc-rest-web/rest/discovery/deleteDeviceGroups
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);saveOrUpdateDeviceGroupProperties
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveOrUpdateDeviceGroupProperties
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);getDeviceGroupSubnets
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupSubnets/<deviceGroupID>
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);deleteDeviceGroupSubnet
DELETE
http://{{hostname}}/aioc-rest-web/rest/discovery/deleteDeviceGroupSubnet
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);saveDeviceGroupSubnet
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveDeviceGroupSubnet
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);updateDeviceGroupSubnet
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/updateDeviceGroupSubnet
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);getDeviceGroupIpPatterns
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupIpPatterns/DBID
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);deleteDeviceGroupIpPattern
DELETE
http://{{hostname}}/aioc-rest-web/rest/discovery/deleteDeviceGroupIpPattern
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);saveDeviceGroupIpPattern
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/saveDeviceGroupIpPattern
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);updateDeviceGroupIpPattern
POST
http://{{hostname}}/aioc-rest-web/rest/discovery/updateDeviceGroupIpPattern
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);getDeviceGroupWithSecretsRevealed
GET
http://{{hostname}}/aioc-rest-web/rest/discovery/getDeviceGroupWithSecretsRevealed/DBID
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);