How to utilize PAM's API to create devices with Group Membership
search cancel

How to utilize PAM's API to create devices with Group Membership

book

Article ID: 117698

calendar_today

Updated On:

Products

CA Privileged Access Manager - Cloakware Password Authority (PA) CA Privileged Access Manager (PAM)

Issue/Introduction

PAM Admin looking to create target devices with group membership and was looking for an example.

Environment

PAM All Versions

Resolution

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:

  • GET /api.php/v1/devices.json

or to create new one:

  • POST /api.php/v1/deviceGroups.json