First, you will need to authenticate with the service account credentials to generate a Oauth2 token. Please see: ISPSS authentication prerequisites
Note: You will need to add the service account into SCAApiFullAccess role in Idira Identity for the service account to be able to call SCA APIs.
Once you have the token, you will need to send a POST request using it:
POST https://{{ispss_subdomain}}.sca.cyberark.cloud/api/policies/discovery
(Replace {{ispss_subdomain}} with your own subdomain)
You will need to include the following payload in body:
{ "csp": "AZURE", "organization_id": "ORG_ID", "account_info": { "id": "ACCT_ID", "new_account": false }} |
You'll want to adjust the following parameters in the payload:
- Replace the value in
cspto one of the following:AWS,GCP,AZURE - Replace the value with your own organization ID and account ID.
- Set
new_accountas True or False accordingly.
The expected response should be:
{ "status": 200, "job_id": "ded2f779-9868-499d-91ed-d5bf170f4582"} |
For more information on the API endpoint, please go to: SCA policy APIs