---
title: Leaked Credential Checks
---

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

# Leaked Credential Checks

#### resource cloudflare\_leaked\_credential\_check

##### required Expand Collapse

zone\_id: String

Defines an identifier.

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

##### optional Expand Collapse

enabled?: Bool

Determines whether or not Leaked Credential Checks are enabled.

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

### cloudflare\_leaked\_credential\_check

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_leaked_credential_check" "example_leaked_credential_check" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  enabled = true
}
```

#### data cloudflare\_leaked\_credential\_check

##### required Expand Collapse

zone\_id: String

Defines an identifier.

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

##### computed Expand Collapse

enabled: Bool

Determines whether or not Leaked Credential Checks are enabled.

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

### cloudflare\_leaked\_credential\_check

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_leaked_credential_check" "example_leaked_credential_check" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```

#### Leaked Credential ChecksDetections

#### resource cloudflare\_leaked\_credential\_check\_rule

##### required Expand Collapse

zone\_id: String

Defines an identifier.

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

##### optional Expand Collapse

password?: String

Defines ehe ruleset expression to use in matching the password in a request.

[Link to this property](<#(resource)%20leaked_credential_checks.detections%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20password>)

username?: String

Defines the ruleset expression to use in matching the username in a request.

[Link to this property](<#(resource)%20leaked_credential_checks.detections%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20username>)

##### computed Expand Collapse

id: String

Defines the unique ID for this custom detection.

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

### cloudflare\_leaked\_credential\_check\_rule

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_leaked_credential_check_rule" "example_leaked_credential_check_rule" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  password = "lookup_json_string(http.request.body.raw, \"secret\")"
  username = "lookup_json_string(http.request.body.raw, \"user\")"
}
```

#### data cloudflare\_leaked\_credential\_check\_rule

##### required Expand Collapse

detection\_id: String

Defines the unique ID for this custom detection.

[Link to this property](<#(resource)%20leaked_credential_checks.detections%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20detection_id>)

zone\_id: String

Defines an identifier.

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

##### computed Expand Collapse

id: String

Defines the unique ID for this custom detection.

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

password: String

Defines ehe ruleset expression to use in matching the password in a request.

[Link to this property](<#(resource)%20leaked_credential_checks.detections%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20password>)

username: String

Defines the ruleset expression to use in matching the username in a request.

[Link to this property](<#(resource)%20leaked_credential_checks.detections%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20username>)

### cloudflare\_leaked\_credential\_check\_rule

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_leaked_credential_check_rule" "example_leaked_credential_check_rule" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  detection_id = "18a14bafaa8eb1df04ce683ec18c765e"
}
```

#### data cloudflare\_leaked\_credential\_check\_rules

##### required Expand Collapse

zone\_id: String

Defines an identifier.

[Link to this property](<#(resource)%20leaked_credential_checks.detections%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)%20leaked_credential_checks.detections%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 custom detection.

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

password: String

Defines ehe ruleset expression to use in matching the password in a request.

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

username: String

Defines the ruleset expression to use in matching the username in a request.

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

</details>

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

### cloudflare\_leaked\_credential\_check\_rules

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_leaked_credential_check_rules" "example_leaked_credential_check_rules" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```