Automation Versions

An AutomationVersion is an immutable revision of an Automation v2 graph. Each saved graph change creates a revision. Restoring a revision saves its definition as a new current revision and keeps existing runs and Run Automation nodes pinned to their selected revisions.

Data Source Schema

Required

PropertyDescription
id
Int64
Automation revision ID.

Read Only

PropertyDescription
automation_id
Int64
ID of the Automation that owns this revision.
workspace_id
Int64
Workspace that owns the Automation. Zero is the Default Workspace.
version
Int64
Revision number within the Automation.
created_at
String
Time the revision was saved.
user_id
Int64
ID of the user who saved the revision, when available.
username
String
Username recorded when the revision was saved, when available.
api_key_id
Int64
ID of the API key used to save the revision, when available.
definition
Object
Saved Automation v2 graph definition. Included when retrieving a single revision.

Example Data Source

data "files_automation_version" "example_automation_version" {
  id = 1
}