smart_routing
Creates, updates, deletes, gets or lists a smart_routing resource.
Overview
| Name | smart_routing |
| Type | Resource |
| Id | cloudflare.argo.smart_routing |
Fields
The following fields are returned by SELECT queries:
- list
Get Argo Smart Routing enablement setting response.
| Name | Datatype | Description |
|---|---|---|
id | string | Specifies the identifier of the Argo Smart Routing setting. |
editable | boolean | Specifies if the setting is editable. |
modified_on | string (date-time) | Specifies the time when the setting was last modified. |
value | string | Specifies the enablement value of Argo Smart Routing. (on, off) (example: on) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | zone_id | Retrieves the value of Argo Smart Routing enablement setting. | |
edit | update | zone_id, value | Configures the value of the Argo Smart Routing enablement setting. |
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 |
|---|---|---|
zone_id | string | The Cloudflare zone ID. |
SELECT examples
- list
Retrieves the value of Argo Smart Routing enablement setting.
SELECT
id,
editable,
modified_on,
value
FROM cloudflare.argo.smart_routing
WHERE zone_id = '{{ zone_id }}' -- required
;
UPDATE examples
- edit
Configures the value of the Argo Smart Routing enablement setting.
UPDATE cloudflare.argo.smart_routing
SET
value = '{{ value }}'
WHERE
zone_id = '{{ zone_id }}' --required
AND value = '{{ value }}' --required
RETURNING
errors,
messages,
result,
success;