REST API - How to save recording to playable AVI using REST API in Powershell

REST API - How to save recording to playable AVI using REST API in Powershell

119
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 15:55 PM


Objective


This 'Play recording' REST API call (https://docs.cyberark.com/pam-self-hosted/latest/en/content/webservices/playrecording.htm) when used in PowerShell returns a data stream.

This describes how to save this stream to a playable avi file.



Environment


11.5;12.2;12.6;13.0;13.2;14.0;14.2;14.3 Privilege Cloud Cyber-Ark API/SDK

Procedure


Invoke-RestMethod -URi "https://<pvwa URL>/PasswordVault/API/recordings/<recordingID>/Play/" -Method 'POST' -Headers $headers -Outfile "<file path>".

 

 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000z6vCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail