Skip to main content

smart_routing

Creates, updates, deletes, gets or lists a smart_routing resource.

Overview

Namesmart_routing
TypeResource
Idcloudflare.argo.smart_routing

Fields

The following fields are returned by SELECT queries:

Get Argo Smart Routing enablement setting response.

NameDatatypeDescription
idstringSpecifies the identifier of the Argo Smart Routing setting.
editablebooleanSpecifies if the setting is editable.
modified_onstring (date-time)Specifies the time when the setting was last modified.
valuestringSpecifies the enablement value of Argo Smart Routing. (on, off) (example: on)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idRetrieves the value of Argo Smart Routing enablement setting.
editupdatezone_id, valueConfigures 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.

NameDatatypeDescription
zone_idstringThe Cloudflare zone ID.

SELECT examples

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

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;