Skip to main content

domain_allowlist

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

Overview

Namedomain_allowlist
TypeResource
Iddatadog.organization.domain_allowlist

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the org.
attributesobjectThe details of the email domain allowlist.
typestringEmail domain allowlist allowlist type. (domain_allowlist) (default: domain_allowlist, example: domain_allowlist)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_domain_allowlistselectGet the domain allowlist for an organization.
patch_domain_allowlistupdatedataUpdate 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.

NameDatatypeDescription
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

Get the domain allowlist for an organization.

SELECT
id,
attributes,
type
FROM datadog.organization.domain_allowlist
;

UPDATE examples

Update the domain allowlist for an organization.

UPDATE datadog.organization.domain_allowlist
SET
data = '{{ data }}'
WHERE
data = '{{ data }}' --required
RETURNING
data;