HomeGuidesAPI Reference
CommunityWebsiteDocumentationExchangeSupportDeveloper
API Reference

Start a System Drift Check

Start an asynchronous drift check for a system. For a newly dispatched check, 202 returns a
persisted report and process ID without waiting for the provider's final result. Dispatch
and lock acquisition can take time; the worker may already have started or finished when
the response arrives. The response is a snapshot, not an execution verdict. Poll the detail
endpoint until status is completed or failed, then inspect driftSummary, statusMessage,
and ruleResults. Counts and the summary start as null; counts can remain null after a
terminal outcome without a usable result.

When an existing check is detected and its pending or running report is found, 202 returns
that report with msg: "Drift check already in progress" instead of dispatching a new check.
If the lock remains held but no report is visible after polling, driftReport and processId
are null. A visible report can also have a null process ID before process creation.

A per-system distributed lock coordinates dispatch, but concurrent POSTs are not an
idempotency guarantee: lock acquisition can wait, and racing requests can dispatch a
subsequent check after the first releases the lock. The lock expires after 30 minutes
without cancelling provider execution, so long-running checks can overlap. Do not retry
accepted starts blindly; poll the accepted report ID.

The worker calls the system provider's executeDriftChecker, passing options through
SystemRequest.configOptions.driftCheck. The provider must return its final result from
that call; there is no later callback. A failed provider response or a DriftState status
of FAILED, PENDING, or IN_PROGRESS produces a failed report and an errored process.
Partial rule results from a usable DriftState are preserved. Failures after acceptance
are recorded in the report, not returned as a later HTTP error. A successful provider
response without a usable DriftState produces status: completed, driftSummary: ERROR,
null counts, and statusMessage: "Drift check completed without returning a result payload".

/api/processes/{processId} provides supplementary tracking with separate permissions and
access checks. Process-bookkeeping failures do not invalidate a completed report.

Returns 400 when the body is not a JSON object, checkLevel is not a listed value
(case-insensitive), or a non-null driftRules / excludeDriftRules is not an array of strings.
Validation failures create no report. If the configured provider cannot be found in the
runtime plugin registry, returns 500, deletes the temporary pending report, and creates no
process. Other startup failures return 500 and can leave a failed report. An unknown system
or one belonging to another account returns 404.

Both /api and /api/v1 expose this endpoint.

Requires full permission on infrastructure-system.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int64
required

The ID of the System

Body Params

All fields are optional; an omitted body or empty object requests an ALL check.

string
enum
Defaults to ALL

Case-insensitive check level; defaults to ALL

Allowed:
driftRules
array of strings | null
Defaults to []

Provider-defined rule identifiers to run. Omitted or null means an empty array.
TARGETED does not require a nonempty array at the API layer; provider requirements
are separate from request validation.

driftRules
excludeDriftRules
array of strings | null
Defaults to []

Provider-defined rule identifiers to skip; omitted or null means an empty array

excludeDriftRules
Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json