capabilities.work

Run a Scan and Poll to Completion

A 2-step recipe with Microsoft Purview. We can help you get access.

Recipe · 2 steps

Run a Scan and Poll to Completion

Launch a scan run and poll its history until it finishes.

  1. Launch the scan run using the supplied run GUID.
  2. Read the scan history and inspect the latest run's status. Loop back while the run is still Accepted or InProgress; end when it reaches a terminal state.
What you'll need to have ready
  • authorization: The OAuth2 bearer token value, e.g. "Bearer eyJ0...".
  • apiVersion: The Scanning API version.
  • dataSourceName: The name of the data source the scan belongs to.
  • scanName: The name of the scan to run.
  • runId: A caller-supplied GUID identifying this scan run.
For your developer

Arazzo workflow microsoft-purview:run-and-poll-scan, 2 operations: runScan → listScanHistory. Specs on APIs.io.