---
title: fastly ngwaf workspace threshold create
summary: Create a workspace threshold
url: https://www.fastly.com/documentation/reference/cli/ngwaf/workspace/threshold/create
---

Create a workspace threshold

## Flags

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--action` | The action to take when the threshold is exceeded. [block, log] | Yes | - |
| `--do-not-notify` | Whether to silence notifications when action is taken. [true, false] | Yes | - |
| `--duration` | The duration the action is in place in seconds. Default duration is 86,400 seconds (1 day). | Yes | - |
| `--enabled` | Whether the threshold is active. [true, false] | Yes | - |
| `--interval` | The threshold interval in seconds. The default interval is 3600 seconds (1 hour). | Yes | - |
| `--limit` | The threshold limit. Input must be between 1 and 10000. Default limit is 10. | Yes | - |
| `--name` | User submitted display name of a signal threshold. Input must be between 3 and 50 characters | Yes | - |
| `--signal` | The name of the signal this threshold is acting on | Yes | - |
| `--workspace-id` | Alphanumeric string identifying the NGWAF Workspace (falls back to FASTLY_WORKSPACE_ID) | No | - |
| `--json` | Render output as JSON | No | - |

## Global options

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--help` | Show context-sensitive help. | No | - |
| `--accept-defaults` | Accept default options for all interactive prompts apart from Yes/No confirmations | No | - |
| `--auto-yes` | Answer yes automatically to all Yes/No confirmations. This may suppress security warnings | No | - |
| `--debug-mode` | Print API request and response details (NOTE: can disrupt the normal CLI flow output formatting) | No | - |
| `--non-interactive` | Do not prompt for user input - suitable for CI processes. Equivalent to --accept-defaults and --auto-yes | No | - |
| `--quiet` | Silence all output except direct command output. This won't prevent interactive prompts (see: --accept-defaults, --auto-yes, --non-interactive) | No | - |
| `--token` | Fastly API token, or name of a stored auth token (use 'default' for the default token). Falls back to FASTLY_API_TOKEN env var | No | - |
| `--verbose` | Verbose logging | No | - |

