PAM Admin looking to create target devices with group membership and was looking for an example.
PAM All Versions
Supplied the following successful example to our customer:
Use the following method:
POST /api.php/v1/devices.json
{
"description":"CreateDeviceAPI",
"deviceName":"devicename",
"domainName":"x.x.x.x",
"location":"Test",
"os":"Windows 2019",
"deviceAccessMethods":[
{"id": "5", "type": "RDP", "customName": "", "port": "3389"}
],
"deviceGroupMembershipIds":[####,####],
"typeAccess": "t",
"typePassword": "t",
"typeA2A": "f",
"provisionType": "Local"
}
Advised ->
You can get the deviceGroupMembershipIds -> by running the:
or to create new one: