Skip to content
Start here

Target Environments

resource cloudflare_vulnerability_scanner_target_environment

required Expand Collapse
account_id: String

Identifier.

name: String

Human-readable name.

target: Attributes

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

type: String
zone_tag: String

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

optional Expand Collapse
description?: String

Optional description.

computed Expand Collapse
id: String

Target environment identifier.

cloudflare_vulnerability_scanner_target_environment

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

Identifier.

computed Expand Collapse
id: String
description: String

Optional description providing additional context.

name: String

Human-readable name.

target: Attributes

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

type: String
zone_tag: String

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

cloudflare_vulnerability_scanner_target_environment

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.

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

Target environment identifier.

name: String

Human-readable name.

target: Attributes

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

type: String
zone_tag: String

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

description: String

Optional description providing additional context.

cloudflare_vulnerability_scanner_target_environments

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