---
title: AI Gateway
---

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

# AI Gateway

#### resource cloudflare\_ai\_gateway

##### required Expand Collapse

id: String

Unique identifier of the AI Gateway within the account.

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

account\_id: String

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

cache\_invalidate\_on\_update: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20cache_invalidate_on_update>)

cache\_ttl: Int64

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20cache_ttl>)

collect\_logs: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20collect_logs>)

rate\_limiting\_interval: Int64

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20rate_limiting_interval>)

rate\_limiting\_limit: Int64

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20rate_limiting_limit>)

##### optional Expand Collapse

logpush\_public\_key?: String

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20logpush_public_key>)

rate\_limiting\_technique?: String

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20rate_limiting_technique>)

retry\_backoff?: String

Backoff strategy for retry delays

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20retry_backoff>)

retry\_delay?: Int64

Delay between retry attempts in milliseconds (0-60000)

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20retry_delay>)

retry\_max\_attempts?: Int64

Maximum number of retry attempts for failed requests (1-5)

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20retry_max_attempts>)

<details>

<summary>

dlp?: Attributes

</summary>

action?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20action">Link to this property</a>

enabled: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20enabled">Link to this property</a>

profiles?: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20profiles">Link to this property</a>

<details>

<summary>

policies?: List\[Attributes]

</summary>

id: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20id">Link to this property</a>

action: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20action">Link to this property</a>

check: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20check">Link to this property</a>

enabled: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20enabled">Link to this property</a>

profiles: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20profiles">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20dlp>)

<details>

<summary>

guardrails?: Attributes

</summary>

<details>

<summary>

prompt: Attributes

</summary>

p1?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20p1">Link to this property</a>

s1?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s1">Link to this property</a>

s10?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s10">Link to this property</a>

s11?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s11">Link to this property</a>

s12?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s12">Link to this property</a>

s13?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s13">Link to this property</a>

s2?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s2">Link to this property</a>

s3?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s3">Link to this property</a>

s4?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s4">Link to this property</a>

s5?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s5">Link to this property</a>

s6?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s6">Link to this property</a>

s7?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s7">Link to this property</a>

s8?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s8">Link to this property</a>

s9?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s9">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt">Link to this property</a>

<details>

<summary>

response: Attributes

</summary>

p1?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20p1">Link to this property</a>

s1?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s1">Link to this property</a>

s10?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s10">Link to this property</a>

s11?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s11">Link to this property</a>

s12?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s12">Link to this property</a>

s13?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s13">Link to this property</a>

s2?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s2">Link to this property</a>

s3?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s3">Link to this property</a>

s4?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s4">Link to this property</a>

s5?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s5">Link to this property</a>

s6?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s6">Link to this property</a>

s7?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s7">Link to this property</a>

s8?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s8">Link to this property</a>

s9?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s9">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20guardrails>)

<details>

<summary>

stripe?: Attributes

</summary>

authorization: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20stripe%20%3E%20(attribute)%20authorization">Link to this property</a>

<details>

<summary>

usage\_events: List\[Attributes]

</summary>

payload: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20stripe%20%3E%20(attribute)%20usage_events%20%3E%20(attribute)%20payload">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20stripe%20%3E%20(attribute)%20usage_events">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20stripe>)

authentication?: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20authentication>)

byok\_only?: Bool

Requires customer-provided provider credentials and prevents fallback to Unified Billing.

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20byok_only>)

log\_classification?: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20log_classification>)

log\_management?: Int64

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20log_management>)

log\_management\_strategy?: String

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20log_management_strategy>)

logpush?: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20logpush>)

store\_id?: String

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20store_id>)

workers\_ai\_billing\_mode?: String

Controls how Workers AI inference calls routed through this gateway are billed. ‘postpaid’ bills the account directly through Workers AI; ‘unified’ deducts credits via AI Gateway using neuron-based pricing and delegates billing to AI Gateway.

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20workers_ai_billing_mode>)

zdr?: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zdr>)

<details>

<summary>

otel?: List\[Attributes]

</summary>

headers: Map\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20headers">Link to this property</a>

url: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20url">Link to this property</a>

authorization?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20authorization">Link to this property</a>

content\_type?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20content_type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20otel>)

<details>

<summary>

spend\_limits?: Attributes

</summary>

enabled?: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20enabled">Link to this property</a>

<details>

<summary>

rules?: List\[Attributes]

</summary>

limit: Float64

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20limit">Link to this property</a>

limit\_type: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20limit_type">Link to this property</a>

window: Int64

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20window">Link to this property</a>

id?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20id">Link to this property</a>

enabled?: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20enabled">Link to this property</a>

<details>

<summary>

metadata?: Map\[Attributes]

</summary>

mode: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20mode">Link to this property</a>

values?: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20metadata">Link to this property</a>

<details>

<summary>

model?: Attributes

</summary>

mode: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20model%20%3E%20(attribute)%20mode">Link to this property</a>

values: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20model%20%3E%20(attribute)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20model">Link to this property</a>

<details>

<summary>

ai\_gateway\_provider?: Attributes

</summary>

mode: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20ai_gateway_provider%20%3E%20(attribute)%20mode">Link to this property</a>

values: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20ai_gateway_provider%20%3E%20(attribute)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20ai_gateway_provider">Link to this property</a>

technique?: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20technique">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20spend_limits>)

##### computed Expand Collapse

created\_at: Time

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_at>)

is\_default: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20is_default>)

modified\_at: Time

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified_at>)

### cloudflare\_ai\_gateway

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_ai_gateway" "example_ai_gateway" {
  account_id = "3ebbcb006d4d46d7bb6a8c7f14676cb0"
  id = "my-gateway"
  cache_invalidate_on_update = true
  cache_ttl = 0
  collect_logs = true
  rate_limiting_interval = 0
  rate_limiting_limit = 0
  authentication = true
  byok_only = true
  dlp = {
    action = "BLOCK"
    enabled = true
    profiles = ["string"]
  }
  guardrails = {
    prompt = {
      p1 = "FLAG"
      s1 = "FLAG"
      s10 = "FLAG"
      s11 = "FLAG"
      s12 = "FLAG"
      s13 = "FLAG"
      s2 = "FLAG"
      s3 = "FLAG"
      s4 = "FLAG"
      s5 = "FLAG"
      s6 = "FLAG"
      s7 = "FLAG"
      s8 = "FLAG"
      s9 = "FLAG"
    }
    response = {
      p1 = "FLAG"
      s1 = "FLAG"
      s10 = "FLAG"
      s11 = "FLAG"
      s12 = "FLAG"
      s13 = "FLAG"
      s2 = "FLAG"
      s3 = "FLAG"
      s4 = "FLAG"
      s5 = "FLAG"
      s6 = "FLAG"
      s7 = "FLAG"
      s8 = "FLAG"
      s9 = "FLAG"
    }
  }
  log_classification = true
  log_management = 10000
  log_management_strategy = "STOP_INSERTING"
  logpush = true
  logpush_public_key = "xxxxxxxxxxxxxxxx"
  otel = [{
    headers = {
      foo = "string"
    }
    url = "https://example.com"
    authorization = "authorization"
    content_type = "json"
  }]
  rate_limiting_technique = "fixed"
  retry_backoff = "constant"
  retry_delay = 0
  retry_max_attempts = 1
  spend_limits = {
    enabled = true
    rules = [{
      limit = 1
      limit_type = "cost"
      window = 1
      id = "x"
      enabled = true
      metadata = {
        foo = {
          mode = "partition"
        }
      }
      model = {
        mode = "filter"
        values = ["string"]
      }
      ai_gateway_provider = {
        mode = "filter"
        values = ["string"]
      }
      technique = "fixed"
    }]
  }
  store_id = "store_id"
  stripe = {
    authorization = "authorization"
    usage_events = [{
      payload = "payload"
    }]
  }
  workers_ai_billing_mode = "postpaid"
  zdr = true
}
```

#### data cloudflare\_ai\_gateway

##### required Expand Collapse

account\_id: String

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

##### optional Expand Collapse

id?: String

Unique identifier of the AI Gateway within the account.

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

<details>

<summary>

filter?: Attributes

</summary>

search?: String

Search by id

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

</details>

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

##### computed Expand Collapse

authentication: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20authentication>)

byok\_only: Bool

Requires customer-provided provider credentials and prevents fallback to Unified Billing.

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20byok_only>)

cache\_invalidate\_on\_update: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20cache_invalidate_on_update>)

cache\_ttl: Int64

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20cache_ttl>)

collect\_logs: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20collect_logs>)

created\_at: Time

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_at>)

is\_default: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20is_default>)

log\_classification: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20log_classification>)

log\_management: Int64

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20log_management>)

log\_management\_strategy: String

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20log_management_strategy>)

logpush: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20logpush>)

logpush\_public\_key: String

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20logpush_public_key>)

modified\_at: Time

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified_at>)

rate\_limiting\_interval: Int64

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20rate_limiting_interval>)

rate\_limiting\_limit: Int64

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20rate_limiting_limit>)

rate\_limiting\_technique: String

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20rate_limiting_technique>)

retry\_backoff: String

Backoff strategy for retry delays

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20retry_backoff>)

retry\_delay: Int64

Delay between retry attempts in milliseconds (0-60000)

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20retry_delay>)

retry\_max\_attempts: Int64

Maximum number of retry attempts for failed requests (1-5)

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20retry_max_attempts>)

store\_id: String

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20store_id>)

workers\_ai\_billing\_mode: String

Controls how Workers AI inference calls routed through this gateway are billed. ‘postpaid’ bills the account directly through Workers AI; ‘unified’ deducts credits via AI Gateway using neuron-based pricing and delegates billing to AI Gateway.

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20workers_ai_billing_mode>)

zdr: Bool

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zdr>)

<details>

<summary>

dlp: Attributes

</summary>

action: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20action">Link to this property</a>

enabled: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20enabled">Link to this property</a>

profiles: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20profiles">Link to this property</a>

<details>

<summary>

policies: List\[Attributes]

</summary>

id: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20id">Link to this property</a>

action: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20action">Link to this property</a>

check: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20check">Link to this property</a>

enabled: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20enabled">Link to this property</a>

profiles: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20profiles">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dlp>)

<details>

<summary>

guardrails: Attributes

</summary>

<details>

<summary>

prompt: Attributes

</summary>

p1: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20p1">Link to this property</a>

s1: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s1">Link to this property</a>

s10: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s10">Link to this property</a>

s11: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s11">Link to this property</a>

s12: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s12">Link to this property</a>

s13: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s13">Link to this property</a>

s2: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s2">Link to this property</a>

s3: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s3">Link to this property</a>

s4: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s4">Link to this property</a>

s5: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s5">Link to this property</a>

s6: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s6">Link to this property</a>

s7: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s7">Link to this property</a>

s8: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s8">Link to this property</a>

s9: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s9">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt">Link to this property</a>

<details>

<summary>

response: Attributes

</summary>

p1: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20p1">Link to this property</a>

s1: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s1">Link to this property</a>

s10: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s10">Link to this property</a>

s11: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s11">Link to this property</a>

s12: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s12">Link to this property</a>

s13: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s13">Link to this property</a>

s2: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s2">Link to this property</a>

s3: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s3">Link to this property</a>

s4: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s4">Link to this property</a>

s5: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s5">Link to this property</a>

s6: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s6">Link to this property</a>

s7: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s7">Link to this property</a>

s8: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s8">Link to this property</a>

s9: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s9">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20guardrails>)

<details>

<summary>

otel: List\[Attributes]

</summary>

headers: Map\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20headers">Link to this property</a>

url: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20url">Link to this property</a>

authorization: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20authorization">Link to this property</a>

content\_type: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20content_type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20otel>)

<details>

<summary>

spend\_limits: Attributes

</summary>

enabled: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20enabled">Link to this property</a>

<details>

<summary>

rules: List\[Attributes]

</summary>

limit: Float64

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20limit">Link to this property</a>

limit\_type: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20limit_type">Link to this property</a>

window: Int64

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20window">Link to this property</a>

id: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20id">Link to this property</a>

enabled: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20enabled">Link to this property</a>

<details>

<summary>

metadata: Map\[Attributes]

</summary>

mode: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20mode">Link to this property</a>

values: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20metadata">Link to this property</a>

<details>

<summary>

model: Attributes

</summary>

mode: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20model%20%3E%20(attribute)%20mode">Link to this property</a>

values: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20model%20%3E%20(attribute)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20model">Link to this property</a>

<details>

<summary>

ai\_gateway\_provider: Attributes

</summary>

mode: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20ai_gateway_provider%20%3E%20(attribute)%20mode">Link to this property</a>

values: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20ai_gateway_provider%20%3E%20(attribute)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20ai_gateway_provider">Link to this property</a>

technique: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20technique">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20spend_limits>)

<details>

<summary>

stripe: Attributes

</summary>

authorization: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20stripe%20%3E%20(attribute)%20authorization">Link to this property</a>

<details>

<summary>

usage\_events: List\[Attributes]

</summary>

payload: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20stripe%20%3E%20(attribute)%20usage_events%20%3E%20(attribute)%20payload">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20stripe%20%3E%20(attribute)%20usage_events">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20stripe>)

### cloudflare\_ai\_gateway

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_ai_gateway" "example_ai_gateway" {
  account_id = "3ebbcb006d4d46d7bb6a8c7f14676cb0"
  id = "my-gateway"
}
```

#### data cloudflare\_ai\_gateways

##### required Expand Collapse

account\_id: String

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

##### optional Expand Collapse

search?: String

Search by id

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20search>)

max\_items?: Int64

Max items to fetch, default: 1000

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

Unique identifier of the AI Gateway within the account.

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

cache\_invalidate\_on\_update: Bool

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

cache\_ttl: Int64

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

collect\_logs: Bool

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

created\_at: Time

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

modified\_at: Time

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

rate\_limiting\_interval: Int64

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

rate\_limiting\_limit: Int64

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

authentication: Bool

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

byok\_only: Bool

Requires customer-provided provider credentials and prevents fallback to Unified Billing.

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

<details>

<summary>

dlp: Attributes

</summary>

action: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20action">Link to this property</a>

enabled: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20enabled">Link to this property</a>

profiles: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20profiles">Link to this property</a>

<details>

<summary>

policies: List\[Attributes]

</summary>

id: String

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

action: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20action">Link to this property</a>

check: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20check">Link to this property</a>

enabled: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20enabled">Link to this property</a>

profiles: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies%20%3E%20(attribute)%20profiles">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20dlp%20%3E%20(attribute)%20policies">Link to this property</a>

</details>

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

<details>

<summary>

guardrails: Attributes

</summary>

<details>

<summary>

prompt: Attributes

</summary>

p1: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20p1">Link to this property</a>

s1: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s1">Link to this property</a>

s10: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s10">Link to this property</a>

s11: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s11">Link to this property</a>

s12: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s12">Link to this property</a>

s13: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s13">Link to this property</a>

s2: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s2">Link to this property</a>

s3: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s3">Link to this property</a>

s4: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s4">Link to this property</a>

s5: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s5">Link to this property</a>

s6: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s6">Link to this property</a>

s7: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s7">Link to this property</a>

s8: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s8">Link to this property</a>

s9: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt%20%3E%20(attribute)%20s9">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20prompt">Link to this property</a>

<details>

<summary>

response: Attributes

</summary>

p1: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20p1">Link to this property</a>

s1: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s1">Link to this property</a>

s10: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s10">Link to this property</a>

s11: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s11">Link to this property</a>

s12: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s12">Link to this property</a>

s13: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s13">Link to this property</a>

s2: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s2">Link to this property</a>

s3: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s3">Link to this property</a>

s4: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s4">Link to this property</a>

s5: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s5">Link to this property</a>

s6: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s6">Link to this property</a>

s7: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s7">Link to this property</a>

s8: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s8">Link to this property</a>

s9: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response%20%3E%20(attribute)%20s9">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20guardrails%20%3E%20(attribute)%20response">Link to this property</a>

</details>

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

is\_default: Bool

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

log\_classification: Bool

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

log\_management: Int64

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

log\_management\_strategy: String

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

logpush: Bool

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

logpush\_public\_key: String

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

<details>

<summary>

otel: List\[Attributes]

</summary>

headers: Map\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20headers">Link to this property</a>

url: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20url">Link to this property</a>

authorization: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20authorization">Link to this property</a>

content\_type: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20otel%20%3E%20(attribute)%20content_type">Link to this property</a>

</details>

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

rate\_limiting\_technique: String

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

retry\_backoff: String

Backoff strategy for retry delays

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

retry\_delay: Int64

Delay between retry attempts in milliseconds (0-60000)

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

retry\_max\_attempts: Int64

Maximum number of retry attempts for failed requests (1-5)

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

<details>

<summary>

spend\_limits: Attributes

</summary>

enabled: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20enabled">Link to this property</a>

<details>

<summary>

rules: List\[Attributes]

</summary>

limit: Float64

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20limit">Link to this property</a>

limit\_type: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20limit_type">Link to this property</a>

window: Int64

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20window">Link to this property</a>

id: String

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

enabled: Bool

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20enabled">Link to this property</a>

<details>

<summary>

metadata: Map\[Attributes]

</summary>

mode: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20mode">Link to this property</a>

values: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20metadata">Link to this property</a>

<details>

<summary>

model: Attributes

</summary>

mode: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20model%20%3E%20(attribute)%20mode">Link to this property</a>

values: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20model%20%3E%20(attribute)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20model">Link to this property</a>

<details>

<summary>

ai\_gateway\_provider: Attributes

</summary>

mode: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20ai_gateway_provider%20%3E%20(attribute)%20mode">Link to this property</a>

values: List\[String]

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20ai_gateway_provider%20%3E%20(attribute)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20ai_gateway_provider">Link to this property</a>

technique: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules%20%3E%20(attribute)%20technique">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20spend_limits%20%3E%20(attribute)%20rules">Link to this property</a>

</details>

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

store\_id: String

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

<details>

<summary>

stripe: Attributes

</summary>

authorization: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20stripe%20%3E%20(attribute)%20authorization">Link to this property</a>

<details>

<summary>

usage\_events: List\[Attributes]

</summary>

payload: String

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20stripe%20%3E%20(attribute)%20usage_events%20%3E%20(attribute)%20payload">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20stripe%20%3E%20(attribute)%20usage_events">Link to this property</a>

</details>

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

workers\_ai\_billing\_mode: String

Controls how Workers AI inference calls routed through this gateway are billed. ‘postpaid’ bills the account directly through Workers AI; ‘unified’ deducts credits via AI Gateway using neuron-based pricing and delegates billing to AI Gateway.

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

zdr: Bool

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

</details>

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

### cloudflare\_ai\_gateways

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_ai_gateways" "example_ai_gateways" {
  account_id = "3ebbcb006d4d46d7bb6a8c7f14676cb0"
  search = "search"
}
```

#### AI GatewayDynamic Routing

#### resource cloudflare\_ai\_gateway\_dynamic\_routing

##### required Expand Collapse

account\_id: String

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

gateway\_id: String

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20gateway_id>)

<details>

<summary>

elements: List\[Attributes]

</summary>

id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20id">Link to this property</a>

<details>

<summary>

outputs: Attributes

</summary>

<details>

<summary>

next?: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20next%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20next">Link to this property</a>

<details>

<summary>

false?: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20false%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20false">Link to this property</a>

<details>

<summary>

true?: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20true%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20true">Link to this property</a>

element\_id?: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20element_id">Link to this property</a>

<details>

<summary>

fallback?: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20fallback%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20fallback">Link to this property</a>

<details>

<summary>

success?: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20success%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20success">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs">Link to this property</a>

type: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20type">Link to this property</a>

<details>

<summary>

properties?: Attributes

</summary>

conditions?: JSON

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20conditions">Link to this property</a>

key?: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20key">Link to this property</a>

limit?: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20limit">Link to this property</a>

limit\_type?: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20limit_type">Link to this property</a>

window?: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20window">Link to this property</a>

model?: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20model">Link to this property</a>

ai\_gateway\_dynamic\_routing\_provider?: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20ai_gateway_dynamic_routing_provider">Link to this property</a>

retries?: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20retries">Link to this property</a>

timeout?: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20timeout">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20elements>)

name: String

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

##### computed Expand Collapse

id: String

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

created\_at: Time

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_at>)

modified\_at: Time

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified_at>)

success: Bool

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20success>)

<details>

<summary>

deployment: Attributes

</summary>

created\_at: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20deployment%20%3E%20(attribute)%20created_at">Link to this property</a>

deployment\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20deployment%20%3E%20(attribute)%20deployment_id">Link to this property</a>

version\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20deployment%20%3E%20(attribute)%20version_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20deployment>)

<details>

<summary>

route: Attributes

</summary>

id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20id">Link to this property</a>

account\_tag: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20account_tag">Link to this property</a>

created\_at: Time

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20created_at">Link to this property</a>

<details>

<summary>

deployment: Attributes

</summary>

created\_at: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20deployment%20%3E%20(attribute)%20created_at">Link to this property</a>

deployment\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20deployment%20%3E%20(attribute)%20deployment_id">Link to this property</a>

version\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20deployment%20%3E%20(attribute)%20version_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20deployment">Link to this property</a>

<details>

<summary>

elements: List\[Attributes]

</summary>

id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20id">Link to this property</a>

<details>

<summary>

outputs: Attributes

</summary>

<details>

<summary>

next: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20next%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20next">Link to this property</a>

<details>

<summary>

false: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20false%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20false">Link to this property</a>

<details>

<summary>

true: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20true%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20true">Link to this property</a>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20element_id">Link to this property</a>

<details>

<summary>

fallback: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20fallback%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20fallback">Link to this property</a>

<details>

<summary>

success: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20success%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20success">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs">Link to this property</a>

type: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20type">Link to this property</a>

<details>

<summary>

properties: Attributes

</summary>

conditions: JSON

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20conditions">Link to this property</a>

key: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20key">Link to this property</a>

limit: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20limit">Link to this property</a>

limit\_type: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20limit_type">Link to this property</a>

window: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20window">Link to this property</a>

model: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20model">Link to this property</a>

ai\_gateway\_dynamic\_routing\_provider: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20ai_gateway_dynamic_routing_provider">Link to this property</a>

retries: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20retries">Link to this property</a>

timeout: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20timeout">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20elements">Link to this property</a>

gateway\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20gateway_id">Link to this property</a>

modified\_at: Time

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20modified_at">Link to this property</a>

name: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20name">Link to this property</a>

<details>

<summary>

version: Attributes

</summary>

active: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20version%20%3E%20(attribute)%20active">Link to this property</a>

created\_at: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20version%20%3E%20(attribute)%20created_at">Link to this property</a>

data: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20version%20%3E%20(attribute)%20data">Link to this property</a>

version\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20version%20%3E%20(attribute)%20version_id">Link to this property</a>

is\_valid: Bool

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20version%20%3E%20(attribute)%20is_valid">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route%20%3E%20(attribute)%20version">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20route>)

<details>

<summary>

version: Attributes

</summary>

active: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20version%20%3E%20(attribute)%20active">Link to this property</a>

created\_at: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20version%20%3E%20(attribute)%20created_at">Link to this property</a>

data: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20version%20%3E%20(attribute)%20data">Link to this property</a>

version\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20version%20%3E%20(attribute)%20version_id">Link to this property</a>

is\_valid: Bool

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20version%20%3E%20(attribute)%20is_valid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20version>)

### cloudflare\_ai\_gateway\_dynamic\_routing

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_ai_gateway_dynamic_routing" "example_ai_gateway_dynamic_routing" {
  account_id = "0d37909e38d3e99c29fa2cd343ac421a"
  gateway_id = "54442216"
  elements = [{
    id = "id"
    outputs = {
      next = {
        element_id = "elementId"
      }
    }
    type = "start"
  }]
  name = "x"
}
```

#### data cloudflare\_ai\_gateway\_dynamic\_routing

##### required Expand Collapse

account\_id: String

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

gateway\_id: String

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20gateway_id>)

id: String

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

##### computed Expand Collapse

created\_at: Time

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_at>)

modified\_at: Time

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified_at>)

name: String

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

<details>

<summary>

deployment: Attributes

</summary>

created\_at: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20deployment%20%3E%20(attribute)%20created_at">Link to this property</a>

deployment\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20deployment%20%3E%20(attribute)%20deployment_id">Link to this property</a>

version\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20deployment%20%3E%20(attribute)%20version_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20deployment>)

<details>

<summary>

elements: List\[Attributes]

</summary>

id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20id">Link to this property</a>

<details>

<summary>

outputs: Attributes

</summary>

<details>

<summary>

next: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20next%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20next">Link to this property</a>

<details>

<summary>

false: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20false%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20false">Link to this property</a>

<details>

<summary>

true: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20true%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20true">Link to this property</a>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20element_id">Link to this property</a>

<details>

<summary>

fallback: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20fallback%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20fallback">Link to this property</a>

<details>

<summary>

success: Attributes

</summary>

element\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20success%20%3E%20(attribute)%20element_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs%20%3E%20(attribute)%20success">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20outputs">Link to this property</a>

type: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20type">Link to this property</a>

<details>

<summary>

properties: Attributes

</summary>

conditions: JSON

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20conditions">Link to this property</a>

key: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20key">Link to this property</a>

limit: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20limit">Link to this property</a>

limit\_type: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20limit_type">Link to this property</a>

window: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20window">Link to this property</a>

model: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20model">Link to this property</a>

ai\_gateway\_dynamic\_routing\_provider: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20ai_gateway_dynamic_routing_provider">Link to this property</a>

retries: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20retries">Link to this property</a>

timeout: Float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties%20%3E%20(attribute)%20timeout">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements%20%3E%20(attribute)%20properties">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20elements>)

<details>

<summary>

version: Attributes

</summary>

active: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20version%20%3E%20(attribute)%20active">Link to this property</a>

created\_at: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20version%20%3E%20(attribute)%20created_at">Link to this property</a>

data: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20version%20%3E%20(attribute)%20data">Link to this property</a>

version\_id: String

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20version%20%3E%20(attribute)%20version_id">Link to this property</a>

is\_valid: Bool

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20version%20%3E%20(attribute)%20is_valid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20version>)

### cloudflare\_ai\_gateway\_dynamic\_routing

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_ai_gateway_dynamic_routing" "example_ai_gateway_dynamic_routing" {
  account_id = "0d37909e38d3e99c29fa2cd343ac421a"
  gateway_id = "54442216"
  id = "54442216"
}
```