Skip to main content

finding_automation_due_date_rules

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

Overview

Namefinding_automation_due_date_rules
TypeResource
Iddatadog.security.finding_automation_due_date_rules

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the due date rule

NameDatatypeDescription
idstring (uuid)The ID of the due date rule. (example: 00000000-0000-0000-0000-000000000000)
attributesobjectAttributes of a due date rule returned by the API.
typestringThe JSON:API type for due date rules. (due_date_rules) (example: due_date_rules)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_security_findings_automation_due_date_ruleselectrule_idGet the details of a due date rule by ID.
list_security_findings_automation_due_date_rulesselectpage[size], page[number]Get all due date rules for the current organization.
create_security_findings_automation_due_date_ruleinsertdataCreate a new due date rule for the current organization.
update_security_findings_automation_due_date_rulereplacerule_id, dataUpdate an existing due date rule by ID.
delete_security_findings_automation_due_date_ruledeleterule_idDelete an existing due date rule by ID.
reorder_security_findings_automation_due_date_rulesexecdataReorder the list of due date rules for the current organization.

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_idstring (uuid)The ID of the due date 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.
page[number]integer (int64)The page number to return.
page[size]integer (int64)The number of rules per page. Maximum is 1000.

SELECT examples

Get the details of a due date rule by ID.

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

INSERT examples

Create a new due date rule for the current organization.

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

REPLACE examples

Update an existing due date rule by ID.

REPLACE datadog.security.finding_automation_due_date_rules
SET
data = '{{ data }}'
WHERE
rule_id = '{{ rule_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete an existing due date rule by ID.

DELETE FROM datadog.security.finding_automation_due_date_rules
WHERE rule_id = '{{ rule_id }}' --required
;

Lifecycle Methods

EXEC variables use wire (API) names.

Reorder the list of due date rules for the current organization.

EXEC datadog.security.finding_automation_due_date_rules.reorder_security_findings_automation_due_date_rules
@@json=
'{
"data": "{{ data }}"
}'
;