Start a remediation job for all findings in a specific drift run
dry_run: true still returns 202 with a job_id holding the plan.
Parameters
Drift run ID (UUID)
Request body application/json · DriftRemediationRequest
Remediation options
If true, only generate plan without applying
If true, include inherited/default findings in remediation
Remediation scope filter (all findings or only default/inherited findings)
alldefault_inherited_only Responses
OK
DriftRemediationResponse · 9 fields
Final operation result, or null while the operation is active.
successfailurecancelledpartialFinding ID that was remediated
Run-scoped finding key "<run_id>_<finding_id>" of the remediated finding. Matches the run_finding_id of drift:run-finding live events for this job.
Job ID for async remediation
Run ID if remediating entire run
Remediation status.
queuedcompletedfailedalready_in_sync requires_explicit_single Accepted
DriftRemediationResponse · 9 fields
Final operation result, or null while the operation is active.
successfailurecancelledpartialFinding ID that was remediated
Run-scoped finding key "<run_id>_<finding_id>" of the remediated finding. Matches the run_finding_id of drift:run-finding live events for this job.
Job ID for async remediation
Run ID if remediating entire run
Remediation status.
queuedcompletedfailedalready_in_sync requires_explicit_single A later drift check of the target has completed, or target-level findings require explicit single-finding confirmation. policy.target_service_account_incomplete: the last check of the MariaDB target's service account found privileges missing (details.missing_privileges, details.recommended_sql). Nothing was queued. Code operation.already_running: a drift fix already runs on this target or waits for its next attempt. Nothing was queued. details.existing_job_id and resources (relation running_operation) name that job, details.started_at is when it was started, details.next_attempt_at when a job that waits between attempts tries again, and resolution.code operation.view_running opens it. The same request is accepted again after that job ends. A dry run is not refused.
Common errors: 400 401 403 404 413 429 503 504. They mean the same for every operation, see Errors.