---
title: MoQ
---

[Skip to content](#%5Ftop) 

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

name: String

Human-readable name for the relay.

##### optional Expand Collapse 

config?: Attributes

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.

enabled?: Bool

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.

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.

##### computed Expand Collapse 

id: String

Server-generated unique identifier (32 hex chars).

uid: String

Server-generated unique identifier (32 hex chars).

created: Time

modified: Time

status: String

“connected” when active, omitted otherwise.

issuers: List\[Attributes\]

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

cloudflare\_tokens: List\[Attributes\]

Always present (\[\] when empty).

created: Time

expires: Time

Mandatory; no more than 1 year after `created`.

jti: String

Token identity and registry key (32 hex chars).

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.

label: String

Optional, customer-set.

secret: String

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

issuer: String

type: String

### cloudflare\_moq\_relay

Terraform

HTTPHTTP

TypeScriptTypeScript

PythonPython

GoGo

TerraformTerraform

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

##### optional Expand Collapse 

relay\_id?: String

filter?: Attributes

asc?: Bool

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

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

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

per\_page?: Int64

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

##### computed Expand Collapse 

id: String

created: Time

modified: Time

name: String

status: String

“connected” when active, omitted otherwise.

uid: String

config: Attributes

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.

enabled: Bool

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.

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.

### cloudflare\_moq\_relay

Terraform

HTTPHTTP

TypeScriptTypeScript

PythonPython

GoGo

TerraformTerraform

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

##### 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).

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

asc?: Bool

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

per\_page?: Int64

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

max\_items?: Int64

Max items to fetch, default: 1000

##### computed Expand Collapse 

result: List\[Attributes\]

The items returned by the data source

id: String

created: Time

modified: Time

name: String

uid: String

### cloudflare\_moq\_relays

Terraform

HTTPHTTP

TypeScriptTypeScript

PythonPython

GoGo

TerraformTerraform

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

```