Skip to content
Start here

Workers For Platforms

Workers For PlatformsDispatchNamespaces

resource cloudflare_workers_for_platforms_dispatch_namespace

required Expand Collapse
account_id: String

Identifier.

optional Expand Collapse
name?: String

The name of the dispatch namespace.

computed Expand Collapse
id: String

Name of the Workers for Platforms dispatch namespace.

namespace_name: String

Name of the Workers for Platforms dispatch namespace.

created_by: String

Identifier.

created_on: Time

When the script was created.

modified_by: String

Identifier.

modified_on: Time

When the script was last modified.

namespace_id: String

API Resource UUID tag.

script_count: Int64

The current number of scripts in this Dispatch Namespace.

trusted_workers: Bool

Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cf object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and request.cf is undefined. By default, Workers in a namespace are "untrusted".

cloudflare_workers_for_platforms_dispatch_namespace

resource "cloudflare_workers_for_platforms_dispatch_namespace" "example_workers_for_platforms_dispatch_namespace" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  name = "my-dispatch-namespace"
}

data cloudflare_workers_for_platforms_dispatch_namespace

required Expand Collapse
dispatch_namespace: String

Name of the Workers for Platforms dispatch namespace.

account_id: String

Identifier.

computed Expand Collapse
id: String

Name of the Workers for Platforms dispatch namespace.

created_by: String

Identifier.

created_on: Time

When the script was created.

modified_by: String

Identifier.

modified_on: Time

When the script was last modified.

namespace_id: String

API Resource UUID tag.

namespace_name: String

Name of the Workers for Platforms dispatch namespace.

script_count: Int64

The current number of scripts in this Dispatch Namespace.

trusted_workers: Bool

Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cf object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and request.cf is undefined. By default, Workers in a namespace are "untrusted".

cloudflare_workers_for_platforms_dispatch_namespace

data "cloudflare_workers_for_platforms_dispatch_namespace" "example_workers_for_platforms_dispatch_namespace" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  dispatch_namespace = "my-dispatch-namespace"
}

data cloudflare_workers_for_platforms_dispatch_namespaces

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

Name of the Workers for Platforms dispatch namespace.

created_by: String

Identifier.

created_on: Time

When the script was created.

modified_by: String

Identifier.

modified_on: Time

When the script was last modified.

namespace_id: String

API Resource UUID tag.

namespace_name: String

Name of the Workers for Platforms dispatch namespace.

script_count: Int64

The current number of scripts in this Dispatch Namespace.

trusted_workers: Bool

Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cf object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and request.cf is undefined. By default, Workers in a namespace are "untrusted".

cloudflare_workers_for_platforms_dispatch_namespaces

data "cloudflare_workers_for_platforms_dispatch_namespaces" "example_workers_for_platforms_dispatch_namespaces" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}