You are looking capture login transactions from each appliance (primary and secondary) via our API Integration.
To gather this information currently, you log into each appliance, download the full system logs and then filter on login transactions. You would like to just capture the login transactions from each appliance and generate a custom report with that data programmatically.
GET /api.php/v1/logs.json
Here you can key on the parameter of "Transaction type" with a value of "login" to capture all logins into a particular PAM Appliance.
For information on how to activate the Rest API and give permissions, see documentation page PAM External Rest API.