---
page_title: "Fastly: fastly_ngwaf_workspaces"
sidebar_current: "docs-fastly-datasource-fastly_ngwaf_workspaces"
description: |-
  Get information about Fastly Next-Gen WAF Workspaces.
---

# fastly_ngwaf_workspaces

Use this data source to get a list of [Fastly Next-Gen WAF Workspaces][1].

## Example Usage

```terraform
data "fastly_ngwaf_workspaces" "ngwaf_workspaces" {}

output "fastly_ngwaf_workspaces_all" {
  value = data.fastly_ngwaf_workspaces.workspaces
}

output "fastly_ngwaf_workspaces_filtered" {
  # get the workspace with the name "Example Workspace"
  value = one([for workspace in data.fastly_ngwaf_workspaces.workspaces.details : workspace.id if workspace.name == "Example Workspace"])
}
```

[1]: https://www.fastly.com/documentation/reference/api/ngwaf/workspaces/

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

### Read-Only

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

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

Read-Only:

- `id` (String)
- `name` (String)
