account_mapping
Creates, updates, deletes, gets or lists an account_mapping resource.
Overview
| Name | account_mapping |
| Type | Resource |
| Id | cloudflare.zero_trust.account_mapping |
Fields
The following fields are returned by SELECT queries:
- list
Get Email Scanner Account Mapping response.
| Name | Datatype | Description |
|---|---|---|
addin_identifier_token | string (uuid) | |
auth_requirements | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Retrieves the email provider mapping configuration for DLP email scanning. | |
create | insert | account_id, auth_requirements | Creates 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
SELECT examples
- list
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
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: account_mapping
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the account_mapping resource.
- name: auth_requirements
value:
allowed_microsoft_organizations:
- "{{ allowed_microsoft_organizations }}"
type: "{{ type }}"