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. (org_configs) (example: org_configs)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_org_configselectorg_config_nameReturn the name, description, and value of a specific Org Config.
list_org_configsselectReturns all Org Configs (name, description, and value).
update_org_configupdateorg_config_name, 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.
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

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
;

UPDATE examples

Update the value of a specific Org Config.

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