---
layout: "fastly"
page_title: "Fastly: ngwaf_account_list"
sidebar_current: "docs-fastly-resource-ngwaf-account-list"
description: |-
  Provides a Fastly Next-Gen WAF Account-scoped List
---

# fastly_ngwaf_account_list

Provides a Fastly Next-Gen WAF **List** resource scoped to an **account**.

Account-scoped lists are reusable across all workspaces in the account and can be referenced in account-level or workspace-level rules.

## Example Usage

Basic usage:

```terraform
resource "fastly_ngwaf_account_list" "example" {
  name        = "shared-bot-ip-list"
  description = "Account list of known bot IPs shared across workspaces"
  type        = "ip"
  entries     = [
    "1.2.3.4",
    "5.6.7.8",
    "203.0.113.42"
  ]
}

# Example usage with a rule. 
resource "fastly_ngwaf_workspace_rule" "example" {
  workspace_id = fastly_ngwaf_workspace.example.id
  type = "request"
  description = "Example usage of a workspace list rule"
  enabled = true
  request_logging = "sampled"
  
  condition {
    field = "ip"
    operator = "not_in_list"
    # *********************************************
    # Account lists must be prefixed with 'corp.'
    # *********************************************
    value = "corp.${fastly_ngwaf_account_list.example.name}"
  }

  action {
    type = "block"
  }

  depends_on = [ fastly_ngwaf_account_list.example ]
}
```

## Import

Fastly Next-Gen WAF account-scoped lists can be imported using just the list ID, e.g.:

```sh
$ terraform import fastly_ngwaf_account_list.demo <listID>
```

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

### Required

- `entries` (List of String) The values in the list.
- `name` (String) The name of the list.
- `type` (String) The type of list. Accepted values are `string`, `wildcard`, `ip`, `country`, and `signal`.

### Optional

- `description` (String) The description of the list.

### Read-Only

- `applies_to` (List of String, Sensitive) INTERNAL: Used to build scope for account-scoped lists. Not user-configurable.
- `id` (String) The ID of this resource.
