⚠️ Experimental — Lists Guild workflows in the organization. Each element has the same summary shape as data.sg_workflow. Tune limit / offset for pagination; latest_only defaults to true. Respects provider workspace_id for workspace scoping.
# When to use: List workflows in the org (paginate with limit/offset). Useful
# for CI checks that every expected playbook is approved.
data "sg_workflows" "latest" {
latest_only = true
include_drafts = false
limit = 50
}
output "workflow_names" {
value = [for w in data.sg_workflows.latest.workflows : w.name]
}
include_drafts (Boolean) When true, include draft-status workflows. Guild default for list is false.latest_only (Boolean) When true (default), return only the latest version per workflow name.limit (Number) Maximum workflows to return. When unset, the provider uses 100 (Guild client default is 10).offset (Number) Number of workflows to skip for pagination. Defaults to 0 when unset.workflows (Attributes List) Workflow summaries returned by the Guild API. (see below for nested schema)workflowsRead-Only:
description (String) Human-readable intent.domain (String) Business domain (e.g. incident-response).escalation_policy_ref (String) Escalation policy reference.evidence_checklist_ref (String) Name of the evidence checklist attached to the entire workflow (workflow-scoped).example_queries (List of String) Example prompts used to match this workflow.id (String) Server-assigned identifier.name (String) Unique workflow name.optional_inputs (List of String) Optional inputs.remediation_pattern_refs (List of String) Linked remediation pattern names.required_inputs (List of String) Inputs required to run this workflow.runbook_refs (List of String) Linked runbook names.status (String) Draft lifecycle status (draft, approved, etc.).tags (List of String) Classification tags.version (Number) Workflow definition version number.