---
page_title: "Fastly: fastly_ngwaf_workspace_rules"
sidebar_current: "docs-fastly-datasource-fastly_ngwaf_workspace_rules"
description: |-
  Get information about a Fastly Next-Gen WAF Rule for a workspace.
---

# fastly_ngwaf_workspace_rules

Use this data source to get a Fastly Next-Gen WAF Workspace Rule.

## Example Usage

```terraform
data "fastly_ngwaf_workspace_rules" "workspace_rules" {
  workspace_id = fastly_ngwaf_workspace.example.id
}

output "fastly_ngwaf_workspace_rules_all" {
  value = data.fastly_ngwaf_workspace_rules.workspace_rules
}
```


<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `workspace_id` (String) The ID of the workspace.

### Read-Only

- `id` (String) The ID of this resource.
- `rules` (List of Object) The list of rules. (see [below for nested schema](#nestedatt--rules))

<a id="nestedatt--rules"></a>
### Nested Schema for `rules`

Read-Only:

- `created_at` (String)
- `description` (String)
- `enabled` (Boolean)
- `id` (String)
- `type` (String)
- `updated_at` (String)
