---
title: Workers For Platforms
---

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

# Workers For Platforms

#### Workers For PlatformsDispatchNamespaces

#### resource cloudflare\_workers\_for\_platforms\_dispatch\_namespace

##### required Expand Collapse

account\_id: String

Identifier.

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

##### optional Expand Collapse

name?: String

The name of the dispatch namespace.

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

##### computed Expand Collapse

id: String

Name of the Workers for Platforms dispatch namespace.

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

namespace\_name: String

Name of the Workers for Platforms dispatch namespace.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20namespace_name>)

created\_by: String

Identifier.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_by>)

created\_on: Time

When the script was created.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_on>)

modified\_by: String

Identifier.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified_by>)

modified\_on: Time

When the script was last modified.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified_on>)

namespace\_id: String

API Resource UUID tag.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20namespace_id>)

script\_count: Int64

The current number of scripts in this Dispatch Namespace.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20script_count>)

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”.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20trusted_workers>)

### cloudflare\_workers\_for\_platforms\_dispatch\_namespace

Terraform

HTTPTypeScriptPythonGoTerraform

```
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.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dispatch_namespace>)

account\_id: String

Identifier.

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

##### computed Expand Collapse

id: String

Name of the Workers for Platforms dispatch namespace.

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

created\_by: String

Identifier.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_by>)

created\_on: Time

When the script was created.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_on>)

modified\_by: String

Identifier.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified_by>)

modified\_on: Time

When the script was last modified.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified_on>)

namespace\_id: String

API Resource UUID tag.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20namespace_id>)

namespace\_name: String

Name of the Workers for Platforms dispatch namespace.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20namespace_name>)

script\_count: Int64

The current number of scripts in this Dispatch Namespace.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20script_count>)

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”.

[Link to this property](<#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20trusted_workers>)

### cloudflare\_workers\_for\_platforms\_dispatch\_namespace

Terraform

HTTPTypeScriptPythonGoTerraform

```
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.

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

Name of the Workers for Platforms dispatch namespace.

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

created\_by: String

Identifier.

<a href="#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created_by">Link to this property</a>

created\_on: Time

When the script was created.

<a href="#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created_on">Link to this property</a>

modified\_by: String

Identifier.

<a href="#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modified_by">Link to this property</a>

modified\_on: Time

When the script was last modified.

<a href="#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modified_on">Link to this property</a>

namespace\_id: String

API Resource UUID tag.

<a href="#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20namespace_id">Link to this property</a>

namespace\_name: String

Name of the Workers for Platforms dispatch namespace.

<a href="#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20namespace_name">Link to this property</a>

script\_count: Int64

The current number of scripts in this Dispatch Namespace.

<a href="#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20script_count">Link to this property</a>

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 <code>request.cf</code> object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and <code>request.cf</code> is undefined. By default, Workers in a namespace are “untrusted”.

<a href="#(resource)%20workers_for_platforms.dispatch.namespaces%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20trusted_workers">Link to this property</a>

</details>

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

### cloudflare\_workers\_for\_platforms\_dispatch\_namespaces

Terraform

HTTPTypeScriptPythonGoTerraform

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