Docs
Live demo
POST/api/v2/drift/runs/{id}/remedy

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

Path1 required of 1
idstringpathrequired

Drift run ID (UUID)

Request body application/json · DriftRemediationRequest

Remediation options

Optional3 fields
dry_runboolean

If true, only generate plan without applying

include_default_inheritedboolean

If true, include inherited/default findings in remediation

scopestring

Remediation scope filter (all findings or only default/inherited findings)

alldefault_inherited_only

Responses

200

OK

DriftRemediationResponse · 9 fields
terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
dry_runboolean
finding_idstring

Finding ID that was remediated

run_finding_idstring

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_idstring

Job ID for async remediation

messagestring
run_idstring

Run ID if remediating entire run

statusstring

Remediation status.

queuedcompletedfailedalready_in_syncrequires_explicit_single
202

Accepted

DriftRemediationResponse · 9 fields
terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
dry_runboolean
finding_idstring

Finding ID that was remediated

run_finding_idstring

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_idstring

Job ID for async remediation

messagestring
run_idstring

Run ID if remediating entire run

statusstring

Remediation status.

queuedcompletedfailedalready_in_syncrequires_explicit_single
409

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.

↑ ↓ to moveEnter to openEsc to close