-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
page_title: "cloudflare_content_scanning_expression Resource - Cloudflare" | ||
subcategory: "" | ||
description: |- | ||
Provides a Cloudflare Content Scanning Expression resource for managing custom scan expression within a specific zone. | ||
--- | ||
|
||
# cloudflare_content_scanning_expression (Resource) | ||
|
||
Provides a Cloudflare Content Scanning Expression resource for managing custom scan expression within a specific zone. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Enable Content Scanning before trying to add custom scan expressions | ||
resource "cloudflare_content_scanning" "example" { | ||
zone_id = "399c6f4950c01a5a141b99ff7fbcbd8b" | ||
enabled = true | ||
} | ||
resource "cloudflare_content_scanning_expression" "first_example" { | ||
zone_id = cloudflare_content_scanning.example.zone_id | ||
payload = "lookup_json_string(http.request.body.raw, \"file\")" | ||
} | ||
resource "cloudflare_content_scanning_expression" "second_example" { | ||
zone_id = cloudflare_content_scanning.example.zone_id | ||
payload = "lookup_json_string(http.request.body.raw, \"document\")" | ||
} | ||
``` | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `payload` (String) Custom scan expression to tell the content scanner where to find the content objects. | ||
- `zone_id` (String) The zone identifier to target for the resource. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The identifier of this resource. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import cloudflare_content_scanning_expression.example <zone_id>/<resource_id> | ||
``` |