diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3338e02c29d..1ab907d0f52 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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: @@ -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: @@ -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: @@ -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: @@ -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 @@ -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`. @@ -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. diff --git a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java index 59ea99e9a66..0a88ba323ea 100644 --- a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java @@ -656,7 +656,8 @@ public ApiResponse activateIntegrat * *

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, PROJ-123) of the case + * to attach security findings to. (required) * @param body (required) * @return FindingCaseResponse * @throws ApiException if fails to make API call @@ -670,7 +671,8 @@ public FindingCaseResponse attachCase(String caseId, AttachCaseRequest body) thr * *

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, PROJ-123) of the case + * to attach security findings to. (required) * @param body (required) * @return CompletableFuture<FindingCaseResponse> */ @@ -684,11 +686,15 @@ public CompletableFuture 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 + * 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. * - * @param caseId Unique identifier of the case to attach security findings to (required) + * @param caseId Unique identifier (UUID) or key (for example, PROJ-123) of the case + * to attach security findings to. (required) * @param body (required) * @return ApiResponse<FindingCaseResponse> * @throws ApiException if fails to make API call @@ -748,7 +754,8 @@ public ApiResponse attachCaseWithHttpInfo( * *

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, PROJ-123) of the case + * to attach security findings to. (required) * @param body (required) * @return CompletableFuture<ApiResponse<FindingCaseResponse>> */ @@ -3593,9 +3600,10 @@ public CompletableFuture 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 + * 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. * * @param body (required) * @return ApiResponse<FindingCaseResponseArray> @@ -10308,9 +10316,11 @@ public CompletableFuture 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 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. * * @param body (required) * @return ApiResponse<Void> @@ -28130,13 +28140,17 @@ public CompletableFuture muteSecurityFindingsAsync( } /** - * Mute or unmute security findings. 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. + * 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. * * @param body (required) * @return ApiResponse<MuteFindingsResponse> @@ -32018,12 +32032,13 @@ public CompletableFuture updateFindingsSeverityAsync( * Set or clear the manual severity override of security findings. * *

You can update up to 100 security findings per request. Use the set action with - * a value to apply a manual severity override. 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. clear does not remove a severity set by an automation - * rule. The optional description is accepted with both actions and has a limit of - * 280 characters. + * 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. clear does not remove a + * severity set by an automation rule. The optional description is accepted with both + * actions and has a limit of 280 characters. * *

Auto-closed findings are excluded. Findings whose severity was set by an automation rule are * skipped and listed in the response meta.warnings. If every finding is skipped this diff --git a/src/main/java/com/datadog/api/client/v2/model/AttachCaseRequestData.java b/src/main/java/com/datadog/api/client/v2/model/AttachCaseRequestData.java index 40b01fa9ff8..1e29848b0b9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AttachCaseRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/AttachCaseRequestData.java @@ -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 case_id path parameter. * * @return id */ diff --git a/src/main/java/com/datadog/api/client/v2/model/DetachCaseRequestData.java b/src/main/java/com/datadog/api/client/v2/model/DetachCaseRequestData.java index f2069311a6d..86b3d69db1e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DetachCaseRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/DetachCaseRequestData.java @@ -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 relationships.findings from the case it's + * attached to. * * @return id */