Skip to content
Start here

Credential Sets

resource cloudflare_vulnerability_scanner_credential_set

required Expand Collapse
account_id: String

Identifier.

name: String

Human-readable name.

computed Expand Collapse
id: String

Credential set identifier.

cloudflare_vulnerability_scanner_credential_set

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
account_id: String

Identifier.

computed Expand Collapse
id: String
name: String

Human-readable name.

cloudflare_vulnerability_scanner_credential_set

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.

optional Expand Collapse
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

Credential set identifier.

name: String

Human-readable name.

cloudflare_vulnerability_scanner_credential_sets

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

Credential SetsCredentials

resource cloudflare_vulnerability_scanner_credential

required Expand Collapse
account_id: String

Identifier.

credential_set_id: String
location: String

Where the credential is attached in outgoing requests.

location_name: String

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

name: String

Human-readable name.

value: String

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

computed Expand Collapse
id: String

Credential identifier.

cloudflare_vulnerability_scanner_credential

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
account_id: String

Identifier.

credential_set_id: String
computed Expand Collapse
id: String
location: String

Where the credential is attached in outgoing requests.

location_name: String

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

name: String

Human-readable name.

cloudflare_vulnerability_scanner_credential

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.

credential_set_id: String
optional Expand Collapse
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

Credential identifier.

credential_set_id: String

Parent credential set identifier.

location: String

Where the credential is attached in outgoing requests.

location_name: String

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

name: String

Human-readable name.

cloudflare_vulnerability_scanner_credentials

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