Skip to content
Start here

Schemas

resource cloudflare_schema_validation_schemas

required Expand Collapse
zone_id: String

Identifier.

kind: String

The kind of the schema

name: String

A human-readable name for the schema

source: String

The raw schema, e.g., the OpenAPI schema, either as JSON or YAML

validation_enabled: Bool

An indicator if this schema is enabled

computed Expand Collapse
id: String

A unique identifier of this schema

schema_id: String

A unique identifier of this schema

created_at: Time

cloudflare_schema_validation_schemas

resource "cloudflare_schema_validation_schemas" "example_schema_validation_schemas" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  kind = "openapi_v3"
  name = "petstore schema"
  source = "<schema file contents>"
  validation_enabled = true
}

data cloudflare_schema_validation_schemas

required Expand Collapse
zone_id: String

Identifier.

optional Expand Collapse
schema_id?: String

UUID.

omit_source?: Bool

Omit the source-files of schemas and only retrieve their meta-data.

filter?: Attributes
validation_enabled?: Bool

Filter for enabled schemas

computed Expand Collapse
id: String

UUID.

created_at: Time
kind: String

The kind of the schema

name: String

A human-readable name for the schema

source: String

The raw schema, e.g., the OpenAPI schema, either as JSON or YAML

validation_enabled: Bool

An indicator if this schema is enabled

cloudflare_schema_validation_schemas

data "cloudflare_schema_validation_schemas" "example_schema_validation_schemas" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  schema_id = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415"
  omit_source = true
}

data cloudflare_schema_validation_schemas_list

required Expand Collapse
zone_id: String

Identifier.

optional Expand Collapse
validation_enabled?: Bool

Filter for enabled schemas

omit_source?: Bool

Omit the source-files of schemas and only retrieve their meta-data.

max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

A unique identifier of this schema

created_at: Time
kind: String

The kind of the schema

name: String

A human-readable name for the schema

schema_id: String

A unique identifier of this schema

source: String

The raw schema, e.g., the OpenAPI schema, either as JSON or YAML

validation_enabled: Bool

An indicator if this schema is enabled

cloudflare_schema_validation_schemas_list

data "cloudflare_schema_validation_schemas_list" "example_schema_validation_schemas_list" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  validation_enabled = true
}