---
title: MoQ
---

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

# MoQ

#### MoQRelays

#### resource cloudflare\_moq\_relay

##### required Expand Collapse

account\_id: String

Cloudflare account identifier.

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

name: String

Human-readable name for the relay.

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

##### optional Expand Collapse

<details>

<summary>

config?: Attributes

</summary>

<details>

<summary>

upstreams?: Attributes

Upstreams are external MOQT server publishers that a relay falls back to when it has no local publisher for a requested namespace/track.

</summary>

enabled?: Bool

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20config%20%3E%20(attribute)%20upstreams%20%3E%20(attribute)%20enabled">Link to this property</a>

<details>

<summary>

upstreams?: List\[Attributes]

Ordered list of upstream MOQT server publishers. Each entry is an object (not a bare string) so per-upstream configuration can be added in the future without another breaking change.

</summary>

url: String

Upstream MOQT server publisher URL. Must be an absolute URL with a host and a scheme the relay can dial: moqt:// (raw QUIC) or https:// (WebTransport). Validated on update (PUT); rejected with 21013.

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20config%20%3E%20(attribute)%20upstreams%20%3E%20(attribute)%20upstreams%20%3E%20(attribute)%20url">Link to this property</a>

</details>

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20config%20%3E%20(attribute)%20upstreams%20%3E%20(attribute)%20upstreams">Link to this property</a>

</details>

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20config%20%3E%20(attribute)%20upstreams">Link to this property</a>

</details>

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20config>)

##### computed Expand Collapse

id: String

Server-generated unique identifier (32 hex chars).

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

uid: String

Server-generated unique identifier (32 hex chars).

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20uid>)

created: Time

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created>)

modified: Time

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified>)

status: String

“connected” when active, omitted otherwise.

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20status>)

<details>

<summary>

issuers: List\[Attributes]

Token collection (discriminated union on <code>type</code>). On create this holds the auto-created default pair, each including its one-time secret.

</summary>

<details>

<summary>

cloudflare\_tokens: List\[Attributes]

Always present (\[] when empty).

</summary>

created: Time

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20issuers%20%3E%20(attribute)%20cloudflare_tokens%20%3E%20(attribute)%20created">Link to this property</a>

expires: Time

Mandatory; no more than 1 year after <code>created</code>.

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20issuers%20%3E%20(attribute)%20cloudflare_tokens%20%3E%20(attribute)%20expires">Link to this property</a>

jti: String

Token identity and registry key (32 hex chars).

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20issuers%20%3E%20(attribute)%20cloudflare_tokens%20%3E%20(attribute)%20jti">Link to this property</a>

operations: List\[String]

Signed allowlist of what the token may do. V1 coarse roles; the array form extends to fine-grained MoQT message names later without a breaking change.

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20issuers%20%3E%20(attribute)%20cloudflare_tokens%20%3E%20(attribute)%20operations">Link to this property</a>

label: String

Optional, customer-set.

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20issuers%20%3E%20(attribute)%20cloudflare_tokens%20%3E%20(attribute)%20label">Link to this property</a>

secret: String

The signed JWT. Present ONLY in create / auto-create responses (shown once); never returned by list, never stored.

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20issuers%20%3E%20(attribute)%20cloudflare_tokens%20%3E%20(attribute)%20secret">Link to this property</a>

</details>

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20issuers%20%3E%20(attribute)%20cloudflare_tokens">Link to this property</a>

issuer: String

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20issuers%20%3E%20(attribute)%20issuer">Link to this property</a>

type: String

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20issuers%20%3E%20(attribute)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20issuers>)

### cloudflare\_moq\_relay

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_moq_relay" "example_moq_relay" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  name = "Production Live Stream"
}
```

#### data cloudflare\_moq\_relay

##### required Expand Collapse

account\_id: String

Cloudflare account identifier.

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

##### optional Expand Collapse

relay\_id?: String

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20relay_id>)

<details>

<summary>

filter?: Attributes

</summary>

asc?: Bool

Sort order by <code>created</code>. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20asc">Link to this property</a>

created\_after?: Time

Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the <code>created</code> value of the last item on the current page, to fetch the next page).

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20created_after">Link to this property</a>

created\_before?: Time

Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the <code>created</code> value of the first item on the current page, to fetch the previous page).

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20created_before">Link to this property</a>

per\_page?: Int64

Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20per_page">Link to this property</a>

</details>

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter>)

##### computed Expand Collapse

id: String

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

created: Time

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created>)

modified: Time

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified>)

name: String

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20name>)

status: String

“connected” when active, omitted otherwise.

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20status>)

uid: String

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20uid>)

<details>

<summary>

config: Attributes

</summary>

<details>

<summary>

upstreams: Attributes

Upstreams are external MOQT server publishers that a relay falls back to when it has no local publisher for a requested namespace/track.

</summary>

enabled: Bool

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20config%20%3E%20(attribute)%20upstreams%20%3E%20(attribute)%20enabled">Link to this property</a>

<details>

<summary>

upstreams: List\[Attributes]

Ordered list of upstream MOQT server publishers. Each entry is an object (not a bare string) so per-upstream configuration can be added in the future without another breaking change.

</summary>

url: String

Upstream MOQT server publisher URL. Must be an absolute URL with a host and a scheme the relay can dial: moqt:// (raw QUIC) or https:// (WebTransport). Validated on update (PUT); rejected with 21013.

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20config%20%3E%20(attribute)%20upstreams%20%3E%20(attribute)%20upstreams%20%3E%20(attribute)%20url">Link to this property</a>

</details>

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20config%20%3E%20(attribute)%20upstreams%20%3E%20(attribute)%20upstreams">Link to this property</a>

</details>

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20config%20%3E%20(attribute)%20upstreams">Link to this property</a>

</details>

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20config>)

### cloudflare\_moq\_relay

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_moq_relay" "example_moq_relay" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  relay_id = "a1b2c3d4e5f67890a1b2c3d4e5f67890"
}
```

#### data cloudflare\_moq\_relays

##### required Expand Collapse

account\_id: String

Cloudflare account identifier.

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

created\_after?: Time

Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the `created` value of the last item on the current page, to fetch the next page).

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20created_after>)

created\_before?: Time

Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the `created` value of the first item on the current page, to fetch the previous page).

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20created_before>)

asc?: Bool

Sort order by `created`. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20asc>)

per\_page?: Int64

Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.

[Link to this property](<#(resource)%20moq.relays%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20per_page>)

max\_items?: Int64

Max items to fetch, default: 1000

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

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

created: Time

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created">Link to this property</a>

modified: Time

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modified">Link to this property</a>

name: String

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20name">Link to this property</a>

uid: String

<a href="#(resource)%20moq.relays%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20uid">Link to this property</a>

</details>

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

### cloudflare\_moq\_relays

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_moq_relays" "example_moq_relays" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  created_after = "2026-03-27T15:00:00Z"
  created_before = "2026-03-27T15:00:00Z"
}
```