ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Python sample script for PAM Rest API calls

book

Article ID: 224746

calendar_today

Updated On:

Products

CA Privileged Access Manager (PAM)

Issue/Introduction

We are looking for sample scripts using PAM Rest API resources from Python scripts.

Environment

Applies to any PAM implementation

Resolution

Attached is a Python sample script that creates a device, target application and target account using PAM Rest API calls. It also demonstrates getting cluster site info using a Rest API call.

Attachments

1632541114671__PAMRestAPIDemo.py get_app