domain_allowlist
Creates, updates, deletes, gets or lists a domain_allowlist resource.
Overview
| Name | domain_allowlist | 
| Type | Resource | 
| Id | datadog.organization.domain_allowlist | 
Fields
The following fields are returned by SELECT queries:
- get_domain_allowlist
| Name | Datatype | Description | 
|---|---|---|
| id | string | The unique identifier of the org. | 
| attributes | object | The details of the email domain allowlist. | 
| type | string | Email domain allowlist allowlist type. (default: domain_allowlist, example: domain_allowlist) | 
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description | 
|---|---|---|---|---|
| get_domain_allowlist | select | region | Get the domain allowlist for an organization. | |
| patch_domain_allowlist | update | region,data__data | Update the domain allowlist for an organization. | 
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 | 
|---|---|---|
| region | string | (default: datadoghq.com) | 
SELECT examples
- get_domain_allowlist
Get the domain allowlist for an organization.
SELECT
id,
attributes,
type
FROM datadog.organization.domain_allowlist
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- patch_domain_allowlist
Update the domain allowlist for an organization.
UPDATE datadog.organization.domain_allowlist
SET 
data__data = '{{ data }}'
WHERE 
region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;