Skip to main content

vulnerability_notification_rules

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

Overview

Namevulnerability_notification_rules
TypeResource
Iddatadog.security.vulnerability_notification_rules

Fields

The following fields are returned by SELECT queries:

Notification rule details.

NameDatatypeDescription
idstringThe ID of a notification rule. (example: aaa-bbb-ccc)
attributesobjectAttributes of the notification rule.
typestringThe rule type associated to notification rules. (notification_rules) (example: notification_rules)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_vulnerability_notification_ruleselectidGet the details of a notification rule for security vulnerabilities.
get_vulnerability_notification_rulesselectReturns the list of notification rules for security vulnerabilities.
create_vulnerability_notification_ruleinsertCreate a new notification rule for security vulnerabilities and return the created rule.
patch_vulnerability_notification_ruleupdateidPartially update the notification rule. All fields are optional; if a field is not provided, it is not updated.
delete_vulnerability_notification_ruledeleteidDelete a notification rule for security vulnerabilities.

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
idstringID of the notification 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 details of a notification rule for security vulnerabilities.

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

INSERT examples

Create a new notification rule for security vulnerabilities and return the created rule.

INSERT INTO datadog.security.vulnerability_notification_rules (
data
)
SELECT
'{{ data }}'
RETURNING
data
;

UPDATE examples

Partially update the notification rule. All fields are optional; if a field is not provided, it is not updated.

UPDATE datadog.security.vulnerability_notification_rules
SET
data = '{{ data }}'
WHERE
id = '{{ id }}' --required
RETURNING
data;

DELETE examples

Delete a notification rule for security vulnerabilities.

DELETE FROM datadog.security.vulnerability_notification_rules
WHERE id = '{{ id }}' --required
;