---
page_title: "Fastly: fastly_ngwaf_virtual_patches"
sidebar_current: "docs-fastly-datasource-fastly_ngwaf_virtual_patches"
description: |-
  Get information about Fastly Next-Gen WAF Virtual Patches.
---

# fastly_ngwaf_virtual_patches

Use this data source to get a list of [Fastly Next-Gen WAF Virtual Patches][1] for a given workspace.

## Example Usage

```terraform
data "fastly_ngwaf_virtual_patches" "list_patches" {
    workspace_id = fastly_ngwaf_workspace.test_virtual_patches_workspace.id
}

output "fastly_ngwaf_virtual_patches_all" {
  value = data.fastly_ngwaf_virtual_patches.list_patches
}
```

[1]: https://www.fastly.com/documentation/reference/api/ngwaf/virtual-patches/

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

### Required

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

### Read-Only

- `id` (String) The ID of this resource.
- `virtual_patches` (Set of Object) List of all virtual patches for a given workspace. (see [below for nested schema](#nestedatt--virtual_patches))

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

Read-Only:

- `enabled` (Boolean)
- `id` (String)
- `mode` (String)