---
title: Vulnerability Scanner
---

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

# Vulnerability Scanner

#### Vulnerability ScannerCredential Sets

#### resource cloudflare\_vulnerability\_scanner\_credential\_set

##### required Expand Collapse

account\_id: String

Identifier.

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

name: String

Human-readable name.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20name>)

##### computed Expand Collapse

id: String

Credential set identifier.

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

### cloudflare\_vulnerability\_scanner\_credential\_set

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_vulnerability_scanner_credential_set" "example_vulnerability_scanner_credential_set" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  name = "Production API credentials"
}
```

#### data cloudflare\_vulnerability\_scanner\_credential\_set

##### required Expand Collapse

credential\_set\_id: String

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20credential_set_id>)

account\_id: String

Identifier.

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

##### computed Expand Collapse

id: String

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

name: String

Human-readable name.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20name>)

### cloudflare\_vulnerability\_scanner\_credential\_set

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_vulnerability_scanner_credential_set" "example_vulnerability_scanner_credential_set" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  credential_set_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
```

#### data cloudflare\_vulnerability\_scanner\_credential\_sets

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets%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

Credential set identifier.

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

name: String

Human-readable name.

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

</details>

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

### cloudflare\_vulnerability\_scanner\_credential\_sets

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_vulnerability_scanner_credential_sets" "example_vulnerability_scanner_credential_sets" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```

#### Vulnerability ScannerCredential SetsCredentials

#### resource cloudflare\_vulnerability\_scanner\_credential

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

credential\_set\_id: String

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20credential_set_id>)

location: String

Where the credential is attached in outgoing requests.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20location>)

location\_name: String

Name of the header or cookie where the credential is attached.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20location_name>)

name: String

Human-readable name.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20name>)

value: String

The credential value (e.g. API key, session token). Write-only. Never returned in responses.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20value>)

##### computed Expand Collapse

id: String

Credential identifier.

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

### cloudflare\_vulnerability\_scanner\_credential

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_vulnerability_scanner_credential" "example_vulnerability_scanner_credential" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  credential_set_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
  location = "header"
  location_name = "Authorization"
  name = "Admin API key"
  value = "Bearer EXAMPLE_TOKEN"
}
```

#### data cloudflare\_vulnerability\_scanner\_credential

##### required Expand Collapse

credential\_id: String

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20credential_id>)

account\_id: String

Identifier.

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

credential\_set\_id: String

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20credential_set_id>)

##### computed Expand Collapse

id: String

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

location: String

Where the credential is attached in outgoing requests.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20location>)

location\_name: String

Name of the header or cookie where the credential is attached.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20location_name>)

name: String

Human-readable name.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20name>)

### cloudflare\_vulnerability\_scanner\_credential

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_vulnerability_scanner_credential" "example_vulnerability_scanner_credential" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  credential_set_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
  credential_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
```

#### data cloudflare\_vulnerability\_scanner\_credentials

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

credential\_set\_id: String

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20credential_set_id>)

##### optional Expand Collapse

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20vulnerability_scanner.credential_sets.credentials%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

Credential identifier.

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

credential\_set\_id: String

Parent credential set identifier.

<a href="#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20credential_set_id">Link to this property</a>

location: String

Where the credential is attached in outgoing requests.

<a href="#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20location">Link to this property</a>

location\_name: String

Name of the header or cookie where the credential is attached.

<a href="#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20location_name">Link to this property</a>

name: String

Human-readable name.

<a href="#(resource)%20vulnerability_scanner.credential_sets.credentials%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20name">Link to this property</a>

</details>

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

### cloudflare\_vulnerability\_scanner\_credentials

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_vulnerability_scanner_credentials" "example_vulnerability_scanner_credentials" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  credential_set_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
```

#### Vulnerability ScannerTarget Environments

#### resource cloudflare\_vulnerability\_scanner\_target\_environment

##### required Expand Collapse

account\_id: String

Identifier.

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

name: String

Human-readable name.

[Link to this property](<#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20name>)

<details>

<summary>

target: Attributes

Identifies the Cloudflare asset to scan. Uses a <code>type</code> discriminator. Currently the service supports only <code>zone</code> targets.

</summary>

type: String

<a href="#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20target%20%3E%20(attribute)%20type">Link to this property</a>

zone\_tag: String

Cloudflare zone tag. The zone must belong to the account.

<a href="#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20target%20%3E%20(attribute)%20zone_tag">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20target>)

##### optional Expand Collapse

description?: String

Optional description.

[Link to this property](<#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20description>)

##### computed Expand Collapse

id: String

Target environment identifier.

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

### cloudflare\_vulnerability\_scanner\_target\_environment

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_vulnerability_scanner_target_environment" "example_vulnerability_scanner_target_environment" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  name = "Production Zone"
  target = {
    type = "zone"
    zone_tag = "d8e8fca2dc0f896fd7cb4cb0031ba249"
  }
  description = "Main production environment"
}
```

#### data cloudflare\_vulnerability\_scanner\_target\_environment

##### required Expand Collapse

target\_environment\_id: String

[Link to this property](<#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20target_environment_id>)

account\_id: String

Identifier.

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

##### computed Expand Collapse

id: String

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

description: String

Optional description providing additional context.

[Link to this property](<#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20description>)

name: String

Human-readable name.

[Link to this property](<#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20name>)

<details>

<summary>

target: Attributes

Identifies the Cloudflare asset to scan. Uses a <code>type</code> discriminator. Currently the service supports only <code>zone</code> targets.

</summary>

type: String

<a href="#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20target%20%3E%20(attribute)%20type">Link to this property</a>

zone\_tag: String

Cloudflare zone tag. The zone must belong to the account.

<a href="#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20target%20%3E%20(attribute)%20zone_tag">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20target>)

### cloudflare\_vulnerability\_scanner\_target\_environment

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_vulnerability_scanner_target_environment" "example_vulnerability_scanner_target_environment" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  target_environment_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
```

#### data cloudflare\_vulnerability\_scanner\_target\_environments

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20vulnerability_scanner.target_environments%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

Target environment identifier.

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

name: String

Human-readable name.

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

<details>

<summary>

target: Attributes

Identifies the Cloudflare asset to scan. Uses a <code>type</code> discriminator. Currently the service supports only <code>zone</code> targets.

</summary>

type: String

<a href="#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20target%20%3E%20(attribute)%20type">Link to this property</a>

zone\_tag: String

Cloudflare zone tag. The zone must belong to the account.

<a href="#(resource)%20vulnerability_scanner.target_environments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20target%20%3E%20(attribute)%20zone_tag">Link to this property</a>

</details>

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

description: String

Optional description providing additional context.

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

</details>

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

### cloudflare\_vulnerability\_scanner\_target\_environments

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_vulnerability_scanner_target_environments" "example_vulnerability_scanner_target_environments" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```