SINGLE CONNECT
...
API Guide
Password Manager
6 min
{ "tab" "examples", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/searchsapmaccounts", "name" "list sapm accounts", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "hb4oyb2 1dpwo3qofjcm3", "code" "\[\n {\n \\"dbid\\" 968845,\n \\"device\\" {\n \\"dbid\\" 968823,\n \\"id\\" \\"53bcd137 7751 48ab 8fe3 4b9028d676df\\",\n \\"name\\" \\"10 xx xx xx\\",\n \\"accessprotocol\\" \\"sshv2\\",\n \\"managementip\\" \\"10 xx xx xx\\",\n \\"elementtype\\" {\n \\"dbid\\" 1256593,\n \\"elementtypeid\\" \\"linux\\",\n \\"elementtypename\\" \\"linux server\\",\n \\"vendor\\" null,\n \\"category\\" null,\n \\"elementtypeproperties\\" \[\n {\n \\"dbid\\" 328315408,\n \\"elementtypepropertyvalue\\" \\"^quit \\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour exc last line patterns\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 3530178,\n \\"elementtypepropertyvalue\\" \\"nl\\",\n \\"elementtypepropertykey\\" \\"shell terminal output new line char\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 328318769,\n \\"elementtypepropertyvalue\\" \\" (?i)password\[ |\>] \\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour exc last line patterns\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 328321729,\n \\"elementtypepropertyvalue\\" \\"^enter the date \\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour exc last line patterns\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 224107347,\n \\"elementtypepropertyvalue\\" \\" ?(\>|\\\\\\\\$|#|%)\\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour prompt pattern\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 224107346,\n \\"elementtypepropertyvalue\\" \\"do nothing\\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour ctrl z\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 328317181,\n \\"elementtypepropertyvalue\\" \\"^are you sure \\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour exc last line patterns\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 224107345,\n \\"elementtypepropertyvalue\\" \\"abort\\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour ctrl c\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 355141703,\n \\"elementtypepropertyvalue\\" \\"^select choice \\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour exc last line patterns\\",\n \\"elementtypepropertytype\\" null\n }\n ]\n },\n \\"discoverytime\\" 1611140918108,\n \\"properties\\" {\n \\"pseudodevice\\" \\"true\\"\n },\n \\"devicegroups\\" \[\n \\"b762a918 285e 41cb 8f28 8dea6a984293\\",\n \\"ddf11064 b96e 4861 913b d5841214fa4d\\"\n ],\n \\"availability\\" null,\n \\"currentmaintenancewindow\\" null,\n \\"interfacename\\" null,\n \\"namemanagementip\\" \\"10 xx xx xx 10 xx xx xx\\",\n \\"regionname\\" null,\n \\"filterrecordlimit\\" null,\n \\"filtersearchphrase\\" null,\n \\"filtergroupid\\" null,\n \\"filterrolegroupids\\" null,\n \\"filteronlyunassigneddevices\\" null,\n \\"devicegroupnames\\" null,\n \\"portnum\\" null,\n \\"pseudodevice\\" true,\n \\"domaincontroller\\" null,\n \\"discoverysource\\" null\n },\n \\"config\\" {\n \\"configid\\" 968854,\n \\"name\\" \\"linux sync identical\\",\n \\"description\\" null,\n \\"strategy\\" \\"ssh\\",\n \\"properties\\" {\n \\"change password success pattern\\" \\" successfully \\",\n \\"sync identical account password\\" \\"true\\",\n \\"new\ user found action\\" \\"log\\",\n \\"username parser\\" \\"( ?) \\",\n \\"change password command template\\" \\"passwd\\\\\\\n${oldpassword}\\\\\\\n${newpassword}\\\\\\\n${newpassword}\\\\\\\nlogout\\",\n \\"user list command\\" \\"cat /etc/passwd\\",\n \\"check password validation\\" \\"true\\"\n },\n \\"exactmatch4search\\" false,\n \\"recordlimit4search\\" null\n },\n \\"changeperiod\\" 1440,\n \\"username\\" \\"sapm sync\\",\n \\"password\\" \\"cc04b9nm7npryqjgpyr64g==\\",\n \\"previouspassword\\" \\"ymb6n5ska9jmyff08gswmg==\\",\n \\"lastchangetime\\" 1609846260123,\n \\"nextchangetime\\" 1614601440088,\n \\"nextchangetimestart4search\\" null,\n \\"nextchangetimeend4search\\" null,\n \\"passwordseenstatus\\" \\"unseen\\",\n \\"validationstatus\\" \\"unknown\\",\n \\"changestatus\\" null,\n \\"lastattemptstatus\\" false,\n \\"masteraccountid\\" null,\n \\"permissions\\" {},\n \\"identicalsapmaccounts\\" \[],\n \\"recordlimit4search\\" null,\n \\"validationstatus4search\\" null,\n \\"checkpermission4search\\" true,\n \\"exactmatch4search\\" false,\n \\"acceptedsapmconfiglist\\" null,\n \\"masteraccountid4search\\" null,\n \\"searchonlymasteraccounts\\" false,\n \\"searchonlyownregion\\" false,\n \\"deviceip4search\\" null,\n \\"secondpartseenusername\\" null,\n \\"firstpartseenusername\\" null,\n \\"errormessage\\" null,\n \\"successful\\" true,\n \\"changeperiodformatted\\" \\"01d 00h 00m\\"\n }\n]", "language" "200" } ], "selectedlanguageid" "hb4oyb2 1dpwo3qofjcm3" }, "examples" { "languages" \[ { "id" "38odth8apgp9tnjljbfaf", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/searchsapmaccounts\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method post);\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nrequest addparameter(\\"application/json\\", \\"{}\\", parametertype requestbody);\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "kmjukuozu1tp5ghzml0nq", "code" "curl location g request post 'http //{{hostname}}/aioc rest web/rest/sc/sapm/searchsapmaccounts' \\\\\n header 'content type application/json' \\\\\n data raw '{}'", "language" "curl" }, { "id" "rirop2rrpon7a0vgx oar", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/searchsapmaccounts\\",\r\n \\"method\\" \\"post\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"content type\\" \\"application/json\\"\r\n },\r\n \\"data\\" json stringify({}),\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" "38odth8apgp9tnjljbfaf" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/addsapmconfig", "name" "sapm/addsapmconfig", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "vhahavb48wydlwvxfuhgi", "code" "{\n \\"configid\\" null,\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 \\"exactmatch4search\\" false,\n \\"recordlimit4search\\" null\n}", "language" "200" } ], "selectedlanguageid" "vhahavb48wydlwvxfuhgi" }, "examples" { "languages" \[ { "id" "rjeozjy7fkmcbds 6cunm", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/addsapmconfig\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method post);\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nrequest 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);\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "s49i5t11ita 4vpwyehg2", "code" "curl location g request post 'http //{{hostname}}/aioc rest web/rest/sc/sapm/addsapmconfig' \\\\\n header 'content type application/json' \\\\\n data raw '{\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}'", "language" "curl" }, { "id" "yyq chvoohnvzkta1ldze", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/addsapmconfig\\",\r\n \\"method\\" \\"post\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"content type\\" \\"application/json\\"\r\n },\r\n \\"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\\"}}),\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" "rjeozjy7fkmcbds 6cunm" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "request", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/deletesapmaccount/{dbid}", "name" "sapm/deletesapmaccount", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "klq3q6k1wjjmtvhmweb7n", "code" "true", "language" "200" }, { "id" "sx86p5yqhkx69hatj 3dh", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n}", "language" "404" } ], "selectedlanguageid" "klq3q6k1wjjmtvhmweb7n" }, "examples" { "languages" \[ { "id" "qqtavn qjv1bwss6dunec", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/deletesapmaccount/{dbid}\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method get);\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nrequest addparameter(\\"application/json\\", \\"{\\\r\\\n \\\\\\"id\\\\\\" \\\\\\"53bcd137 7751 48ab 8fe3 4b9028d676df\\\\\\"\\\r\\\n}\\", parametertype requestbody);\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "0vyg3fevhv24qi6sdhdgc", "code" "curl location g request get 'http //{{hostname}}/aioc rest web/rest/sc/sapm/deletesapmaccount/{dbid}' \\\\\n header 'content type application/json' \\\\\n data raw '{\n \\"id\\" \\"53bcd137 7751 48ab 8fe3 4b9028d676df\\"\n}'", "language" "curl" }, { "id" "c0wyqii4t8lpcp2e nmze", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/deletesapmaccount/{dbid}\\",\r\n \\"method\\" \\"get\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"content type\\" \\"application/json\\"\r\n },\r\n \\"data\\" json stringify({\\"id\\" \\"53bcd137 7751 48ab 8fe3 4b9028d676df\\"}),\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" "qqtavn qjv1bwss6dunec" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/getconfigpropertytypes", "name" "listsapmconfigpropertytypes", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "21w3jjqte51xnf9mghiv2", "code" "{\n \\"password strength symbol count\\" {\n \\"key\\" \\"password strength symbol count\\",\n \\"predefinedvalues\\" null,\n \\"valuetype\\" \\"int\\",\n \\"encryption\\" false\n },\n \\"ldap domain\\" {\n \\"key\\" \\"ldap domain\\",\n \\"predefinedvalues\\" null,\n \\"valuetype\\" \\"string\\",\n \\"encryption\\" false\n },\n \\"http user list body\\" {\n \\"key\\" \\"http user list body\\",\n \\"predefinedvalues\\" null,\n \\"valuetype\\" \\"multi line text\\",\n \\"encryption\\" false\n },\n \\"change password with domain\\" {\n \\"key\\" \\"change password with domain\\",\n \\"predefinedvalues\\" \[\n \\"true\\",\n \\"false\\"\n ],\n \\"valuetype\\" \\"string\\",\n \\"encryption\\" false\n },\n \\"http check password headers\\" {\n \\"key\\" \\"http check password headers\\",\n \\"predefinedvalues\\" null,\n \\"valuetype\\" \\"multi line text\\",\n \\"encryption\\" false\n },\n \\"check password command template\\" {\n \\"key\\" \\"check password command template\\",\n \\"predefinedvalues\\" null,\n \\"valuetype\\" \\"string\\",\n \\"encryption\\" false\n },\n \\"change password after session login\\" {\n \\"key\\" \\"change password after session login\\",\n \\"predefinedvalues\\" \[\n \\"true\\",\n \\"false\\"\n ],\n \\"valuetype\\" \\"string\\",\n \\"encryption\\" false\n },\n \\"http check password method\\" {\n \\"key\\" \\"http check password method\\",\n \\"predefinedvalues\\" \[\n \\"get\\",\n \\"post\\",\n \\"put\\"\n ],\n \\"valuetype\\" \\"string\\",\n \\"encryption\\" false\n },\n \\"http delete user success pattern\\" {\n \\"key\\" \\"http delete user success pattern\\",\n \\"predefinedvalues\\" null,\n \\"valuetype\\" \\"string\\",\n \\"encryption\\" false\n }\n}", "language" "200" } ], "selectedlanguageid" "21w3jjqte51xnf9mghiv2" }, "examples" { "languages" \[ { "id" "sroi8aodpu25tpzgxjftx", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/getconfigpropertytypes\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method get);\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nrequest addparameter(\\"application/json\\", \\"{}\\", parametertype requestbody);\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "hljyplb gh9lihtbsnlzy", "code" "curl location g request get 'http //{{hostname}}/aioc rest web/rest/sc/sapm/getconfigpropertytypes' \\\\\n header 'content type application/json' \\\\\n data raw '{}'", "language" "curl" }, { "id" "blrgmbyet8vgojv6nnzrb", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/getconfigpropertytypes\\",\r\n \\"method\\" \\"get\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"content type\\" \\"application/json\\"\r\n },\r\n \\"data\\" json stringify({}),\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" "sroi8aodpu25tpzgxjftx" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/deletesapmconfig/{configid}", "name" "sapm/deletesapmconfig", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "smyqrnukb7dpcasn554uf", "code" "true", "language" "200" }, { "id" "blumhuwmjehfhldmlt5fv", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n}", "language" "404" } ], "selectedlanguageid" "smyqrnukb7dpcasn554uf" }, "examples" { "languages" \[ { "id" "i6abbrv48r3mwshkfjmuz", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/deletesapmconfig/1622134\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method get);\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nrequest addparameter(\\"application/json\\", \\"{}\\", parametertype requestbody);\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "nszn2daxf0ekvalzkcruk", "code" "curl location g request get 'http //{{hostname}}/aioc rest web/rest/sc/sapm/deletesapmconfig/1622134' \\\\\n header 'content type application/json' \\\\\n data raw '{}'", "language" "curl" }, { "id" "u5dj655gpvv3ldfpuljv9", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/deletesapmconfig/1622134\\",\r\n \\"method\\" \\"get\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"content type\\" \\"application/json\\"\r\n },\r\n \\"data\\" json stringify({}),\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" "i6abbrv48r3mwshkfjmuz" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/showpassword", "name" "sapm/showpassword", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "aowkhg4bdoyd2w8lppg58", "code" "{\n \\"password\\" \\"zwamc08d\\",\n \\"passwordpart\\" \\"full\\"\n}", "language" "200" } ], "selectedlanguageid" "aowkhg4bdoyd2w8lppg58" }, "examples" { "languages" \[ { "id" "wypiqj gyvbymtonqmlpp", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/showpassword\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method post);\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nrequest addheader(\\"cookie\\", \\"{{netrightcookie}}\\");\r\nrequest addparameter(\\"application/json\\", \\"{\\\\\\"sapmusername\\\\\\" \\\\\\"sapmtest\\\\\\", \\\\\\"password\\\\\\" \\\\\\"\\\\\\", \\\\\\"sapmdbid\\\\\\" 602167, \\\\\\"sapmconfigid\\\\\\" 1256593, \\\\\\"passwordexpirationinminute\\\\\\" \\\\\\"30m\\\\\\", \\\\\\"comment\\\\\\" \\\\\\"resttest\\\\\\"}\\", parametertype requestbody);\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "tqcjkqroyn0h746b76szh", "code" "curl location g request post 'http //{{hostname}}/aioc rest web/rest/sc/sapm/showpassword' \\\\\n header 'content type application/json' \\\\\n header 'cookie {{netrightcookie}}' \\\\\n data raw '{\\"sapmusername\\" \\"sapmtest\\", \\"password\\" \\"\\", \\"sapmdbid\\" 602167, \\"sapmconfigid\\" 1256593, \\"passwordexpirationinminute\\" \\"30m\\", \\"comment\\" \\"resttest\\"}'", "language" "curl" }, { "id" "jspj0jgc3fpsgdwob ccf", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/showpassword\\",\r\n \\"method\\" \\"post\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"content type\\" \\"application/json\\",\r\n \\"cookie\\" \\"{{netrightcookie}}\\"\r\n },\r\n \\"data\\" json stringify({\\"sapmusername\\" \\"sapmtest\\",\\"password\\" \\"\\",\\"sapmdbid\\" 602167,\\"sapmconfigid\\" 1256593,\\"passwordexpirationinminute\\" \\"30m\\",\\"comment\\" \\"resttest\\"}),\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" "wypiqj gyvbymtonqmlpp" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/searchsapmconfigs", "name" "listsapmconfigs", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "vaosuwvuozkmrkq6hwv7k", "code" "\[\n {\n \\"configid\\" 9077,\n \\"name\\" \\"linux\\",\n \\"description\\" \\"linux\\",\n \\"strategy\\" \\"ssh\\",\n \\"properties\\" {\n \\"new\ user found action\\" \\"log\\",\n \\"username parser\\" \\"( ?) \\",\n \\"new\ user exception list\\" \\"tcpdump,abc,xyz\\",\n \\"change password command template\\" \\"passwd\\\\\\\n${oldpassword}\\\\\\\n${newpassword}\\\\\\\n${newpassword}\\\\\\\nlogout\\",\n \\"user list command\\" \\"cat /etc/passwd\\"\n },\n \\"exactmatch4search\\" false,\n \\"recordlimit4search\\" null\n }\n]", "language" "200" } ], "selectedlanguageid" "vaosuwvuozkmrkq6hwv7k" }, "examples" { "languages" \[ { "id" "o7d1afq80d62ulxgb szp", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/searchsapmconfigs\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method post);\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nrequest addparameter(\\"application/json\\", \\"{}\\", parametertype requestbody);\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "ecy7bzexr17ga8rt v0je", "code" "curl location g request post 'http //{{hostname}}/aioc rest web/rest/sc/sapm/searchsapmconfigs' \\\\\n header 'content type application/json' \\\\\n data raw '{}'", "language" "curl" }, { "id" "b0pwr9xy4xskuk7ksqj5r", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/searchsapmconfigs\\",\r\n \\"method\\" \\"post\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"content type\\" \\"application/json\\"\r\n },\r\n \\"data\\" json stringify({}),\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" "o7d1afq80d62ulxgb szp" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/deleterequest", "name" "sapm/deleterequest", "method" "delete", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "n0nb75wkybkichcztnkhg", "code" "true", "language" "200" } ], "selectedlanguageid" "n0nb75wkybkichcztnkhg" }, "examples" { "languages" \[ { "id" "igikycogpv6d0ajfpm5tp", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/deleterequest\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method delete);\r\nrequest addheader(\\"cookie\\", \\"{{netrightcookie}}\\");\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nrequest addparameter(\\"application/json\\", \\"{\\\\\\"id\\\\\\" \\\\\\"6c89648e b971 4537 ae73 e89ebfd6e093\\\\\\"}\\", parametertype requestbody);\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "skpg8vks2bey54 6pddmg", "code" "curl location g request delete 'http //{{hostname}}/aioc rest web/rest/sc/sapm/deleterequest' \\\\\n header 'cookie {{netrightcookie}}' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"id\\" \\"6c89648e b971 4537 ae73 e89ebfd6e093\\"}'", "language" "curl" }, { "id" "rpkjidejfjf jjektyo1j", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/deleterequest\\",\r\n \\"method\\" \\"delete\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"cookie\\" \\"{{netrightcookie}}\\",\r\n \\"content type\\" \\"application/json\\"\r\n },\r\n \\"data\\" json stringify({\\"id\\" \\"6c89648e b971 4537 ae73 e89ebfd6e093\\"}),\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" "igikycogpv6d0ajfpm5tp" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/createrequest", "name" "sapm/createrequest", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "jrhgjpjkztho7zcxf2tma", "code" "success", "language" "200" } ], "selectedlanguageid" "jrhgjpjkztho7zcxf2tma" }, "examples" { "languages" \[ { "id" "xbnb1fka5ngp dtvypxcm", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/createrequest\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method post);\r\nrequest addheader(\\"cookie\\", \\"{{netrightcookie}}\\");\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nrequest addparameter(\\"application/json\\", \\"{\\\\\\"comment\\\\\\" \\\\\\"for ticket2212\\\\\\", \\\\\\"sapmdbid\\\\\\" 3927684, \\\\\\"passwordexpirationinminute\\\\\\" \\\\\\"30m\\\\\\"} \\", parametertype requestbody);\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "yi6enorzw4mqmv9c2a4oj", "code" "curl location g request post 'http //{{hostname}}/aioc rest web/rest/sc/sapm/createrequest' \\\\\n header 'cookie {{netrightcookie}}' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"comment\\" \\"for ticket2212\\", \\"sapmdbid\\" 3927684, \\"passwordexpirationinminute\\" \\"30m\\"} '", "language" "curl" }, { "id" "norvldyux moa nvaout ", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/createrequest\\",\r\n \\"method\\" \\"post\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"cookie\\" \\"{{netrightcookie}}\\",\r\n \\"content type\\" \\"application/json\\"\r\n },\r\n \\"data\\" json stringify({\\"comment\\" \\"for ticket2212\\",\\"sapmdbid\\" 3927684,\\"passwordexpirationinminute\\" \\"30m\\"}),\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" "xbnb1fka5ngp dtvypxcm" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/verifysapmaccount", "name" "sapm/verifysapmaccount", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "k hiubzcuhuj5cxp60sef", "code" "success", "language" "200" }, { "id" "ovgoakfbdf 4emiwqalmv", "code" "invalid credentials", "language" "500" } ], "selectedlanguageid" "k hiubzcuhuj5cxp60sef" }, "examples" { "languages" \[ { "id" "3dovjhyewfs79iffz1amf", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/verifysapmaccount\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method post);\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nrequest addheader(\\"cookie\\", \\"{{netrightcookie}}\\");\r\nrequest addparameter(\\"application/json\\", \\"{\\\\\\"sapmusername\\\\\\" \\\\\\"test\\\\\\", \\\\\\"password\\\\\\" \\\\\\"2ddmeb8y\\\\\\", \\\\\\"sapmdbid\\\\\\" 3927684, \\\\\\"sapmconfigid\\\\\\" 9077, \\\\\\"deviceid\\\\\\" \\\\\\"186ef4bc 7c57 4261 8746 a91ea3f6dbbe\\\\\\"} \\", parametertype requestbody);\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "nb8ez7j6mz0fgnzyn1vs8", "code" "curl location g request post 'http //{{hostname}}/aioc rest web/rest/sc/sapm/verifysapmaccount' \\\\\n header 'content type application/json' \\\\\n header 'cookie {{netrightcookie}}' \\\\\n data raw '{\\"sapmusername\\" \\"test\\", \\"password\\" \\"2ddmeb8y\\", \\"sapmdbid\\" 3927684, \\"sapmconfigid\\" 9077, \\"deviceid\\" \\"186ef4bc 7c57 4261 8746 a91ea3f6dbbe\\"} '", "language" "curl" }, { "id" "wzg6l onxibsodk xfsrr", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/verifysapmaccount\\",\r\n \\"method\\" \\"post\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"content type\\" \\"application/json\\",\r\n \\"cookie\\" \\"{{netrightcookie}}\\"\r\n },\r\n \\"data\\" json stringify({\\"sapmusername\\" \\"test\\",\\"password\\" \\"2ddmeb8y\\",\\"sapmdbid\\" 3927684,\\"sapmconfigid\\" 9077,\\"deviceid\\" \\"186ef4bc 7c57 4261 8746 a91ea3f6dbbe\\"}),\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" "3dovjhyewfs79iffz1amf" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/getmyrequests", "name" "sapm/getmyrequests", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "y9o vyzjak0fctugx wmh", "code" "\[]", "language" "200" } ], "selectedlanguageid" "y9o vyzjak0fctugx wmh" }, "examples" { "languages" \[ { "id" "joupqhqutxsyy0qnqqewk", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/getmyrequests\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method get);\r\nrequest addheader(\\"cookie\\", \\"{{netrightcookie}}\\");\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "92qldozoatnwhbc4u00ld", "code" "curl location g request get 'http //{{hostname}}/aioc rest web/rest/sc/sapm/getmyrequests' \\\\\n header 'cookie {{netrightcookie}}' \\\\\n header 'content type application/json'", "language" "curl" }, { "id" "ezdlkwp6x2ja5kbb3jhyo", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/getmyrequests\\",\r\n \\"method\\" \\"get\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"cookie\\" \\"{{netrightcookie}}\\",\r\n \\"content type\\" \\"application/json\\"\r\n },\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" "joupqhqutxsyy0qnqqewk" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "http //{{hostname}}/aioc rest web/rest/sc/sapm/addsapmaccount", "name" "sapm/addsapmaccount", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "tw1ipkp iurmltjdojjel", "code" "{\n \\"dbid\\" 4100844,\n \\"device\\" {\n \\"dbid\\" 2511587,\n \\"id\\" \\"186ef4bc 7c57 4261 8746 a91ea3f6dbbe\\",\n \\"name\\" \\"10 xx xx xx\\",\n \\"accessprotocol\\" \\"sshv2\\",\n \\"managementip\\" \\"10 xx xx xx\\",\n \\"elementtype\\" {\n \\"dbid\\" 1256593,\n \\"elementtypeid\\" \\"linux\\",\n \\"elementtypename\\" \\"linux server\\",\n \\"vendor\\" null,\n \\"category\\" null,\n \\"elementtypeproperties\\" \[\n {\n \\"dbid\\" 3530178,\n \\"elementtypepropertyvalue\\" \\"nl\\",\n \\"elementtypepropertykey\\" \\"shell terminal output new line char\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 224107346,\n \\"elementtypepropertyvalue\\" \\"do nothing\\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour ctrl z\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 328321729,\n \\"elementtypepropertyvalue\\" \\"^enter the date \\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour exc last line patterns\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 328317181,\n \\"elementtypepropertyvalue\\" \\"^are you sure \\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour exc last line patterns\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 328315408,\n \\"elementtypepropertyvalue\\" \\"^quit \\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour exc last line patterns\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 355141703,\n \\"elementtypepropertyvalue\\" \\"^select choice \\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour exc last line patterns\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 328318769,\n \\"elementtypepropertyvalue\\" \\" (?i)password\[ |\>] \\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour exc last line patterns\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 224107345,\n \\"elementtypepropertyvalue\\" \\"abort\\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour ctrl c\\",\n \\"elementtypepropertytype\\" null\n },\n {\n \\"dbid\\" 224107347,\n \\"elementtypepropertyvalue\\" \\" ?(\>|\\\\\\\\$|#|%)\\",\n \\"elementtypepropertykey\\" \\"enforcer terminal behaviour prompt pattern\\",\n \\"elementtypepropertytype\\" null\n }\n ]\n },\n \\"discoverytime\\" 1613655393994,\n \\"properties\\" {\n \\"pseudodevice\\" \\"true\\"\n },\n \\"devicegroups\\" \[\n \\"ddf11064 b96e 4861 913b d5841214fa4d\\"\n ],\n \\"availability\\" null,\n \\"currentmaintenancewindow\\" null,\n \\"interfacename\\" null,\n \\"namemanagementip\\" \\"10 20 41 179 10 20 41 179\\",\n \\"regionname\\" null,\n \\"filterrecordlimit\\" null,\n \\"filtersearchphrase\\" null,\n \\"filtergroupid\\" null,\n \\"filterrolegroupids\\" null,\n \\"filteronlyunassigneddevices\\" null,\n \\"devicegroupnames\\" null,\n \\"portnum\\" null,\n \\"pseudodevice\\" true,\n \\"domaincontroller\\" null,\n \\"discoverysource\\" null\n },\n \\"config\\" {\n \\"configid\\" 9077,\n \\"name\\" \\"linux\\",\n \\"description\\" \\"linux\\",\n \\"strategy\\" \\"ssh\\",\n \\"properties\\" {\n \\"new\ user found action\\" \\"log\\",\n \\"username parser\\" \\"( ?) \\",\n \\"new\ user exception list\\" \\"tcpdump,abc,xyz\\",\n \\"change password command template\\" \\"passwd\\\\\\\n${oldpassword}\\\\\\\n${newpassword}\\\\\\\n${newpassword}\\\\\\\nlogout\\",\n \\"user list command\\" \\"cat /etc/passwd\\",\n \\"check password validation\\" \\"true\\"\n },\n \\"exactmatch4search\\" false,\n \\"recordlimit4search\\" null\n },\n \\"changeperiod\\" 7200,\n \\"username\\" \\"test\\",\n \\"password\\" \\"ntut8gmnqlsw50ec+05rzw==\\",\n \\"previouspassword\\" \\"2vojzutyjv/ttqxc4ukkxq==\\",\n \\"lastchangetime\\" 1614558505599,\n \\"nextchangetime\\" 1614990505599,\n \\"nextchangetimestart4search\\" null,\n \\"nextchangetimeend4search\\" null,\n \\"passwordseenstatus\\" \\"unseen\\",\n \\"validationstatus\\" \\"valid\\",\n \\"changestatus\\" null,\n \\"lastattemptstatus\\" true,\n \\"masteraccountid\\" null,\n \\"permissions\\" {},\n \\"identicalsapmaccounts\\" \[],\n \\"recordlimit4search\\" null,\n \\"validationstatus4search\\" null,\n \\"checkpermission4search\\" true,\n \\"exactmatch4search\\" false,\n \\"acceptedsapmconfiglist\\" null,\n \\"masteraccountid4search\\" null,\n \\"searchonlymasteraccounts\\" false,\n \\"searchonlyownregion\\" false,\n \\"deviceip4search\\" null,\n \\"secondpartseenusername\\" null,\n \\"firstpartseenusername\\" null,\n \\"errormessage\\" null,\n \\"successful\\" true,\n \\"changeperiodformatted\\" \\"05d 00h 00m\\"\n}", "language" "200" } ], "selectedlanguageid" "tw1ipkp iurmltjdojjel" }, "examples" { "languages" \[ { "id" " 89iqf5cl3gkqdhsro8sn", "code" "var client = new restclient(\\"http //{{hostname}}/aioc rest web/rest/sc/sapm/addsapmaccount\\");\r\nclient timeout = 1;\r\nvar request = new restrequest(method post);\r\nrequest addheader(\\"content type\\", \\"application/json\\");\r\nrequest addheader(\\"cookie\\", \\" {{netrightcookie}} \\");\r\nrequest addparameter(\\"application/json\\", \\"{\\\\\\"sapmusername\\\\\\" \\\\\\"test\\\\\\", \\\\\\"password\\\\\\" \\\\\\"12345\\\\\\", \\\\\\"sapmconfigid\\\\\\" 9077, \\\\\\"deviceid\\\\\\" \\\\\\"186ef4bc 7c57 4261 8746 a91ea3f6dbbe\\\\\\", \\\\\\"passwordchangeperiod\\\\\\" \\\\\\"5\\\\\\", \\\\\\"permissions\\\\\\" {\\\\\\"administrators\\\\\\" \\\\\\"full control\\\\\\"}}\\", parametertype requestbody);\r\nirestresponse response = client execute(request);\r\nconsole writeline(response content);", "language" "csharp" }, { "id" "sd82ytojmo7icjbq 8ywt", "code" "curl location g request post 'http //{{hostname}}/aioc rest web/rest/sc/sapm/addsapmaccount' \\\\\n header 'content type application/json' \\\\\n header 'cookie {{netrightcookie}} ' \\\\\n data raw '{\\"sapmusername\\" \\"test\\", \\"password\\" \\"12345\\", \\"sapmconfigid\\" 9077, \\"deviceid\\" \\"186ef4bc 7c57 4261 8746 a91ea3f6dbbe\\", \\"passwordchangeperiod\\" \\"5\\", \\"permissions\\" {\\"administrators\\" \\"full control\\"}}'", "language" "curl" }, { "id" "ldpzk6j7vcbiz3qwg2omk", "code" "var settings = {\r\n \\"url\\" \\"http //{{hostname}}/aioc rest web/rest/sc/sapm/addsapmaccount\\",\r\n \\"method\\" \\"post\\",\r\n \\"timeout\\" 0,\r\n \\"headers\\" {\r\n \\"content type\\" \\"application/json\\",\r\n \\"cookie\\" \\" {{netrightcookie}} \\"\r\n },\r\n \\"data\\" json stringify({\\"sapmusername\\" \\"test\\",\\"password\\" \\"12345\\",\\"sapmconfigid\\" 9077,\\"deviceid\\" \\"186ef4bc 7c57 4261 8746 a91ea3f6dbbe\\",\\"passwordchangeperiod\\" \\"5\\",\\"permissions\\" {\\"administrators\\" \\"full control\\"}}),\r\n};\r\n\r\n$ ajax(settings) done(function (response) {\r\n console log(response);\r\n});", "language" "javascript" } ], "selectedlanguageid" " 89iqf5cl3gkqdhsro8sn" }, "description" " ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }