---
title: Logs
---

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

# Logs

#### LogsControlRetention

#### resource cloudflare\_logpull\_retention

##### required Expand Collapse

zone\_id: String

Identifier.

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

##### optional Expand Collapse

flag?: Bool

The log retention flag for Logpull API.

[Link to this property](<#(resource)%20logs.control.retention%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20flag>)

##### computed Expand Collapse

id: String

Identifier.

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

### cloudflare\_logpull\_retention

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_logpull_retention" "example_logpull_retention" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  flag = true
}
```

#### data cloudflare\_logpull\_retention

##### required Expand Collapse

zone\_id: String

Identifier.

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

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20logs.control.retention%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

flag: Bool

The log retention flag for Logpull API.

[Link to this property](<#(resource)%20logs.control.retention%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20flag>)

### cloudflare\_logpull\_retention

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_logpull_retention" "example_logpull_retention" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```