Skip to main content

configs

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

Overview

Nameconfigs
TypeResource
Iddatadog.organization.configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringA unique identifier for an Org Config. (example: abcd1234)
attributesobjectReadable attributes of an Org Config.
typestringData type of an Org Config. (example: org_configs)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_org_configselectorg_config_name, regionReturn the name, description, and value of a specific Org Config.
list_org_configsselectregionReturns all Org Configs (name, description, and value).
update_org_configupdateorg_config_name, region, data__dataUpdate the value of a specific Org Config.

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
org_config_namestringThe name of an Org Config.
regionstring(default: datadoghq.com)

SELECT examples

Return the name, description, and value of a specific Org Config.

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

UPDATE examples

Update the value of a specific Org Config.

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