Skip to main content

finding_cases

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

Overview

Namefinding_cases
TypeResource
Iddatadog.security.finding_cases

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_casesinsertdataCreate cases for security findings.<br />You can create up to 50 cases per request and associate up to 50 security findings per case. Security findings that are already attached to another case will be detached from their previous case and attached to the newly created case.
attach_caseupdatecase_idAttach security findings to a case.<br />You can attach up to 50 security findings per case. Security findings that are already attached to another case will be detached from their previous case and attached to the specified case.
detach_casedeleteDetach security findings from their case.<br />This operation dissociates security findings from their associated cases without deleting the cases themselves. You can detach security findings from multiple different cases in a single request, with a limit of 50 security findings per request. Security findings that are not currently attached to any case will be ignored.

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
case_idstringUnique identifier of the case to attach security findings to
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.

INSERT examples

Create cases for security findings.<br />You can create up to 50 cases per request and associate up to 50 security findings per case. Security findings that are already attached to another case will be detached from their previous case and attached to the newly created case.

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

UPDATE examples

Attach security findings to a case.<br />You can attach up to 50 security findings per case. Security findings that are already attached to another case will be detached from their previous case and attached to the specified case.

UPDATE datadog.security.finding_cases
SET
data = '{{ data }}'
WHERE
case_id = '{{ case_id }}' --required
RETURNING
data;

DELETE examples

Detach security findings from their case.<br />This operation dissociates security findings from their associated cases without deleting the cases themselves. You can detach security findings from multiple different cases in a single request, with a limit of 50 security findings per request. Security findings that are not currently attached to any case will be ignored.

DELETE FROM datadog.security.finding_cases
;