--- page_title: "ona_automations Data Source - ona" subcategory: "Integrations and Automation" description: |- Lists persistent Ona automations visible to the configured provider token. System-managed automations, such as Insights automations, are excluded by the Ona API. --- # ona_automations (Data Source) Lists persistent Ona automations visible to the configured provider token. System-managed automations, such as Insights automations, are excluded by the Ona API. For product context, see [Background automations](https://ona.com/docs/ona/automations/overview) and [Configure Automations](https://ona.com/docs/ona/automations/configure-automations). ## Example Usage ```terraform data "ona_automations" "enabled" { disabled = false creator_ids = [ "", ] } output "automation_names" { value = [for automation in data.ona_automations.enabled.automations : automation.name] } ``` ## Schema ### Optional - `automation_ids` (Set of String) Automation UUIDs to include. The API accepts at most 25 values. - `creator_ids` (Set of String) Creator user UUIDs to include. The API accepts at most 25 values. - `disabled` (Boolean) Filter by disabled state. Omit to include enabled and disabled automations. - `has_failed_execution_since` (String) RFC 3339 timestamp. Includes automations with a failed execution at or after this time. Do not combine with status_phases. - `search` (String) Case-insensitive search across automation name, description, and ID. Must not exceed 256 characters. - `status_phases` (Set of String) Latest execution phases to include: `pending`, `running`, `stopping`, `stopped`, `deleting`, `deleted`, or `completed`. Do not combine with has_failed_execution_since. ### Read-Only - `automations` (Attributes List) Matching automation summaries sorted by automation ID. (see [below for nested schema](#nestedatt--automations)) - `id` (String) Terraform data source ID. Always `automations`. ### Nested Schema for `automations` Read-Only: - `created_at` (String) Time when the automation was created, in RFC 3339 format. - `creator` (Attributes) Identity that created the automation. (see [below for nested schema](#nestedatt--automations--creator)) - `deleting` (Boolean) Whether graceful deletion is in progress. - `description` (String) Automation description. - `disabled` (Boolean) Whether automation starts are disabled. - `executor` (Attributes) Identity that executes the automation. (see [below for nested schema](#nestedatt--automations--executor)) - `id` (String) Automation ID. - `name` (String) Automation display name. - `updated_at` (String) Time when the automation was last updated, in RFC 3339 format. - `webhook_url` (String) Generated automation webhook URL. ### Nested Schema for `automations.creator` Read-Only: - `id` (String) Subject UUID. - `principal` (String) Subject principal type. ### Nested Schema for `automations.executor` Read-Only: - `id` (String) Subject UUID. - `principal` (String) Subject principal type.