Below is a sample JSON body that will create a device with transparent login type "Command string", defining a few su commands for which PAM will insert a password transparently during an SSH access session. The example also shows how to configure access methods and tags for the device.
{
"description":"RP RestApi test device",
"targetServerDescription1":"Linux",
"deviceAccessMethods":[
{
"port":"22",
"type":"SSH",
"customName":"",
"taskProperty":null
},
{
"port":"23",
"type":"Telnet",
"customName":"",
"taskProperty":null
}
],
"transparentLoginType":"Command string",
"transparentPrompts":{
"commandStrings":["su","su -","su root","su - root"],
"prompt":"Password:"
},
"deviceName":"rprestapidevice",
"domainName":"rprestapidevice.ca.com",
"os":"Linux",
"targetServerDescription2":"RPResttsdesc",
"typeAccess":"t",
"typePassword":"t",
"tags":[
"Linux",
"Provisioned"
]
}