Password Manager
6 min
List Sapm Accounts
POST
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/searchSapmAccounts
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/searchSapmAccounts");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
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 POST 'http://{{hostname}}/aioc-rest-web/rest/sc/sapm/searchSapmAccounts' \
--header 'Content-Type: application/json' \
--data-raw '{}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/searchSapmAccounts",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"dbId": 968845,
"device": {
"dbId": 968823,
"id": "53bcd137-7751-48ab-8fe3-4b9028d676df",
"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": -328315408,
"elementTypePropertyValue": "^Quit.*",
"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": -328321729,
"elementTypePropertyValue": "^Enter the date.*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": -224107347,
"elementTypePropertyValue": ".*?(>|\\$|#|%)",
"elementTypePropertyKey": "enforcer.terminal.behaviour.prompt_pattern",
"elementTypePropertyType": null
},
{
"dbId": -224107346,
"elementTypePropertyValue": "do_nothing",
"elementTypePropertyKey": "enforcer.terminal.behaviour.ctrl_z",
"elementTypePropertyType": null
},
{
"dbId": -328317181,
"elementTypePropertyValue": "^Are you sure.*",
"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
}
]
},
"discoveryTime": 1611140918108,
"properties": {
"pseudoDevice": "true"
},
"deviceGroups": [
"b762a918-285e-41cb-8f28-8dea6a984293",
"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
},
"config": {
"configId": 968854,
"name": "Linux Sync Identical",
"description": null,
"strategy": "SSH",
"properties": {
"change.password.success.pattern": ".*successfully.*",
"sync.identical.account.password": "true",
"new.user.found.action": "LOG",
"username.parser": "(.*?):.*",
"change.password.command.template": "passwd\\n${oldPassword}\\n${newPassword}\\n${newPassword}\\nlogout",
"user.list.command": "cat /etc/passwd",
"check.password.validation": "true"
},
"exactMatch4Search": false,
"recordLimit4Search": null
},
"changePeriod": 1440,
"username": "sapm_sync",
"password": "Cc04b9nM7NprYqjGPyR64g==",
"previousPassword": "YMb6N5ska9JmyFf08gswMg==",
"lastChangeTime": 1609846260123,
"nextChangeTime": 1614601440088,
"nextChangeTimeStart4Search": null,
"nextChangeTimeEnd4Search": null,
"passwordSeenStatus": "UNSEEN",
"validationStatus": "UNKNOWN",
"changeStatus": null,
"lastAttemptStatus": false,
"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"
}
]sapm/addSapmConfig
POST
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/addSapmConfig
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/addSapmConfig");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"name\": \"Test2\",\n \"description\": \"Test2\",\n \"strategy\": \"SSH\",\n \"properties\": {\n \"new.user.found.action\": \"LOG\",\n \"username.parser\": \"(.*?)\\\\s+(Enabled|Disabled)\",\n \"change.password.command.template\": \"configure\\\\nadmin ${username} password ${newPassword}\\\\nend\\\\nexit\\\\n\",\n \"user.list.command\": \"show admin\"\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/sc/sapm/addSapmConfig' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Test2",
"description": "Test2",
"strategy": "SSH",
"properties": {
"new.user.found.action": "LOG",
"username.parser": "(.*?)\\s+(Enabled|Disabled)",
"change.password.command.template": "configure\\nadmin ${username} password ${newPassword}\\nend\\nexit\\n",
"user.list.command": "show admin"
}
}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/addSapmConfig",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"name":"Test2","description":"Test2","strategy":"SSH","properties":{"new.user.found.action":"LOG","username.parser":"(.*?)\\s+(Enabled|Disabled)","change.password.command.template":"configure\\nadmin ${username} password ${newPassword}\\nend\\nexit\\n","user.list.command":"show admin"}}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"configId": null,
"name": "Test2",
"description": "Test2",
"strategy": "SSH",
"properties": {
"new.user.found.action": "LOG",
"username.parser": "(.*?)\\s+(Enabled|Disabled)",
"change.password.command.template": "configure\\nadmin ${username} password ${newPassword}\\nend\\nexit\\n",
"user.list.command": "show admin"
},
"exactMatch4Search": false,
"recordLimit4Search": null
}
sapm/deleteSapmAccount
GET
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/deleteSapmAccount/{dbId}
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/deleteSapmAccount/{dbId}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\r\n \"id\": \"53bcd137-7751-48ab-8fe3-4b9028d676df\"\r\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname}}/aioc-rest-web/rest/sc/sapm/deleteSapmAccount/{dbId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "53bcd137-7751-48ab-8fe3-4b9028d676df"
}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/deleteSapmAccount/{dbId}",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"id":"53bcd137-7751-48ab-8fe3-4b9028d676df"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
true404
{
"message": "Ain't no cake like that."
}
ListSapmConfigPropertyTypes
GET
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/getConfigPropertyTypes
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/getConfigPropertyTypes");
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/sc/sapm/getConfigPropertyTypes' \
--header 'Content-Type: application/json' \
--data-raw '{}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/getConfigPropertyTypes",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"password.strength.symbol.count": {
"key": "password.strength.symbol.count",
"predefinedValues": null,
"valueType": "INT",
"encryption": false
},
"ldap.domain": {
"key": "ldap.domain",
"predefinedValues": null,
"valueType": "STRING",
"encryption": false
},
"http.user.list.body": {
"key": "http.user.list.body",
"predefinedValues": null,
"valueType": "MULTI_LINE_TEXT",
"encryption": false
},
"change.password.with.domain": {
"key": "change.password.with.domain",
"predefinedValues": [
"true",
"false"
],
"valueType": "STRING",
"encryption": false
},
"http.check.password.headers": {
"key": "http.check.password.headers",
"predefinedValues": null,
"valueType": "MULTI_LINE_TEXT",
"encryption": false
},
"check.password.command.template": {
"key": "check.password.command.template",
"predefinedValues": null,
"valueType": "STRING",
"encryption": false
},
"change.password.after.session.login": {
"key": "change.password.after.session.login",
"predefinedValues": [
"true",
"false"
],
"valueType": "STRING",
"encryption": false
},
"http.check.password.method": {
"key": "http.check.password.method",
"predefinedValues": [
"GET",
"POST",
"PUT"
],
"valueType": "STRING",
"encryption": false
},
"http.delete.user.success.pattern": {
"key": "http.delete.user.success.pattern",
"predefinedValues": null,
"valueType": "STRING",
"encryption": false
}
}sapm/deleteSapmConfig
GET
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/deleteSapmConfig/{configId}
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/deleteSapmConfig/1622134");
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/sc/sapm/deleteSapmConfig/1622134' \
--header 'Content-Type: application/json' \
--data-raw '{}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/deleteSapmConfig/1622134",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
true404
{
"message": "Ain't no cake like that."
}sapm/showPassword
POST
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/showPassword
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/showPassword");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Cookie", "{{netrightCookie}}");
request.AddParameter("application/json", "{\"sapmUserName\":\"sapmtest\", \"password\":\"\", \"sapmDbId\":602167, \"sapmConfigId\":-1256593, \"passwordExpirationInMinute\":\"30m\", \"comment\":\"restTest\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname}}/aioc-rest-web/rest/sc/sapm/showPassword' \
--header 'Content-Type: application/json' \
--header 'Cookie: {{netrightCookie}}' \
--data-raw '{"sapmUserName":"sapmtest", "password":"", "sapmDbId":602167, "sapmConfigId":-1256593, "passwordExpirationInMinute":"30m", "comment":"restTest"}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/showPassword",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "{{netrightCookie}}"
},
"data": JSON.stringify({"sapmUserName":"sapmtest","password":"","sapmDbId":602167,"sapmConfigId":-1256593,"passwordExpirationInMinute":"30m","comment":"restTest"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"password": "ZWaMc08d",
"passwordPart": "FULL"
}ListSapmConfigs
POST
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/searchSapmConfigs
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/searchSapmConfigs");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
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 POST 'http://{{hostname}}/aioc-rest-web/rest/sc/sapm/searchSapmConfigs' \
--header 'Content-Type: application/json' \
--data-raw '{}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/searchSapmConfigs",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"configId": -9077,
"name": "Linux",
"description": "Linux",
"strategy": "SSH",
"properties": {
"new.user.found.action": "LOG",
"username.parser": "(.*?):.*",
"new.user.exception.list": "tcpdump,abc,xyz",
"change.password.command.template": "passwd\\n${oldPassword}\\n${newPassword}\\n${newPassword}\\nlogout",
"user.list.command": "cat /etc/passwd"
},
"exactMatch4Search": false,
"recordLimit4Search": null
}
]sapm/deleteRequest
DELETE
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/deleteRequest
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/deleteRequest");
client.Timeout = -1;
var request = new RestRequest(Method.DELETE);
request.AddHeader("Cookie", "{{netrightCookie}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\"id\":\"6c89648e-b971-4537-ae73-e89ebfd6e093\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request DELETE 'http://{{hostname}}/aioc-rest-web/rest/sc/sapm/deleteRequest' \
--header 'Cookie: {{netrightCookie}}' \
--header 'Content-Type: application/json' \
--data-raw '{"id":"6c89648e-b971-4537-ae73-e89ebfd6e093"}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/deleteRequest",
"method": "DELETE",
"timeout": 0,
"headers": {
"Cookie": "{{netrightCookie}}",
"Content-Type": "application/json"
},
"data": JSON.stringify({"id":"6c89648e-b971-4537-ae73-e89ebfd6e093"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
truesapm/createRequest
POST
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/createRequest
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/createRequest");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Cookie", "{{netrightCookie}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\"comment\":\"for ticket2212\", \"sapmDbId\":3927684, \"passwordExpirationInMinute\":\"30m\"} ", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname}}/aioc-rest-web/rest/sc/sapm/createRequest' \
--header 'Cookie: {{netrightCookie}}' \
--header 'Content-Type: application/json' \
--data-raw '{"comment":"for ticket2212", "sapmDbId":3927684, "passwordExpirationInMinute":"30m"} 'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/createRequest",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "{{netrightCookie}}",
"Content-Type": "application/json"
},
"data": JSON.stringify({"comment":"for ticket2212","sapmDbId":3927684,"passwordExpirationInMinute":"30m"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
Successsapm/verifySapmAccount
POST
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/verifySapmAccount
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/verifySapmAccount");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Cookie", "{{netrightCookie}}");
request.AddParameter("application/json", "{\"sapmUserName\":\"test\", \"password\":\"2DdMeB8y\", \"sapmDbId\":3927684, \"sapmConfigId\":-9077, \"deviceId\":\"186ef4bc-7c57-4261-8746-a91ea3f6dbbe\"} ", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname}}/aioc-rest-web/rest/sc/sapm/verifySapmAccount' \
--header 'Content-Type: application/json' \
--header 'Cookie: {{netrightCookie}}' \
--data-raw '{"sapmUserName":"test", "password":"2DdMeB8y", "sapmDbId":3927684, "sapmConfigId":-9077, "deviceId":"186ef4bc-7c57-4261-8746-a91ea3f6dbbe"} 'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/verifySapmAccount",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "{{netrightCookie}}"
},
"data": JSON.stringify({"sapmUserName":"test","password":"2DdMeB8y","sapmDbId":3927684,"sapmConfigId":-9077,"deviceId":"186ef4bc-7c57-4261-8746-a91ea3f6dbbe"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
Success500
Invalid credentialssapm/getMyRequests
GET
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/getMyRequests
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/getMyRequests");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Cookie", "{{netrightCookie}}");
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/sc/sapm/getMyRequests' \
--header 'Cookie: {{netrightCookie}}' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/getMyRequests",
"method": "GET",
"timeout": 0,
"headers": {
"Cookie": "{{netrightCookie}}",
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[]sapm/addSapmAccount
POST
http://{{hostname}}/aioc-rest-web/rest/sc/sapm/addSapmAccount
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/sc/sapm/addSapmAccount");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Cookie", " {{netrightCookie}} ");
request.AddParameter("application/json", "{\"sapmUserName\":\"test\", \"password\":\"12345\", \"sapmConfigId\":-9077, \"deviceId\":\"186ef4bc-7c57-4261-8746-a91ea3f6dbbe\", \"passwordChangePeriod\":\"5\", \"permissions\":{\"Administrators\":\"FULL_CONTROL\"}}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname}}/aioc-rest-web/rest/sc/sapm/addSapmAccount' \
--header 'Content-Type: application/json' \
--header 'Cookie: {{netrightCookie}} ' \
--data-raw '{"sapmUserName":"test", "password":"12345", "sapmConfigId":-9077, "deviceId":"186ef4bc-7c57-4261-8746-a91ea3f6dbbe", "passwordChangePeriod":"5", "permissions":{"Administrators":"FULL_CONTROL"}}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/sc/sapm/addSapmAccount",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": " {{netrightCookie}} "
},
"data": JSON.stringify({"sapmUserName":"test","password":"12345","sapmConfigId":-9077,"deviceId":"186ef4bc-7c57-4261-8746-a91ea3f6dbbe","passwordChangePeriod":"5","permissions":{"Administrators":"FULL_CONTROL"}}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"dbId": 4100844,
"device": {
"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": 3530178,
"elementTypePropertyValue": "NL",
"elementTypePropertyKey": "shell.terminal.output.new_line_char",
"elementTypePropertyType": null
},
{
"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": -328317181,
"elementTypePropertyValue": "^Are you sure.*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": -328315408,
"elementTypePropertyValue": "^Quit.*",
"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
},
{
"dbId": -328318769,
"elementTypePropertyValue": ".*(?i)password[:|>].*",
"elementTypePropertyKey": "enforcer.terminal.behaviour.exc_last_line_patterns",
"elementTypePropertyType": null
},
{
"dbId": -224107345,
"elementTypePropertyValue": "abort",
"elementTypePropertyKey": "enforcer.terminal.behaviour.ctrl_c",
"elementTypePropertyType": null
},
{
"dbId": -224107347,
"elementTypePropertyValue": ".*?(>|\\$|#|%)",
"elementTypePropertyKey": "enforcer.terminal.behaviour.prompt_pattern",
"elementTypePropertyType": null
}
]
},
"discoveryTime": 1613655393994,
"properties": {
"pseudoDevice": "true"
},
"deviceGroups": [
"ddf11064-b96e-4861-913b-d5841214fa4d"
],
"availability": null,
"currentMaintenanceWindow": null,
"interfaceName": null,
"nameManagementIp": "10.20.41.179-10.20.41.179",
"regionName": null,
"filterRecordLimit": null,
"filterSearchPhrase": null,
"filterGroupId": null,
"filterRoleGroupIds": null,
"filterOnlyUnassignedDevices": null,
"deviceGroupNames": null,
"portNum": null,
"pseudoDevice": true,
"domainController": null,
"discoverySource": null
},
"config": {
"configId": -9077,
"name": "Linux",
"description": "Linux",
"strategy": "SSH",
"properties": {
"new.user.found.action": "LOG",
"username.parser": "(.*?):.*",
"new.user.exception.list": "tcpdump,abc,xyz",
"change.password.command.template": "passwd\\n${oldPassword}\\n${newPassword}\\n${newPassword}\\nlogout",
"user.list.command": "cat /etc/passwd",
"check.password.validation": "true"
},
"exactMatch4Search": false,
"recordLimit4Search": null
},
"changePeriod": 7200,
"username": "test",
"password": "NtUT8GMNqLsW50eC+05Rzw==",
"previousPassword": "2VOjzutYJV/TtQXc4ukKxQ==",
"lastChangeTime": 1614558505599,
"nextChangeTime": 1614990505599,
"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": "05d 00h 00m"
}