Trigger a drift detection scan via the InfraAudit API, poll for job completion, and list findings filtered by severity using curl.
This example triggers a drift detection scan, polls until the scan job completes, and retrieves findings. Drift detection compares your current infrastructure configuration against the captured baseline and surfaces any changes.