Skip to main content

csm_ownership_settings

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

Overview

Namecsm_ownership_settings
TypeResource
Iddatadog.security.csm_ownership_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the ownership settings resource. (example: settings)
attributesobjectThe attributes of the ownership settings response.
typestringThe type of the ownership settings resource. The value should always be ownership_settings. (ownership_settings) (default: ownership_settings, example: ownership_settings)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ownership_settingsselectGet ownership settings for the org. When settings are unset, the API returns the default opt-out configuration with auto_tag set to true and confidence_level set to high.
post_ownership_settingsinsertdataUpdate ownership settings for the org.

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 ownership settings for the org. When settings are unset, the API returns the default opt-out configuration with auto_tag set to true and confidence_level set to high.

SELECT
id,
attributes,
type
FROM datadog.security.csm_ownership_settings
;

INSERT examples

Update ownership settings for the org.

INSERT INTO datadog.security.csm_ownership_settings (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;