Idira SCA API – Rescan Job Failures (/api/cloud/rescan)

Idira SCA API – Rescan Job Failures (/api/cloud/rescan)

83
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:06 PM


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": false appearing 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:

  1. 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).

  2. Verify Job Status Before Re-triggering:

    • Track the job_id returned by the initial rescan payload.

    • Verify that the prior job status transitions to Success before initiating a new scan request against the same workspace or account scope.



Actions
  • Print
  • Copy Link

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