---
title: Content Scanning
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/terraform)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Content Scanning

#### resource cloudflare\_content\_scanning

##### required Expand Collapse

zone\_id: String

Defines an identifier.

[Link to this property](<#(resource)%20content_scanning%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

value: String

The status value for Content Scanning.

[Link to this property](<#(resource)%20content_scanning%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20value>)

##### computed Expand Collapse

modified: String

Defines the last modification date (ISO 8601) of the Content Scanning status.

[Link to this property](<#(resource)%20content_scanning%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified>)

### cloudflare\_content\_scanning

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_content_scanning" "example_content_scanning" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  value = "enabled"
}
```

#### data cloudflare\_content\_scanning

##### required Expand Collapse

zone\_id: String

Defines an identifier.

[Link to this property](<#(resource)%20content_scanning%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

##### computed Expand Collapse

modified: String

Defines the last modification date (ISO 8601) of the Content Scanning status.

[Link to this property](<#(resource)%20content_scanning%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified>)

value: String

Defines the status of Content Scanning.

[Link to this property](<#(resource)%20content_scanning%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20value>)

### cloudflare\_content\_scanning

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_content_scanning" "example_content_scanning" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```

#### Content ScanningPayloads

#### resource cloudflare\_content\_scanning\_expression

##### required Expand Collapse

zone\_id: String

Defines an identifier.

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

<details>

<summary>

body: List\[Attributes]

</summary>

payload: String

Defines the custom content extraction expression used to reach content objects in the request.

<a href="#(resource)%20content_scanning.payloads%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20body%20%3E%20(attribute)%20payload">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20body>)

##### optional Expand Collapse

payload?: String

Defines the custom content extraction expression used to reach content objects in the request.

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20payload>)

##### computed Expand Collapse

id: String

Defines the unique ID for this Content Scanning custom expression.

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

### cloudflare\_content\_scanning\_expression

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_content_scanning_expression" "example_content_scanning_expression" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  body = [{
    payload = "lookup_json_string(http.request.body.raw, \"file\")"
  }]
}
```

#### data cloudflare\_content\_scanning\_expressions

##### required Expand Collapse

zone\_id: String

Defines an identifier.

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20zone_id>)

##### optional Expand Collapse

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Defines the unique ID for this Content Scanning custom expression.

<a href="#(resource)%20content_scanning.payloads%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

payload: String

Defines the custom content extraction expression used to reach content objects in the request.

<a href="#(resource)%20content_scanning.payloads%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20payload">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_content\_scanning\_expressions

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_content_scanning_expressions" "example_content_scanning_expressions" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```