gateways_routes
Creates, updates, deletes, gets or lists a gateways_routes resource.
Overview
| Name | gateways_routes |
| Type | Resource |
| Id | cloudflare.ai_gateway.gateways_routes |
Fields
The following fields are returned by SELECT queries:
- get_by_account
| Name | Datatype | Description |
|---|---|---|
id | string | |
name | string | |
gateway_id | string | |
created_at | string (date-time) | |
deployment | object | |
elements | array | |
modified_at | string (date-time) | |
version | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_by_account | select | account_id, gateway_id, id | Get an AI Gateway Dynamic Route. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
gateway_id | string | The AI Gateway ID. |
id | string | Resource ID. |
SELECT examples
- get_by_account
Get an AI Gateway Dynamic Route.
SELECT
id,
name,
gateway_id,
created_at,
deployment,
elements,
modified_at,
version
FROM cloudflare.ai_gateway.gateways_routes
WHERE account_id = '{{ account_id }}' -- required
AND gateway_id = '{{ gateway_id }}' -- required
AND id = '{{ id }}' -- required
;