AAPM Management
10 min
searchAapmAccount
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/searchAapmAccounts
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/searchAapmAccounts");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"dbId\": null,\n\n \"osType\": null,\n \"osCredentialType\": null,\n \"recordLimit4Search\": null,\n \"token\": \"40ad90fe-6e96-466d-9262-5ac9973de358\",\n \"applicationName\": null,\n \"applicationIp\": 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/sc/aapm/searchAapmAccounts' \
--header 'Content-Type: application/json' \
--data-raw '{
"dbId": null,
"osType": null,
"osCredentialType": null,
"recordLimit4Search": null,
"token": "40ad90fe-6e96-466d-9262-5ac9973de358",
"applicationName": null,
"applicationIp": null
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/searchAapmAccounts",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"dbId":null,"osType":null,"osCredentialType":null,"recordLimit4Search":null,"token":"40ad90fe-6e96-466d-9262-5ac9973de358","applicationName":null,"applicationIp":null}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});none
Search With App IP Using parameter
{
"applicationIp": "10.xx.xx.xx"
}200
[
{
"dbId": 972531,
"applicationName": "restUpdate",
"applicationIp": "10.xx.xx.xx",
"eventUser": {
"id": "25e53f47-ce66-4df2-9abc-6961dc668264",
"eid": "admin",
"personelId": null,
"name": "Administrator",
"passwordAlgorithm": null,
"password": "21232f297a57a5a743894a0e4a801fc3",
"email": "[email protected]",
"surname": "Administrator",
"internal": true,
"properties": {
"ubaThreshold": "50",
"phoneNumber": "05301494892"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"DEFAULT_GROUP_SYSYEM_ADMINS"
],
"managerGroups": [
"DEFAULT_GROUP_SYSYEM_ADMINS"
],
"lastLogin": 1614726555878,
"lastLoginIp": "10.xx.xx.xx",
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"recordLimit4Search": null,
"passwordDirty": false,
"passwordAutoGenerated": false,
"filterFunctionName": null,
"filterMembershipUserId": null,
"filterManagerId": null,
"filterEidList": null,
"filterManagerOfUserId": null,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserEndTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"phoneNumber": "05301494892",
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"locked": false
},
"sapmAccount": null,
"secretDataVault": {
"dbId": 972191,
"name": "TestBtu_USerCredential",
"description": "BtuTest",
"type": "USER_CREDENTIAL",
"ipAddress": "127.0.0.1",
"secretData": "BtuTest",
"secretData2": "BtuTest2",
"permissions": {},
"userCreate": "admin",
"username": "BtuTest",
"errorMessage": null,
"successful": true,
"privateType": "NO",
"userPermissionLevel": null
},
"token": "40ad90fe-6e96-466d-9262-5ac9973de358",
"lastAccessTime": null,
"osType": null,
"osCredentialType": null,
"osCredentialSAPM": null,
"osCredentialSecretDataVault": null,
"appHash": null,
"appPath": null,
"pinPort": 0,
"securityLevel": "BASIC",
"hashAlgorithmType": null,
"manuelUserName": null,
"manuelPassword": null,
"sendSDVUsernameInResponse": true,
"accessViaLoadBalancer": false,
"loadBalancerIp": null,
"recordLimit4Search": null,
"userName": null,
"password": null
}
]searchAapmTrigger
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/searchAapmTrigger
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/searchAapmTrigger");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"dbId\": null,\n \"elementTypeId\": null,\n \"recordLimit4Search\": null,\n \"deviceIp4Search\": null,\n \"deviceGroupName4Search\": null,\n \"sapmAccount\": null,\n \"strategy\": \"WINDOWS_SERVICE\",\n \"targetType\": 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/sc/aapm/searchAapmTrigger' \
--header 'Content-Type: application/json' \
--data-raw '{
"dbId": null,
"elementTypeId": null,
"recordLimit4Search": null,
"deviceIp4Search": null,
"deviceGroupName4Search": null,
"sapmAccount": null,
"strategy": "WINDOWS_SERVICE",
"targetType": null
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/searchAapmTrigger",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"dbId":null,"elementTypeId":null,"recordLimit4Search":null,"deviceIp4Search":null,"deviceGroupName4Search":null,"sapmAccount":null,"strategy":"WINDOWS_SERVICE","targetType":null}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});none
searchAapmTriggerByDeviceGroupName ;
{
"deviceGroupName4Search": "group1"
}
searchAapmTriggerByDeviceIp;
{
"deviceIp4Search": ".165"
}
searchAapmTriggerBySapmAccount;
{
"sapmAccount": {
"dbId": 566585
}
}
200
[
{
"dbId": 4165555,
"sapmAccount": {
"dbId": 3927684,
"device": {
"dbId": 971511,
"id": "eec5bb0c-72a0-4871-b376-05c3315be057",
"name": "Windows",
"accessProtocol": "RDP",
"managementIp": "10.20.30.54",
"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
},
"config": {
"configId": -9301,
"name": "Windows",
"description": "Windows",
"strategy": "SMB",
"properties": {
"new.user.found.action": "LOG",
"super.username": "Administrator",
"change.password.after.session.login": "true",
"check.password.success.pattern": ".*has been set.*",
"check.password.validation": "true"
},
"exactMatch4Search": false,
"recordLimit4Search": null
},
"changePeriod": 1440,
"username": "test",
"password": "oXt/JQKtmXSJIxW9tYMBzg==",
"previousPassword": "W39JLGFwi2MWJbv+D3818A==",
"lastChangeTime": 1614731580072,
"nextChangeTime": 1614817980072,
"nextChangeTimeStart4Search": null,
"nextChangeTimeEnd4Search": null,
"passwordSeenStatus": "UNSEEN",
"validationStatus": "VALID",
"changeStatus": null,
"lastAttemptStatus": true,
"masterAccountId": null,
"permissions": {},
"identicalSapmAccounts": [],
"recordLimit4Search": null,
"validationStatus4Search": null,
"checkPermission4Search": true,
"exactMatch4Search": false,
"acceptedSapmConfigList": null,
"masterAccountId4Search": null,
"searchOnlyMasterAccounts": false,
"searchOnlyOwnRegion": false,
"deviceIp4Search": null,
"secondPartSeenUsername": null,
"firstPartSeenUsername": null,
"errorMessage": null,
"successful": true,
"changePeriodFormatted": "01d 00h 00m"
},
"strategy": "WINDOWS_SERVICE",
"targetType": "SINGLE_DEVICE",
"device": {
"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
},
"deviceGroup": null,
"elementTypeId": null,
"recordLimit4Search": null,
"deviceIp4Search": null,
"deviceGroupName4Search": null,
"sapmDeviceIp": "10.xx.xx.xx",
"sapmDeviceHostname": "Windows",
"sapmUsername": "test"
}
]searchAapmTriggerProcess
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/searchAapmTriggerProcess
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/searchAapmTriggerProcess");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"creationTimeBegin4Search\": 1606393445800,\n \"creationTimeEnd4Search\": null,\n \"sapmAccount4Search\": {\n \"dbId\": 566585\n },\n \"processStatus\": \"WAITING\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/searchAapmTriggerProcess' \
--header 'Content-Type: application/json' \
--data-raw '{
"creationTimeBegin4Search": 1606393445800,
"creationTimeEnd4Search": null,
"sapmAccount4Search": {
"dbId": 566585
},
"processStatus": "WAITING"
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/searchAapmTriggerProcess",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"creationTimeBegin4Search":1606393445800,"creationTimeEnd4Search":null,"sapmAccount4Search":{"dbId":566585},"processStatus":"WAITING"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
saveAapmAccount
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/saveAapmAccount
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/saveAapmAccount");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \n \"applicationName\": \"restapisave4\",\n \"applicationIp\": \"10.xx.xx.xx\",\n \"eventUser\": {\n \"id\": \"25e53f47-ce66-4df2-9abc-6961dc668264\"\n },\n \"sapmAccount\": null,\n \"secretDataVault\": {\n \"dbId\": \"4163316\"\n },\n \"osType\": null,\n \"osCredentialType\": null,\n \"osCredentialSAPM\": null,\n \"osCredentialSecretDataVault\": null,\n \"appHash\": null,\n \"appPath\": null,\n \"pinPort\": 0,\n \"securityLevel\": \"BASIC\",\n \"hashAlgorithmType\": null,\n \"manuelUserName\": null,\n \"manuelPassword\": null,\n \"sendSDVUsernameInResponse\": true,\n \"accessViaLoadBalancer\": false,\n \"loadBalancerIp\": 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/sc/aapm/saveAapmAccount' \
--header 'Content-Type: application/json' \
--data-raw '{
"applicationName": "restapisave4",
"applicationIp": "10.xx.xx.xx",
"eventUser": {
"id": "25e53f47-ce66-4df2-9abc-6961dc668264"
},
"sapmAccount": null,
"secretDataVault": {
"dbId": "4163316"
},
"osType": null,
"osCredentialType": null,
"osCredentialSAPM": null,
"osCredentialSecretDataVault": null,
"appHash": null,
"appPath": null,
"pinPort": 0,
"securityLevel": "BASIC",
"hashAlgorithmType": null,
"manuelUserName": null,
"manuelPassword": null,
"sendSDVUsernameInResponse": true,
"accessViaLoadBalancer": false,
"loadBalancerIp": null
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/saveAapmAccount",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"applicationName":"restapisave4","applicationIp":"10.xx.xx.xx","eventUser":{"id":"25e53f47-ce66-4df2-9abc-6961dc668264"},"sapmAccount":null,"secretDataVault":{"dbId":"4163316"},"osType":null,"osCredentialType":null,"osCredentialSAPM":null,"osCredentialSecretDataVault":null,"appHash":null,"appPath":null,"pinPort":0,"securityLevel":"BASIC","hashAlgorithmType":null,"manuelUserName":null,"manuelPassword":null,"sendSDVUsernameInResponse":true,"accessViaLoadBalancer":false,"loadBalancerIp":null}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
01ecddbb-33ee-46c4-a6c1-f00367990b82saveAapmAccount (Update)
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/saveAapmAccount
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/saveAapmAccount");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{ \n \"dbId\": \"4165795\",\n \"applicationName\": \"rest_update\",\n \"applicationIp\": \"10.xx.xx.xx\",\n \"eventUser\": {\n \"id\": \"25e53f47-ce66-4df2-9abc-6961dc668264\"\n },\n \"sapmAccount\": null,\n \"secretDataVault\": {\n \"dbId\": \"4163316\"\n },\n \"token\":\"6ef61df8-7b52-4e81-a045-cf69d1752f93\",\n \"osType\": null,\n \"osCredentialType\": null,\n \"osCredentialSAPM\": null,\n \"osCredentialSecretDataVault\": null,\n \"appHash\": null,\n \"appPath\": null,\n \"pinPort\": 0,\n \"securityLevel\": \"BASIC\",\n \"hashAlgorithmType\": null,\n \"manuelUserName\": null,\n \"manuelPassword\": null,\n \"sendSDVUsernameInResponse\": true,\n \"accessViaLoadBalancer\": false,\n \"loadBalancerIp\": 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/sc/aapm/saveAapmAccount' \
--header 'Content-Type: application/json' \
--data-raw '{
"dbId": "4165795",
"applicationName": "rest_update",
"applicationIp": "10.xx.xx.xx",
"eventUser": {
"id": "25e53f47-ce66-4df2-9abc-6961dc668264"
},
"sapmAccount": null,
"secretDataVault": {
"dbId": "4163316"
},
"token":"6ef61df8-7b52-4e81-a045-cf69d1752f93",
"osType": null,
"osCredentialType": null,
"osCredentialSAPM": null,
"osCredentialSecretDataVault": null,
"appHash": null,
"appPath": null,
"pinPort": 0,
"securityLevel": "BASIC",
"hashAlgorithmType": null,
"manuelUserName": null,
"manuelPassword": null,
"sendSDVUsernameInResponse": true,
"accessViaLoadBalancer": false,
"loadBalancerIp": null
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/saveAapmAccount",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"dbId":"4165795","applicationName":"rest_update","applicationIp":"10.xx.xx.xx","eventUser":{"id":"25e53f47-ce66-4df2-9abc-6961dc668264"},"sapmAccount":null,"secretDataVault":{"dbId":"4163316"},"token":"6ef61df8-7b52-4e81-a045-cf69d1752f93","osType":null,"osCredentialType":null,"osCredentialSAPM":null,"osCredentialSecretDataVault":null,"appHash":null,"appPath":null,"pinPort":0,"securityLevel":"BASIC","hashAlgorithmType":null,"manuelUserName":null,"manuelPassword":null,"sendSDVUsernameInResponse":true,"accessViaLoadBalancer":false,"loadBalancerIp":null}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
6ef61df8-7b52-4e81-a045-cf69d1752f93deleteAapmAccount
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/deleteAapmAccount
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/deleteAapmAccount");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"dbId\" : 4165795\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/deleteAapmAccount' \
--header 'Content-Type: application/json' \
--data-raw '{
"dbId" : 4165795
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/deleteAapmAccount",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"dbId":4165795}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
truegetPassword (SAPM)
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/getPassword
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPassword");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"token\": \"dbbd13fc-0aa3-4f2e-9672-b20a6701a68b\",\n \"passwordExpirationInMinute\": 5,\n \"comment\": \"ksgsrgr\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPassword' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "dbbd13fc-0aa3-4f2e-9672-b20a6701a68b",
"passwordExpirationInMinute": 5,
"comment": "ksgsrgr"
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPassword",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"token":"dbbd13fc-0aa3-4f2e-9672-b20a6701a68b","passwordExpirationInMinute":5,"comment":"ksgsrgr"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
6Mz9DPcagetPassword (Secret Data Vault)
GET
http://{{hostname }}/sc-aapm-ui/rest/aapm/secretData?token={token}
csharp
var client = new RestClient("http://{{hostname }}/sc-aapm-ui/rest/aapm/secretData?token=a9200cd6-77c9-4138-b42e-add207cebcaa");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/sc-aapm-ui/rest/aapm/secretData?token=a9200cd6-77c9-4138-b42e-add207cebcaa'javascript
var settings = {
"url": "http://{{hostname }}/sc-aapm-ui/rest/aapm/secretData?token=a9200cd6-77c9-4138-b42e-add207cebcaa",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
Adg9123DPcasaveAapmTrigger
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/saveAapmTrigger
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/saveAapmTrigger");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"sapmAccount\": {\n \"dbId\": 3927684\n },\n \"strategy\": \"WINDOWS_SERVICE\",\n \"targetType\": \"SINGLE_DEVICE\",\n \"device\": {\n \"dbId\": 971511\n },\n \"deviceGroup\": 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/sc/aapm/saveAapmTrigger' \
--header 'Content-Type: application/json' \
--data-raw '{
"sapmAccount": {
"dbId": 3927684
},
"strategy": "WINDOWS_SERVICE",
"targetType": "SINGLE_DEVICE",
"device": {
"dbId": 971511
},
"deviceGroup": null
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/saveAapmTrigger",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"sapmAccount":{"dbId":3927684},"strategy":"WINDOWS_SERVICE","targetType":"SINGLE_DEVICE","device":{"dbId":971511},"deviceGroup":null}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});none
saveAapmTriggerBULK;
{
"sapmAccount": {
"dbId": 566585
},
"strategy": "WINDOWS_SERVICE",
"targetType": "BULK",
"device": null,
"deviceGroup": {
"dbId": 6483515
},
"elementTypeId": "windows"
}200
{
"dbId": 4166193,
"sapmAccount": {
"dbId": 3927684,
"device": null,
"config": null,
"changePeriod": null,
"username": null,
"password": null,
"previousPassword": null,
"lastChangeTime": null,
"nextChangeTime": null,
"nextChangeTimeStart4Search": null,
"nextChangeTimeEnd4Search": null,
"passwordSeenStatus": null,
"validationStatus": null,
"changeStatus": null,
"lastAttemptStatus": null,
"masterAccountId": null,
"permissions": {},
"identicalSapmAccounts": [],
"recordLimit4Search": null,
"validationStatus4Search": null,
"checkPermission4Search": true,
"exactMatch4Search": false,
"acceptedSapmConfigList": null,
"masterAccountId4Search": null,
"searchOnlyMasterAccounts": false,
"searchOnlyOwnRegion": false,
"deviceIp4Search": null,
"secondPartSeenUsername": null,
"firstPartSeenUsername": null,
"errorMessage": null,
"successful": true,
"changePeriodFormatted": "00d 00h 00m"
},
"strategy": "WINDOWS_SERVICE",
"targetType": "SINGLE_DEVICE",
"device": {
"dbId": 971511,
"id": null,
"name": null,
"accessProtocol": null,
"managementIp": null,
"elementType": null,
"discoveryTime": null,
"properties": {},
"deviceGroups": [],
"availability": null,
"currentMaintenanceWindow": null,
"interfaceName": null,
"nameManagementIp": null,
"regionName": null,
"filterRecordLimit": null,
"filterSearchPhrase": null,
"filterGroupId": null,
"filterRoleGroupIds": null,
"filterOnlyUnassignedDevices": null,
"deviceGroupNames": null,
"portNum": null,
"pseudoDevice": false,
"domainController": null,
"discoverySource": null
},
"deviceGroup": null,
"elementTypeId": null,
"recordLimit4Search": null,
"deviceIp4Search": null,
"deviceGroupName4Search": null,
"sapmDeviceIp": null,
"sapmDeviceHostname": null,
"sapmUsername": null
}deleteAapmTrigger
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/deleteAapmTrigger
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/deleteAapmTrigger");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"dbId\": 7436023\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/deleteAapmTrigger' \
--header 'Content-Type: application/json' \
--data-raw '{
"dbId": 7436023
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/deleteAapmTrigger",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"dbId":7436023}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
truedeleteAapmTriggerProcess
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/deleteAapmTriggerProcess
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/deleteAapmTriggerProcess");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"dbId\": 12345\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/deleteAapmTriggerProcess' \
--header 'Content-Type: application/json' \
--data-raw '{
"dbId": 12345
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/deleteAapmTriggerProcess",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"dbId":12345}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
truerunAapmTriggerProcess
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/runAapmTriggerProcess
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/runAapmTriggerProcess");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "4166081", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/runAapmTriggerProcess' \
--header 'Content-Type: application/json' \
--data-raw '4166081'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/runAapmTriggerProcess",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify(4166081),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 4166081,
"aapmTrigger": null,
"device": {
"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
},
"processStatus": "WAITING",
"creationTime": 1614735600374,
"startTime": null,
"endTime": null,
"log": null,
"instanceName": null,
"recordLimit4Search": null,
"deviceIp4Search": null,
"sapmAccount4Search": null,
"triggerStrategy4Search": null,
"creationTimeBegin4Search": null,
"creationTimeEnd4Search": null,
"startTimeBegin4Search": null,
"startTimeEnd4Search": null,
"sapmDeviceIp": "10.xx.xx.xx",
"sapmDeviceHostname": "Windows",
"sapmUsername": "test"
}cancelAapmTriggerProcess
POST
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/cancelAapmTriggerProcess
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/cancelAapmTriggerProcess");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "4166081", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/cancelAapmTriggerProcess' \
--header 'Content-Type: application/json' \
--data-raw '4166081'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/cancelAapmTriggerProcess",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify(4166081),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 4166081,
"aapmTrigger": null,
"device": {
"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
},
"processStatus": "CANCELLED",
"creationTime": 1614735600374,
"startTime": null,
"endTime": null,
"log": null,
"instanceName": null,
"recordLimit4Search": null,
"deviceIp4Search": null,
"sapmAccount4Search": null,
"triggerStrategy4Search": null,
"creationTimeBegin4Search": null,
"creationTimeEnd4Search": null,
"startTimeBegin4Search": null,
"startTimeEnd4Search": null,
"sapmDeviceIp": "10.xx.xx.xx",
"sapmDeviceHostname": "Windows",
"sapmUsername": "test"
}getSecurityLevelTypes
GET
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/securitylevel
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/securitylevel");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/securitylevel'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/securitylevel",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
"BASIC",
"BASIC_PIN",
"BASIC_PIN_PATH",
"BASIC_PIN_PATH_HASH"
]getTriggerTargetTypes
GET
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/target
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/target");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/target'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/target",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
"SINGLE_DEVICE",
"BULK"
]getTriggerStrategyTypes
GET
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/strategy
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/strategy");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/strategy'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/strategy",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
"WINDOWS_SERVICE"
]getOSTypes
GET
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/os
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/os");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/os'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/os",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
"WINDOWS",
"LINUX",
"MACOS"
]getOSCredentialTypes
GET
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/oscredential
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/oscredential");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/oscredential",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/oscredential",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
"SAPM",
"SECRET_DATA_VAULT",
"MANUEL_USER"
]getProcessStatusTypes
GET
http://{{hostname}}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/processstatus
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/processstatus");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/processstatus'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/aapm/getPropertyTypes/processstatus",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
"WAITING",
"IN_PROGRESS",
"CANCELLED",
"DONE",
"FAILED"
]