Skip to content

Commit

Permalink
make docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusso19 committed Dec 9, 2024
1 parent 1d90f26 commit 5bfc950
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions docs/resources/content_scanning_expression.md
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>
```

0 comments on commit 5bfc950

Please sign in to comment.