monitoring_critical_asset_rules
Creates, updates, deletes, gets or lists a monitoring_critical_asset_rules resource.
Overview
| Name | monitoring_critical_asset_rules |
| Type | Resource |
| Id | datadog.security.monitoring_critical_asset_rules |
Fields
The following fields are returned by SELECT queries:
- get_critical_assets_affecting_rule
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the critical asset. (example: 4e2435a5-6670-4b8f-baff-46083cd1c250) |
attributes | object | The attributes of the critical asset. |
type | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_critical_assets_affecting_rule | select | rule_id | Get 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.
| Name | Datatype | Description |
|---|---|---|
rule_id | string | The ID of the rule. |
site | string | The 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_critical_assets_affecting_rule
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
;