Skip to main content

monitoring_critical_asset_rules

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

Overview

Namemonitoring_critical_asset_rules
TypeResource
Iddatadog.security.monitoring_critical_asset_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the critical asset. (example: 4e2435a5-6670-4b8f-baff-46083cd1c250)
attributesobjectThe attributes of the critical asset.
typestringThe type of the resource. The value should always be critical_assets. (critical_assets) (default: critical_assets, example: critical_assets)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_critical_assets_affecting_ruleselectrule_idGet the list of critical assets that affect a specific existing rule by the rule's ID.

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
rule_idstringThe ID of the rule.
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 list of critical assets that affect a specific existing rule by the rule's ID.

SELECT
id,
attributes,
type
FROM datadog.security.monitoring_critical_asset_rules
WHERE rule_id = '{{ rule_id }}' -- required
;