Idira SCA API – Rescan Job Failures (/api/cloud/rescan)
Symptom
Issue / Details Calls to the Secure Cloud Access (SCA) rescan API endpoint (https://<subdomain>.sca.cyberark.cloud/api/cloud/rescan) intermittently return a Failure status. When this occurs, newly created cloud provider resources, roles, or workspaces are not synced to the SCA platform, preventing Just-In-Time (JIT) access policy creation.
Key symptoms observed:
-
API rescan jobs return
"status": "Failure"despite"already_running": falseappearing in the initial response payload. -
The API behaves inconsistently: identical rescan calls succeed at certain times but fail on consecutive triggers.
-
No explicit UI error is displayed, but backend job tracking shows job failure within minutes of execution.
Environment
26.7 Secure Cloud Access (SCA) Access Control Policy
Cause
Cause This issue occurs when a rescan API call is triggered while an existing scan operation is already actively running on the target cloud provider environment/workspaces (e.g., GCP, AWS, or Azure).
By design, Idira SCA does not support concurrent or parallel scans on the same cloud resources/workspaces. If a second scan is requested before an ongoing background scan completes, the orchestrator terminates the secondary job, marking it as a failure.
Note: In typical cloud environments, a complete rescan job takes approximately 7–8 minutes to finalize execution.
Resolution
Resolution To resolve and prevent rescan API failures:
-
Implement API Polling & Delays:
-
Do not trigger rapid consecutive calls to
/api/cloud/rescan. -
Ensure automation scripts wait for active jobs to complete (minimum 8-10 minute interval between rescan triggers on the same target workspace).
-
-
Verify Job Status Before Re-triggering:
-
Track the
job_idreturned by the initial rescan payload. -
Verify that the prior job status transitions to
Successbefore initiating a new scan request against the same workspace or account scope.
-