---
title: Field Extractors
---

[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**

# Field Extractors

#### resource cloudflare\_field\_extractor

##### required Expand Collapse

extractor: String

Extractor type.

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

account\_id: String

Cloudflare account ID.

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

<details>

<summary>

rules: List\[Attributes]

</summary>

<details>

<summary>

fields: List\[Attributes]

</summary>

expression: String

<a href="#(resource)%20field_extractors%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20fields%20%3E%20(attribute)%20expression">Link to this property</a>

name: String

<a href="#(resource)%20field_extractors%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20fields%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20field_extractors%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20fields">Link to this property</a>

ref: String

<a href="#(resource)%20field_extractors%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20ref">Link to this property</a>

description?: String

<a href="#(resource)%20field_extractors%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20description">Link to this property</a>

</details>

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

##### computed Expand Collapse

id: String

Extractor type.

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

### cloudflare\_field\_extractor

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_field_extractor" "example_field_extractor" {
  account_id = "123456"
  extractor = "llm_prompts"
  rules = [{
    fields = [{
      expression = "x"
      name = "x"
    }]
    ref = "x"
    description = "description"
  }]
}
```

#### data cloudflare\_field\_extractor

##### required Expand Collapse

account\_id: String

Cloudflare account ID.

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

extractor: String

Extractor type.

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

##### computed Expand Collapse

<details>

<summary>

rules: List\[Attributes]

</summary>

<details>

<summary>

fields: List\[Attributes]

</summary>

expression: String

Wirefilter value expression.

<a href="#(resource)%20field_extractors%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20fields%20%3E%20(attribute)%20expression">Link to this property</a>

name: String

Field name.

<a href="#(resource)%20field_extractors%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20fields%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20field_extractors%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20fields">Link to this property</a>

ref: String

Stable rule identifier.

<a href="#(resource)%20field_extractors%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20ref">Link to this property</a>

description: String

Human-readable rule description.

<a href="#(resource)%20field_extractors%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20description">Link to this property</a>

</details>

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

### cloudflare\_field\_extractor

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_field_extractor" "example_field_extractor" {
  account_id = "123456"
  extractor = "llm_prompts"
}
```