Skip to main content

ip_allowlist

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

Overview

Nameip_allowlist
TypeResource
Iddatadog.organization.ip_allowlist

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the org.
attributesobjectAttributes of the IP allowlist.
typestringIP allowlist type. (default: ip_allowlist, example: ip_allowlist)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ipallowlistselectregionReturns the IP allowlist and its enabled or disabled state.
update_ipallowlistupdateregion, data__dataEdit the entries in the IP allowlist, and enable or disable it.

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
regionstring(default: datadoghq.com)

SELECT examples

Returns the IP allowlist and its enabled or disabled state.

SELECT
id,
attributes,
type
FROM datadog.organization.ip_allowlist
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Edit the entries in the IP allowlist, and enable or disable it.

UPDATE datadog.organization.ip_allowlist
SET
data__data = '{{ data }}'
WHERE
region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;