Add AAPM Account
1 min
POST
{{url}}/aioc-rest-web/rest/aapm/addAapmAccount
Body Parameters
- bodystringExample
{ "dbId": 962918, "applicationName": "New Aapm Account", "activeTimeLimitation": false, "activeUsageLimitation": false, "addEventUser": true, "allowListingAccounts": false, "appHash": "", "appPath": "", "applicationIps": [ "10.10.10.10/0" ], "eventUserEid": "admin", "eventUserId": null, "expiryDate": 1623238642873, "hashAlgorithmType": "MD5", "lastAccessTime": null, "manuelPassword": null, "manuelUserName": "", "maxUsageCount": null, "numberOfUsage": 0, "osType": null, "pinPort": 0, "recordLimit4Search": null, "sapmAccounts": [ { "dbId": 805612 } ], "sapmGroups": [ { "dbId": 962211, "id": "da5a8bd7-98c0-4fb6-a0ad-be9c8bb2a1f0", "name": "SapmGroup" } ], "securityLevel": "BASIC", "token": "939d701e-6db4-4e91-8c73-a702e657bbb1" }
Responses
200
curl
curl --request POST \
--url {{url}}/aioc-rest-web/rest/aapm/addAapmAccount \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
var requestOptions = {
method: 'POST',
headers: myHeaders,
redirect: 'follow'
};
fetch("{{url}}/aioc-rest-web/rest/aapm/addAapmAccount", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "net/http"
url = URI("{{url}}/aioc-rest-web/rest/aapm/addAapmAccount")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
response = http.request(request)
puts response.read_body
python
import requests
url = "{{url}}/aioc-rest-web/rest/aapm/addAapmAccount"
payload = {}
headers = {
'accept': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
{
"dbId": 765937,
"applicationName": "New Aapm Account",
"applicationIps": [
"10.10.10.10/0"
],
"token": "ab23f990-1c37-43b9-8e85-6de2b25ec0f0",
"expiryDate": 1623238642873,
"lastAccessTime": null,
"osType": null,
"osCredentialType": null,
"osCredentialSAPM": null,
"osCredentialSecretDataVault": null,
"appHash": "",
"appPath": "",
"pinPort": 0,
"securityLevel": "BASIC",
"hashAlgorithmType": "MD5",
"manuelUserName": "",
"manuelPassword": null,
"maxUsageCount": null,
"numberOfUsage": 0,
"activeUsageLimitation": false,
"activeTimeLimitation": false,
"allowListingAccounts": false,
"addEventUser": true,
"eventUserEid": "admin",
"sapmAccounts": [
{
"dbId": 765863,
"device": null,
"secretName": null,
"config": null,
"changePeriod": null,
"username": null,
"description": null,
"secretNotes": null,
"password": null,
"previousPassword": null,
"lastChangeTime": null,
"nextChangeTime": null,
"nextChangeTimeStart4Search": null,
"nextChangeTimeEnd4Search": null,
"passwordSeenStatus": null,
"validationStatus": null,
"changeStatus": null,
"lastAttemptStatus": null,
"masterAccountId": null,
"permissions": [],
"newPermission": [],
"permissionToDelete": [],
"groupManagerToDelete": null,
"identicalSapmAccounts": [],
"recordLimit4Search": null,
"validationStatus4Search": null,
"checkPermission4Search": true,
"acceptedSapmConfigList": null,
"searchOnlyMasterAccounts": false,
"searchOnlyOwnRegion": false,
"deviceIp4Search": null,
"secondPartSeenUsername": null,
"firstPartSeenUsername": null,
"errorMessage": null,
"successful": true,
"parentSapmGroup": null,
"parentSapmName4Search": null,
"secretType": null,
"owner": null,
"createdAt": null,
"updatedAt": null,
"managers": [],
"newGroupManager": null,
"userPermissionLevel": -2147483648,
"privateType": null,
"approvalStatus": null,
"parentSapmGroupDbId": null,
"groupFullPath": null,
"isExactMatch4Search": null,
"approvedBy": null,
"approvedDate": null,
"getFullPermissionUser": false,
"getReadWritePermissionOrAboveUser": false,
"skipFillPermission": false,
"sqlSearchSapmParent": [],
"advancedSearchInput": null,
"listOfAccountToSearch": [],
"firstResult": null,
"maxResult": null,
"notificationGroups": [],
"notificationGroupToDelete": null,
"newNotificationGroup": null,
"approvalRequired": false,
"exactMatch4Search": false,
"changePeriodFormatted": "00d 00h 00m",
"manager": false,
"masterAccountId4Search": null,
"accountWithDynamicStrategy": false
}
],
"sapmGroups": [],
"sapmAccount4Search": null,
"eventUserId": null,
"securityLevelString": null,
"osTypeString": null,
"osCredentialTypeString": null,
"osCredentialSAPMLong": null,
"osCredentialSecretDataVaultLong": null,
"hashAlgorithmTypeString": null,
"recordLimit4Search": null,
"password": null,
"userName": null
}