Skip to main content

account_mapping

Creates, updates, deletes, gets or lists an account_mapping resource.

Overview

Nameaccount_mapping
TypeResource
Idcloudflare.zero_trust.account_mapping

Fields

The following fields are returned by SELECT queries:

Get Email Scanner Account Mapping response.

NameDatatypeDescription
addin_identifier_tokenstring (uuid)
auth_requirementsobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idRetrieves the email provider mapping configuration for DLP email scanning.
createinsertaccount_id, auth_requirementsCreates a mapping between a Cloudflare account and an email provider for DLP email scanning integration.

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
account_idstringThe Cloudflare account ID.

SELECT examples

Retrieves the email provider mapping configuration for DLP email scanning.

SELECT
addin_identifier_token,
auth_requirements
FROM cloudflare.zero_trust.account_mapping
WHERE account_id = '{{ account_id }}' -- required
;

INSERT examples

Creates a mapping between a Cloudflare account and an email provider for DLP email scanning integration.

INSERT INTO cloudflare.zero_trust.account_mapping (
auth_requirements,
account_id
)
SELECT
'{{ auth_requirements }}' /* required */,
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;