Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19114,7 +19114,8 @@ components:
description: Data of the case to attach security findings to.
properties:
id:
description: Unique identifier of the case.
description: >-
Unique identifier of the case. This field is required but not used: the API attaches security findings to the case in the `case_id` path parameter.
example: "c1234567-89ab-cdef-0123-456789abcdef"
type: string
relationships:
Expand Down Expand Up @@ -46277,7 +46278,8 @@ components:
description: Data for detaching security findings from their case.
properties:
id:
description: Unique identifier of the detachment request.
description: >-
Optional identifier of the detachment request. The API doesn't use it to select a case: it detaches each security finding in `relationships.findings` from the case it's attached to.
example: "c1234567-89ab-cdef-0123-456789abcdef"
type: string
relationships:
Expand Down Expand Up @@ -257033,7 +257035,7 @@ paths:
description: >-
Detach security findings from their case.

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.
This operation dissociates security findings from their associated cases without deleting the cases themselves. List the security findings to detach in `data.relationships.findings`. The API detaches each one from its current case, so you don't need to pass a case ID. 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.
operationId: DetachCase
requestBody:
content:
Expand Down Expand Up @@ -257078,6 +257080,8 @@ paths:
description: >-
Create cases for security findings.

To add security findings to a case that already exists, use `AttachCase` instead.

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.
operationId: CreateCases
requestBody:
Expand Down Expand Up @@ -257148,10 +257152,12 @@ paths:
description: >-
Attach security findings to a case.

Identify the existing Case Management case with the `case_id` path parameter, using the case `id` or `key` that `SearchCases` or `CreateCases` returns. To open a new case for security findings, use `CreateCases` instead.

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.
operationId: AttachCase
parameters:
- description: Unique identifier of the case to attach security findings to
- description: Unique identifier (UUID) or key (for example, `PROJ-123`) of the case to attach security findings to.
in: path
name: case_id
required: true
Expand Down Expand Up @@ -257496,6 +257502,8 @@ paths:
description: >-
Mute or unmute security findings.

Mute security findings that you want to ignore, such as false positives, accepted risks, or findings with a pending fix. Datadog issue explorers hide muted findings by default, and muted misconfigurations no longer count toward the posture score. Datadog automatically unmutes findings when their `expire_at` date passes. To unmute them earlier, set `is_muted` to `false`.

You can mute or unmute up to 100 security findings per request. The request body must include `is_muted` and `reason` attributes. The allowed reasons depend on whether the finding is being muted or unmuted:
- To mute a finding: `PENDING_FIX`, `FALSE_POSITIVE`, `OTHER`, `NO_FIX`, `DUPLICATE`, `RISK_ACCEPTED`.
- To unmute a finding: `NO_PENDING_FIX`, `HUMAN_ERROR`, `NO_LONGER_ACCEPTED_RISK`, `OTHER`.
Expand Down Expand Up @@ -257782,6 +257790,7 @@ paths:

You can update up to 100 security findings per request.
Use the `set` action with a `value` to apply a manual severity override.
The allowed values are `critical`, `high`, `medium`, `low`, and `info`.
`value` is required for `set` and must be omitted for `clear`.
The `info` value sets the lowest severity the finding type allows.
Use the `clear` action to remove a manual severity override.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,8 @@ public ApiResponse<SecurityMonitoringIntegrationConfigResponse> activateIntegrat
*
* <p>See {@link #attachCaseWithHttpInfo}.
*
* @param caseId Unique identifier of the case to attach security findings to (required)
* @param caseId Unique identifier (UUID) or key (for example, <code>PROJ-123</code>) of the case
* to attach security findings to. (required)
* @param body (required)
* @return FindingCaseResponse
* @throws ApiException if fails to make API call
Expand All @@ -670,7 +671,8 @@ public FindingCaseResponse attachCase(String caseId, AttachCaseRequest body) thr
*
* <p>See {@link #attachCaseWithHttpInfoAsync}.
*
* @param caseId Unique identifier of the case to attach security findings to (required)
* @param caseId Unique identifier (UUID) or key (for example, <code>PROJ-123</code>) of the case
* to attach security findings to. (required)
* @param body (required)
* @return CompletableFuture&lt;FindingCaseResponse&gt;
*/
Expand All @@ -684,11 +686,15 @@ public CompletableFuture<FindingCaseResponse> attachCaseAsync(
}

/**
* Attach security findings to a case. You can attach up to 50 security findings per case.
* Security findings that are already attached to another case will be detached from their
* Attach security findings to a case. Identify the existing Case Management case with the <code>
* case_id</code> path parameter, using the case <code>id</code> or <code>key</code> that <code>
* SearchCases</code> or <code>CreateCases</code> returns. To open a new case for security
* findings, use <code>CreateCases</code> instead. 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.
*
* @param caseId Unique identifier of the case to attach security findings to (required)
* @param caseId Unique identifier (UUID) or key (for example, <code>PROJ-123</code>) of the case
* to attach security findings to. (required)
* @param body (required)
* @return ApiResponse&lt;FindingCaseResponse&gt;
* @throws ApiException if fails to make API call
Expand Down Expand Up @@ -748,7 +754,8 @@ public ApiResponse<FindingCaseResponse> attachCaseWithHttpInfo(
*
* <p>See {@link #attachCaseWithHttpInfo}.
*
* @param caseId Unique identifier of the case to attach security findings to (required)
* @param caseId Unique identifier (UUID) or key (for example, <code>PROJ-123</code>) of the case
* to attach security findings to. (required)
* @param body (required)
* @return CompletableFuture&lt;ApiResponse&lt;FindingCaseResponse&gt;&gt;
*/
Expand Down Expand Up @@ -3593,9 +3600,10 @@ public CompletableFuture<FindingCaseResponseArray> createCasesAsync(CreateCaseRe
}

/**
* Create cases for security findings. 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.
* Create cases for security findings. To add security findings to a case that already exists, use
* <code>AttachCase</code> instead. 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.
*
* @param body (required)
* @return ApiResponse&lt;FindingCaseResponseArray&gt;
Expand Down Expand Up @@ -10308,9 +10316,11 @@ public CompletableFuture<Void> detachCaseAsync(DetachCaseRequest body) {

/**
* Detach security findings from their case. 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.
* their associated cases without deleting the cases themselves. List the security findings to
* detach in <code>data.relationships.findings</code>. The API detaches each one from its current
* case, so you don't need to pass a case ID. 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.
*
* @param body (required)
* @return ApiResponse&lt;Void&gt;
Expand Down Expand Up @@ -28130,13 +28140,17 @@ public CompletableFuture<MuteFindingsResponse> muteSecurityFindingsAsync(
}

/**
* Mute or unmute security findings. You can mute or unmute up to 100 security findings per
* request. The request body must include <code>is_muted</code> and <code>reason</code>
* attributes. The allowed reasons depend on whether the finding is being muted or unmuted: - To
* mute a finding: <code>PENDING_FIX</code>, <code>FALSE_POSITIVE</code>, <code>OTHER</code>,
* <code>NO_FIX</code>, <code>DUPLICATE</code>, <code>RISK_ACCEPTED</code>. - To unmute a finding:
* <code>NO_PENDING_FIX</code>, <code>HUMAN_ERROR</code>, <code>NO_LONGER_ACCEPTED_RISK</code>,
* <code>OTHER</code>.
* Mute or unmute security findings. Mute security findings that you want to ignore, such as false
* positives, accepted risks, or findings with a pending fix. Datadog issue explorers hide muted
* findings by default, and muted misconfigurations no longer count toward the posture score.
* Datadog automatically unmutes findings when their <code>expire_at</code> date passes. To unmute
* them earlier, set <code>is_muted</code> to <code>false</code>. You can mute or unmute up to 100
* security findings per request. The request body must include <code>is_muted</code> and <code>
* reason</code> attributes. The allowed reasons depend on whether the finding is being muted or
* unmuted: - To mute a finding: <code>PENDING_FIX</code>, <code>FALSE_POSITIVE</code>, <code>
* OTHER</code>, <code>NO_FIX</code>, <code>DUPLICATE</code>, <code>RISK_ACCEPTED</code>. - To
* unmute a finding: <code>NO_PENDING_FIX</code>, <code>HUMAN_ERROR</code>, <code>
* NO_LONGER_ACCEPTED_RISK</code>, <code>OTHER</code>.
*
* @param body (required)
* @return ApiResponse&lt;MuteFindingsResponse&gt;
Expand Down Expand Up @@ -32018,12 +32032,13 @@ public CompletableFuture<SeverityOverrideResponse> updateFindingsSeverityAsync(
* Set or clear the manual severity override of security findings.
*
* <p>You can update up to 100 security findings per request. Use the <code>set</code> action with
* a <code>value</code> to apply a manual severity override. <code>value</code> is required for
* <code>set</code> and must be omitted for <code>clear</code>. The <code>info</code> value sets
* the lowest severity the finding type allows. Use the <code>clear</code> action to remove a
* manual severity override. <code>clear</code> does not remove a severity set by an automation
* rule. The optional <code>description</code> is accepted with both actions and has a limit of
* 280 characters.
* a <code>value</code> to apply a manual severity override. The allowed values are <code>critical
* </code>, <code>high</code>, <code>medium</code>, <code>low</code>, and <code>info</code>.
* <code>value</code> is required for <code>set</code> and must be omitted for <code>clear</code>.
* The <code>info</code> value sets the lowest severity the finding type allows. Use the <code>
* clear</code> action to remove a manual severity override. <code>clear</code> does not remove a
* severity set by an automation rule. The optional <code>description</code> is accepted with both
* actions and has a limit of 280 characters.
*
* <p>Auto-closed findings are excluded. Findings whose severity was set by an automation rule are
* skipped and listed in the response <code>meta.warnings</code>. If every finding is skipped this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public AttachCaseRequestData id(String id) {
}

/**
* Unique identifier of the case.
* Unique identifier of the case. This field is required but not used: the API attaches security
* findings to the case in the <code>case_id</code> path parameter.
*
* @return id
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public DetachCaseRequestData id(String id) {
}

/**
* Unique identifier of the detachment request.
* Optional identifier of the detachment request. The API doesn't use it to select a case: it
* detaches each security finding in <code>relationships.findings</code> from the case it's
* attached to.
*
* @return id
*/
Expand Down
Loading