DriftRun
DriftRun represents a drift detection run, including whether drift was detected and any associated updates.
Properties
idstring requiredThe unique identifier of the drift run.driftDetectedboolean requiredWhether drift was detected during the run.createdstring requiredThe timestamp when the drift run was created.statusenum requiredThe current status of the drift run. For a run started by a deployment, this is the deployment’s status. Otherwise it is derived from the state of the run’s refresh preview update:runningwhile the update is in progress, thensucceededorfailed. Canceled and timed-out updates reportfailed.Values:not-started— NotStarted- The work has been created but has not started yet.
accepted— Accepted- The work has been picked up for execution but has not started running yet.
running— Running- The work is executing.
failed— Failed- The work finished without completing successfully. Failures, timeouts, and cancellations are all reported as
failed, and there is no separate status for canceled work. This is a terminal status. succeeded— Succeeded- The work completed successfully. This is a terminal status.
skipped— Skipped- The work was dropped without ever running. Only deployments report this status. This is a terminal status.
deploymentIdstring optionalThe deployment identifier associated with the drift run.deploymentVersioninteger optionalThe deployment version associated with the drift run.- The update that performed drift detection.
- ↳
updateIdstring requiredThe unique identifier of the update. - ↳
resourceChangesmap[string]integer optionalA map of operation types to the count of resources affected. - ↳
modifiedstring requiredThe timestamp when the update was last modified. - ↳
statusenum requiredThe current status of the update, derived from its update state:runningwhile the update is in progress, thensucceededorfailed. Canceled and timed-out updates reportfailed.Values:not-started— NotStarted- The work has been created but has not started yet.
accepted— Accepted- The work has been picked up for execution but has not started running yet.
running— Running- The work is executing.
failed— Failed- The work finished without completing successfully. Failures, timeouts, and cancellations are all reported as
failed, and there is no separate status for canceled work. This is a terminal status. succeeded— Succeeded- The work completed successfully. This is a terminal status.
skipped— Skipped- The work was dropped without ever running. Only deployments report this status. This is a terminal status.
- The update that performed drift remediation.
- ↳
updateIdstring requiredThe unique identifier of the update. - ↳
resourceChangesmap[string]integer optionalA map of operation types to the count of resources affected. - ↳
modifiedstring requiredThe timestamp when the update was last modified. - ↳
statusenum requiredThe current status of the update, derived from its update state:runningwhile the update is in progress, thensucceededorfailed. Canceled and timed-out updates reportfailed.Values:not-started— NotStarted- The work has been created but has not started yet.
accepted— Accepted- The work has been picked up for execution but has not started running yet.
running— Running- The work is executing.
failed— Failed- The work finished without completing successfully. Failures, timeouts, and cancellations are all reported as
failed, and there is no separate status for canceled work. This is a terminal status. succeeded— Succeeded- The work completed successfully. This is a terminal status.
skipped— Skipped- The work was dropped without ever running. Only deployments report this status. This is a terminal status.