Skip to main content

routing

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

Overview

Namerouting
TypeResource
Idcloudflare.email_routing.routing

Fields

The following fields are returned by SELECT queries:

Get Email Routing settings response

NameDatatypeDescription
errorsarray
messagesarray
resultobject
successbooleanWhether the API call was successful. (true)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idGet information about the settings for your Email Routing zone.
disableexeczone_idDisable your Email Routing zone. Also removes additional MX records previously required for Email Routing to work.
enableexeczone_idEnable you Email Routing zone. Add and lock the necessary MX and SPF records.

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

Get information about the settings for your Email Routing zone.

SELECT
errors,
messages,
result,
success
FROM cloudflare.email_routing.routing
WHERE zone_id = '{{ zone_id }}' -- required
;

Lifecycle Methods

Disable your Email Routing zone. Also removes additional MX records previously required for Email Routing to work.

EXEC cloudflare.email_routing.routing.disable
@zone_id='{{ zone_id }}' --required
;