--- page_title: "ona_security_policies Data Source - ona" subcategory: "Security and Secrets" description: |- Lists Ona security policies for an organization, optionally filtered by name search or explicit IDs. --- # ona_security_policies (Data Source) Lists Ona security policies for an organization, optionally filtered by name search or explicit IDs. For product context, see [Guardrails](https://ona.com/docs/ona/guardrails/overview) and [Organization policies](https://ona.com/docs/ona/organizations/policies/overview). ## Example Usage ```terraform data "ona_security_policies" "example" { organization_id = "00000000-0000-0000-0000-000000000000" search = "baseline" } ``` ## Schema ### Required - `organization_id` (String) Organization ID to list security policies for. ### Optional - `search` (String) Search string for filtering security policies by name. Omit to list policies without a name search filter. - `security_policy_ids` (Set of String) Security policy IDs to include. The API accepts at most 25 IDs. Omit to list policies without an ID filter. ### Read-Only - `policies` (Attributes List) Matching security policy summaries. (see [below for nested schema](#nestedatt--policies)) ### Nested Schema for `policies` Read-Only: - `created_at` (String) Time when the security policy was created. - `id` (String) Security policy ID. - `name` (String) Security policy name. - `organization_id` (String) Organization ID that owns the security policy. - `updated_at` (String) Time when the security policy was last updated.