Docs
Live demo
POST/api/v2/drift/check

Start a drift check job for the specified target/instance

Request body application/json · DriftCheckRequest

Drift check request

Required1 of 1 fields
instance_idstringrequired

Responses

202

Job queued successfully

DriftCheckResponse · 8 fields
terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

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

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
instance_idstringrequired
job_idstringrequired
messagestringrequired
run_idstringrequired
statusstring (entity.OperationLifecycle)required

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
409

Drift checks of the target are paused after failed runs (code target.operation_backoff_active, resolution upstream.check_connection). No drift run is created. A passing connection check after the last failure lets this request end the pause. Code operation.already_running: a drift check already runs on this target or waits for its next attempt. No drift run is created. 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.

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