diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3338e02c29d..4b4f89e4d14 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -47650,7 +47650,7 @@ components: - due_in_days type: object DueDatePerSeverityList: - description: A list of severity-to-due-date mappings. Each severity may appear at most once. + description: A list of severity-to-due-date mappings. Each severity may appear at most once. The rule only matches findings whose severity is listed here. items: $ref: "#/components/schemas/DueDatePerSeverityItem" type: array @@ -47676,7 +47676,7 @@ components: action: $ref: "#/components/schemas/DueDateRuleAction" enabled: - description: Whether the due date rule is enabled. + description: Whether the due date rule is enabled. If it is omitted, the API saves it as `false` and the rule doesn't apply. example: true type: boolean name: @@ -72304,7 +72304,7 @@ components: action: $ref: "#/components/schemas/InboxRuleAction" enabled: - description: Whether the inbox rule is enabled. + description: Whether the inbox rule is enabled. If it is omitted, the API saves it as `false` and the rule doesn't apply. example: true type: boolean name: @@ -96534,7 +96534,7 @@ components: description: The action to take when the mute rule matches a finding. properties: expire_at: - description: The Unix timestamp in milliseconds at which the mute expires. If omitted, the mute does not expire. + description: The Unix timestamp in milliseconds at which the mute expires. It must be in the future. If the timestamp is omitted, the mute does not expire. example: 4070908800000 format: int64 type: integer @@ -96554,7 +96554,7 @@ components: action: $ref: "#/components/schemas/MuteRuleAction" enabled: - description: Whether the mute rule is enabled. + description: Whether the mute rule is enabled. If it is omitted, the API saves it as `false` and the rule doesn't apply. example: true type: boolean name: @@ -131711,7 +131711,12 @@ components: - STATIC_CODE_VULNERABILITY - WORKLOAD_ACTIVITY SecurityFindingTypes: - description: The list of security finding types that the automation rule applies to. + description: |- + The security finding types that the automation rule applies to. At least one is required, and + each type may appear only once. Allowed values: `api_security`, `attack_path`, + `host_and_container_vulnerability`, `iac_misconfiguration`, `identity_risk`, + `library_vulnerability`, `misconfiguration`, `runtime_code_vulnerability`, `secret`, + `static_code_vulnerability`, and `workload_activity`. example: - misconfiguration items: @@ -140896,6 +140901,8 @@ components: description: |- The action to take when a severity modifier rule matches a finding. This is a discriminated union on `type`: `set` assigns a fixed severity, while `shift` moves the severity up or down by one rank. + With `type: set`, send `severity` (`info_none`, `low`, `medium`, `high`, or `critical`) and no `severity_delta`. With `type: shift`, send `severity_delta` (`up_one` or `down_one`) and no `severity`. Both accept an optional `description`. A `shift` rule doesn't match findings with an unknown severity. + A severity modifier rule's `rule.query` must not filter on `@severity` or on the `@severity_details.user_adjusted.*` namespace. Use `@severity_details.adjusted.value` instead, which reflects the severity before user-defined adjustments. @@ -140908,7 +140915,7 @@ components: action: $ref: "#/components/schemas/SeverityModifierRuleAction" enabled: - description: Whether the severity modifier rule is enabled. + description: Whether the severity modifier rule is enabled. If it is omitted, the API saves it as `false` and the rule doesn't apply. example: true type: boolean name: @@ -141086,7 +141093,7 @@ components: x-enum-varnames: - SET SeverityModifierRuleShiftAction: - description: Shifts matched findings up or down by one severity rank. + description: Shifts matched findings up or down by one severity rank. Shifting down stops at the lowest severity available for the finding type, for example `low` for `iac_misconfiguration`, `runtime_code_vulnerability`, `secret`, and `static_code_vulnerability` findings. A rule that wouldn't change a finding's severity doesn't match it, so Datadog checks the next rule. properties: description: description: An optional free-form explanation for the severity change. @@ -141161,7 +141168,7 @@ components: - HIGH - CRITICAL SeverityModifierSeverityDelta: - description: The direction in which to shift the severity of matched findings by one rank. + description: The direction in which to shift the severity of matched findings by one rank. Shifting down stops at the lowest severity available for the finding type. enum: - up_one - down_one @@ -155678,7 +155685,7 @@ components: minimum: 1 type: integer project_id: - description: The UUID of the case management project. + description: The UUID of the Datadog Work Management (formerly Case Management) project. example: "11111111-1111-1111-1111-111111111111" format: uuid type: string @@ -155720,7 +155727,7 @@ components: minimum: 1 type: integer project_id: - description: The UUID of the case management project. + description: The UUID of the Datadog Work Management (formerly Case Management) project. example: "11111111-1111-1111-1111-111111111111" format: uuid type: string @@ -155737,7 +155744,7 @@ components: action: $ref: "#/components/schemas/TicketCreationRuleAction" enabled: - description: Whether the ticket creation rule is enabled. + description: Whether the ticket creation rule is enabled. If it is omitted, the API saves it as `false` and the rule doesn't apply. example: true type: boolean name: @@ -155926,7 +155933,7 @@ components: - links type: object TicketCreationTarget: - description: The ticketing system to create tickets in. + description: The ticketing system to create tickets in. `case_management` is Datadog Work Management, formerly called Case Management. enum: - jira - case_management @@ -254660,7 +254667,13 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/default_inbox_rules/{rule_id}/disable: post: - description: Disable a default inbox rule for the current organization. + description: |- + Disable a default inbox rule for the current organization. + A disabled default rule stops adding the findings that match its `rule` to the Security + Inbox, and Datadog removes findings it added from the inbox unless another inbox rule matches them. + Disable a default rule when it doesn't fit how your organization reviews findings. To add your own + rules, use `CreateSecurityFindingsAutomationInboxRule`. Only `enabled` + changes. Existing findings can take up to two hours to update. To turn it back on, use `EnableSecurityFindingsAutomationDefaultInboxRule`. operationId: DisableSecurityFindingsAutomationDefaultInboxRule parameters: - description: |- @@ -254731,7 +254744,13 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/default_inbox_rules/{rule_id}/enable: post: - description: Enable a default inbox rule for the current organization. + description: |- + Enable a default inbox rule for the current organization. + An enabled default rule adds the findings that match its `rule` to the Security Inbox. + Default rules are enabled unless the organization disabled them. Only `enabled` changes; + the rule's `name`, `rule`, and `action` stay managed by Datadog. Existing findings can take up to two hours to update. + To turn it off again, use + `DisableSecurityFindingsAutomationDefaultInboxRule`. operationId: EnableSecurityFindingsAutomationDefaultInboxRule parameters: - description: |- @@ -254802,10 +254821,18 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/due_date_rules: get: - description: Get all due date rules for the current organization. + description: |- + Get all due date rules for the current organization. + A due date rule sets a remediation due date on the findings that match its `rule`: a number of + days per severity, counted from `action.due_from` (when the finding was first seen, or when a + fix became available). + The response lists rules in evaluation order: Datadog checks each finding against the due date + rules in this order and applies the first one that matches. A rule only matches findings whose + severity is listed in its `action.due_days_per_severity`. To change the order, use + `ReorderSecurityFindingsAutomationDueDateRules`. operationId: ListSecurityFindingsAutomationDueDateRules parameters: - - description: The number of rules per page. Maximum is 1000. + - description: The number of rules per page. Maximum is 1,000. in: query name: page[size] required: false @@ -254816,7 +254843,7 @@ paths: maximum: 1000 minimum: 1 type: integer - - description: The page number to return. + - description: The page number to return, starting at 0. in: query name: page[number] required: false @@ -254888,7 +254915,14 @@ paths: **Note**: This endpoint is in Preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: - description: Create a due date rule for the current organization. + description: |- + Create a due date rule for the current organization. + The rule sets a due date on every finding that matches `rule.finding_types`, `rule.query`, and + a severity listed in `action.due_days_per_severity`. It applies immediately to new findings; + Existing findings can take up to two hours to update. + Datadog adds the new rule to the end of the evaluation order. To move it, use + `ReorderSecurityFindingsAutomationDueDateRules`. An organization can have at most 1,000 due date rules; + creating more fails with a `422` error. operationId: CreateSecurityFindingsAutomationDueDateRule requestBody: content: @@ -254985,7 +255019,15 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/due_date_rules/reorder: post: - description: Reorder the list of due date rules for the current organization. + description: |- + Set the order in which due date rules are evaluated for the current organization. + Datadog checks each finding against the due date rules in this order and applies only the first rule that matches. + A rule only matches findings whose severity is listed in its `action.due_days_per_severity`. + The first item in `data` is evaluated first. + `data` must list every due date rule exactly once, using the IDs that + `ListSecurityFindingsAutomationDueDateRules` returns. If a rule is missing, unknown, or listed twice, the + request fails with a `422` error and the order doesn't change. Datadog adds rules created later + to the end of the evaluation order. operationId: ReorderSecurityFindingsAutomationDueDateRules requestBody: content: @@ -255049,10 +255091,14 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/due_date_rules/{rule_id}: delete: - description: Delete a due date rule by ID. + description: |- + Delete a due date rule by ID. + Deleting the rule removes the due dates it set on findings, unless another due date rule + matches them. Existing findings can take up to two hours to update. You can't restore a deleted rule. To stop a rule temporarily, + update it with `enabled: false` instead. operationId: DeleteSecurityFindingsAutomationDueDateRule parameters: - - description: The ID of the due date rule. + - description: The ID of the due date rule, as returned by `ListSecurityFindingsAutomationDueDateRules` or `CreateSecurityFindingsAutomationDueDateRule`. in: path name: rule_id required: true @@ -255087,7 +255133,7 @@ paths: description: Get the details of a due date rule by ID. operationId: GetSecurityFindingsAutomationDueDateRule parameters: - - description: The ID of the due date rule. + - description: The ID of the due date rule, as returned by `ListSecurityFindingsAutomationDueDateRules` or `CreateSecurityFindingsAutomationDueDateRule`. in: path name: rule_id required: true @@ -255153,10 +255199,14 @@ paths: **Note**: This endpoint is in Preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: - description: Update a due date rule by ID. + description: |- + Update a due date rule by ID. + This request replaces the whole rule. Send every attribute you want to keep, because the API clears + optional fields you omit and saves an omitted `enabled` as `false`. The rule keeps its ID and + its position in the evaluation order. operationId: UpdateSecurityFindingsAutomationDueDateRule parameters: - - description: The ID of the due date rule. + - description: The ID of the due date rule, as returned by `ListSecurityFindingsAutomationDueDateRules` or `CreateSecurityFindingsAutomationDueDateRule`. in: path name: rule_id required: true @@ -255266,10 +255316,17 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/inbox_rules: get: - description: Get all inbox rules for the current organization. + description: |- + Get all inbox rules for the current organization. + An inbox rule adds the findings that match its `rule` to the Security Inbox. This list + doesn't include the default inbox rules that Datadog manages. To get those, use + `ListSecurityFindingsAutomationDefaultInboxRules`. + The response lists rules in evaluation order: Datadog checks each finding against the inbox + rules in this order and applies the first one that matches. Datadog checks the default inbox rules + before these rules. To change the order, use `ReorderSecurityFindingsAutomationInboxRules`. operationId: ListSecurityFindingsAutomationInboxRules parameters: - - description: The number of rules per page. Maximum is 1000. + - description: The number of rules per page. Maximum is 1,000. in: query name: page[size] required: false @@ -255280,7 +255337,7 @@ paths: maximum: 1000 minimum: 1 type: integer - - description: The page number to return. + - description: The page number to return, starting at 0. in: query name: page[number] required: false @@ -255347,7 +255404,15 @@ paths: **Note**: This endpoint is in Preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: - description: Create an inbox rule for the current organization. + description: |- + Create an inbox rule for the current organization. + The rule adds every finding that matches `rule.finding_types` and `rule.query` to the + Security Inbox. It applies immediately to new findings; existing findings can + take up to two hours to update. Use inbox rules to surface findings that the Datadog default inbox rules + (`ListSecurityFindingsAutomationDefaultInboxRules`) don't cover. + Datadog adds the new rule to the end of the evaluation order. To move it, use + `ReorderSecurityFindingsAutomationInboxRules`. An organization can have at most 1,000 inbox rules; + creating more fails with a `422` error. operationId: CreateSecurityFindingsAutomationInboxRule requestBody: content: @@ -255434,7 +255499,15 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/inbox_rules/reorder: post: - description: Reorder the list of inbox rules for the current organization. + description: |- + Set the order in which inbox rules are evaluated for the current organization. + Datadog checks each finding against the inbox rules in this order and applies only the first rule that matches. + Datadog checks the default inbox rules (`ListSecurityFindingsAutomationDefaultInboxRules`) before these rules. + The first item in `data` is evaluated first. + `data` must list every inbox rule exactly once, using the IDs that + `ListSecurityFindingsAutomationInboxRules` returns. If a rule is missing, unknown, or listed twice, the + request fails with a `422` error and the order doesn't change. Datadog adds rules created later + to the end of the evaluation order. operationId: ReorderSecurityFindingsAutomationInboxRules requestBody: content: @@ -255498,10 +255571,15 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/inbox_rules/{rule_id}: delete: - description: Delete an inbox rule by ID. + description: |- + Delete an inbox rule by ID. + Datadog removes findings that the rule added from the Security Inbox, unless another inbox rule + matches them. Existing findings can take up to two hours to update. + You can't restore a deleted rule. To stop a rule temporarily, update it with `enabled: false` + instead. operationId: DeleteSecurityFindingsAutomationInboxRule parameters: - - description: The ID of the inbox rule. + - description: The ID of the inbox rule, as returned by `ListSecurityFindingsAutomationInboxRules` or `CreateSecurityFindingsAutomationInboxRule`. in: path name: rule_id required: true @@ -255536,7 +255614,7 @@ paths: description: Get the details of an inbox rule by ID. operationId: GetSecurityFindingsAutomationInboxRule parameters: - - description: The ID of the inbox rule. + - description: The ID of the inbox rule, as returned by `ListSecurityFindingsAutomationInboxRules` or `CreateSecurityFindingsAutomationInboxRule`. in: path name: rule_id required: true @@ -255597,10 +255675,14 @@ paths: **Note**: This endpoint is in Preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: - description: Update an inbox rule by ID. + description: |- + Update an inbox rule by ID. + This request replaces the whole rule. Send every attribute you want to keep, because the API clears + optional fields you omit and saves an omitted `enabled` as `false`. The rule keeps its ID and + its position in the evaluation order. operationId: UpdateSecurityFindingsAutomationInboxRule parameters: - - description: The ID of the inbox rule. + - description: The ID of the inbox rule, as returned by `ListSecurityFindingsAutomationInboxRules` or `CreateSecurityFindingsAutomationInboxRule`. in: path name: rule_id required: true @@ -255696,10 +255778,17 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/mute_rules: get: - description: Get all mute rules for the current organization. + description: |- + Get all mute rules for the current organization. + A mute rule automatically mutes new and existing findings that match its `rule` (finding types and query), + using the reason in its `action`. To mute or unmute specific findings by ID as a one-time action, + use `MuteSecurityFindings` instead. + The response lists rules in evaluation order: Datadog checks each finding against the mute + rules in this order and applies the first one that matches. To change the order, use + `ReorderSecurityFindingsAutomationMuteRules`. operationId: ListSecurityFindingsAutomationMuteRules parameters: - - description: The number of rules per page. Maximum is 1000. + - description: The number of rules per page. Maximum is 1,000. in: query name: page[size] required: false @@ -255710,7 +255799,7 @@ paths: maximum: 1000 minimum: 1 type: integer - - description: The page number to return. + - description: The page number to return, starting at 0. in: query name: page[number] required: false @@ -255779,7 +255868,17 @@ paths: **Note**: This endpoint is in Preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: - description: Create a mute rule for the current organization. + description: |- + Create a mute rule for the current organization. + The rule mutes every finding that matches `rule.finding_types` and `rule.query`, with the + reason in `action.reason`, until `action.expire_at` if set. It applies immediately to + new findings; existing findings can take up to two hours to update. Use a rule to keep + muting a class of findings, including ones detected later. To mute or unmute specific + findings by ID as a one-time action, use `MuteSecurityFindings` instead. Mute rules don't change + manually muted findings. + Datadog adds the new rule to the end of the evaluation order. To move it, use + `ReorderSecurityFindingsAutomationMuteRules`. An organization can have at most 1,000 mute rules; + creating more fails with a `422` error. operationId: CreateSecurityFindingsAutomationMuteRule requestBody: content: @@ -255870,7 +255969,14 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/mute_rules/reorder: post: - description: Reorder the list of mute rules for the current organization. + description: |- + Set the order in which mute rules are evaluated for the current organization. + Datadog checks each finding against the mute rules in this order and applies only the first rule that matches. + The first item in `data` is evaluated first. + `data` must list every mute rule exactly once, using the IDs that + `ListSecurityFindingsAutomationMuteRules` returns. If a rule is missing, unknown, or listed twice, the + request fails with a `422` error and the order doesn't change. Datadog adds rules created later + to the end of the order. operationId: ReorderSecurityFindingsAutomationMuteRules requestBody: content: @@ -255934,10 +256040,15 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/mute_rules/{rule_id}: delete: - description: Delete a mute rule by ID. + description: |- + Delete a mute rule by ID. + Datadog unmutes findings that the rule muted, unless another mute rule matches them. Manually + muted findings stay muted. Existing findings can take up to two hours to update. + You can't restore a deleted rule. To stop a rule temporarily, update it with `enabled: false` + instead. Disabling a rule has the same effect on findings as deleting it. operationId: DeleteSecurityFindingsAutomationMuteRule parameters: - - description: The ID of the mute rule. + - description: The ID of the mute rule, as returned by `ListSecurityFindingsAutomationMuteRules` or `CreateSecurityFindingsAutomationMuteRule`. in: path name: rule_id required: true @@ -255972,7 +256083,7 @@ paths: description: Get the details of a mute rule by ID. operationId: GetSecurityFindingsAutomationMuteRule parameters: - - description: The ID of the mute rule. + - description: The ID of the mute rule, as returned by `ListSecurityFindingsAutomationMuteRules` or `CreateSecurityFindingsAutomationMuteRule`. in: path name: rule_id required: true @@ -256035,10 +256146,14 @@ paths: **Note**: This endpoint is in Preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: - description: Update a mute rule by ID. + description: |- + Update a mute rule by ID. + This request replaces the whole rule. Send every attribute you want to keep, because the API clears + optional fields you omit and saves an omitted `enabled` as `false`. The rule keeps its ID and + its position in the evaluation order. operationId: UpdateSecurityFindingsAutomationMuteRule parameters: - - description: The ID of the mute rule. + - description: The ID of the mute rule, as returned by `ListSecurityFindingsAutomationMuteRules` or `CreateSecurityFindingsAutomationMuteRule`. in: path name: rule_id required: true @@ -256134,10 +256249,18 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/severity_modifier_rules: get: - description: Get all severity modifier rules for the current organization. + description: |- + Get all severity modifier rules for the current organization. + A severity modifier rule changes the severity of the findings that match its `rule`: it either + sets a fixed severity or shifts it up or down by one rank. Severity modifier rules run before + mute, due date, inbox, and ticket creation rules, so those rules see the modified severity. + To override the severity of specific findings by ID, use `UpdateFindingsSeverity` instead. + The response lists rules in evaluation order: Datadog checks each finding against the severity modifier + rules in this order and applies the first one that would change the finding's severity. To change the order, use + `ReorderSecurityFindingsAutomationSeverityModifierRules`. operationId: ListSecurityFindingsAutomationSeverityModifierRules parameters: - - description: The number of rules per page. Maximum is 1000. + - description: The number of rules per page. Maximum is 1,000. in: query name: page[size] required: false @@ -256148,7 +256271,7 @@ paths: maximum: 1000 minimum: 1 type: integer - - description: The page number to return. + - description: The page number to return, starting at 0. in: query name: page[number] required: false @@ -256219,7 +256342,17 @@ paths: **Note**: This endpoint is in Preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: - description: Create a severity modifier rule for the current organization. + description: |- + Create a severity modifier rule for the current organization. + The rule changes the severity of every finding that matches `rule.finding_types` and + `rule.query`. It applies immediately to new findings; existing findings can + take up to two hours to update. Use a rule to continuously adjust the severity of a class of findings, + such as all findings in a development environment. To override the severity of specific + findings by ID as a one-time action, use `UpdateFindingsSeverity` instead. `UpdateFindingsSeverity` can't + override or clear a severity set by a rule. + Datadog adds the new rule to the end of the evaluation order. To move it, use + `ReorderSecurityFindingsAutomationSeverityModifierRules`. An organization can have at most 1,000 severity modifier rules; + creating more fails with a `422` error. operationId: CreateSecurityFindingsAutomationSeverityModifierRule requestBody: content: @@ -256310,7 +256443,14 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/severity_modifier_rules/reorder: post: - description: Reorder the list of severity modifier rules for the current organization. + description: |- + Set the order in which severity modifier rules are evaluated for the current organization. + Datadog checks each finding against the severity modifier rules in this order and applies only the first rule that would change the finding's severity. + The first item in `data` is evaluated first. + `data` must list every severity modifier rule exactly once, using the IDs that + `ListSecurityFindingsAutomationSeverityModifierRules` returns. If a rule is missing, unknown, or listed twice, the + request fails with a `422` error and the order doesn't change. Datadog adds rules created later + to the end of the order. operationId: ReorderSecurityFindingsAutomationSeverityModifierRules requestBody: content: @@ -256374,10 +256514,16 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/severity_modifier_rules/{rule_id}: delete: - description: Delete a severity modifier rule by ID. + description: |- + Delete a severity modifier rule by ID. + Unresolved findings whose severity the rule changed go back to their Datadog severity, unless + another severity modifier rule matches them. Resolved findings keep the severity they had. + Existing findings can take up to two hours to update. + You can't restore a deleted rule. To stop a rule temporarily, update it with `enabled: false` + instead. operationId: DeleteSecurityFindingsAutomationSeverityModifierRule parameters: - - description: The ID of the severity modifier rule. + - description: The ID of the severity modifier rule, as returned by `ListSecurityFindingsAutomationSeverityModifierRules` or `CreateSecurityFindingsAutomationSeverityModifierRule`. in: path name: rule_id required: true @@ -256418,7 +256564,7 @@ paths: description: Get the details of a severity modifier rule by ID. operationId: GetSecurityFindingsAutomationSeverityModifierRule parameters: - - description: The ID of the severity modifier rule. + - description: The ID of the severity modifier rule, as returned by `ListSecurityFindingsAutomationSeverityModifierRules` or `CreateSecurityFindingsAutomationSeverityModifierRule`. in: path name: rule_id required: true @@ -256487,10 +256633,14 @@ paths: **Note**: This endpoint is in Preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: - description: Update a severity modifier rule by ID. + description: |- + Update a severity modifier rule by ID. + This request replaces the whole rule. Send every attribute you want to keep, because the API clears + optional fields you omit and saves an omitted `enabled` as `false`. The rule keeps its ID and + its position in the evaluation order. operationId: UpdateSecurityFindingsAutomationSeverityModifierRule parameters: - - description: The ID of the severity modifier rule. + - description: The ID of the severity modifier rule, as returned by `ListSecurityFindingsAutomationSeverityModifierRules` or `CreateSecurityFindingsAutomationSeverityModifierRule`. in: path name: rule_id required: true @@ -256588,10 +256738,20 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/ticket_creation_rules: get: - description: Get all ticket creation rules for the current organization. + description: |- + Get all ticket creation rules for the current organization. + A ticket creation rule automatically creates tickets for new findings that match its `rule`, + in Jira, Linear, or Datadog Work Management (`action.target`; formerly Case Management), up to + `action.max_tickets_per_day`. + Each returned rule includes its scope (`rule`), its target project, assignee, and ticket + fields (`action`), and `action.auto_disabled_reason` when Datadog disabled the rule after a + ticketing integration error. + The response lists rules in evaluation order: Datadog checks each finding against the ticket creation + rules in this order and applies the first one that matches. To change the order, use + `ReorderSecurityFindingsAutomationTicketCreationRules`. operationId: ListSecurityFindingsAutomationTicketCreationRules parameters: - - description: The number of rules per page. Maximum is 1000. + - description: The number of rules per page. Maximum is 1,000. in: query name: page[size] required: false @@ -256602,7 +256762,7 @@ paths: maximum: 1000 minimum: 1 type: integer - - description: The page number to return. + - description: The page number to return, starting at 0. in: query name: page[number] required: false @@ -256671,7 +256831,16 @@ paths: **Note**: This endpoint is in Preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: - description: Create a ticket creation rule for the current organization. + description: |- + Create a ticket creation rule for the current organization. + The rule automatically creates tickets for new findings that match `rule.finding_types` and + `rule.query`, in the project set by `action.target` and `action.project_id`. It doesn't + create tickets for findings that existed before the rule. Use a rule to create tickets for findings + continuously as Datadog detects them. To create tickets for specific existing findings, use + `CreateJiraIssues` or `CreateCases` instead. + Datadog adds the new rule to the end of the evaluation order. To move it, use + `ReorderSecurityFindingsAutomationTicketCreationRules`. An organization can have at most 1,000 ticket creation rules; + creating more fails with a `422` error. operationId: CreateSecurityFindingsAutomationTicketCreationRule requestBody: content: @@ -256762,7 +256931,14 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/ticket_creation_rules/reorder: post: - description: Reorder the list of ticket creation rules for the current organization. + description: |- + Set the order in which ticket creation rules are evaluated for the current organization. + Datadog checks each finding against the ticket creation rules in this order and applies only the first rule that matches. + The first item in `data` is evaluated first. + `data` must list every ticket creation rule exactly once, using the IDs that + `ListSecurityFindingsAutomationTicketCreationRules` returns. If a rule is missing, unknown, or listed twice, the + request fails with a `422` error and the order doesn't change. Datadog adds rules created later + to the end of the order. operationId: ReorderSecurityFindingsAutomationTicketCreationRules requestBody: content: @@ -256826,10 +257002,14 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/automation/ticket_creation_rules/{rule_id}: delete: - description: Delete a ticket creation rule by ID. + description: |- + Delete a ticket creation rule by ID. + Tickets that the rule already created stay attached to their findings and aren't deleted. + You can't restore a deleted rule. To stop a rule temporarily, update it with + `enabled: false` instead. operationId: DeleteSecurityFindingsAutomationTicketCreationRule parameters: - - description: The ID of the ticket creation rule. + - description: The ID of the ticket creation rule, as returned by `ListSecurityFindingsAutomationTicketCreationRules` or `CreateSecurityFindingsAutomationTicketCreationRule`. in: path name: rule_id required: true @@ -256864,7 +257044,7 @@ paths: description: Get the details of a ticket creation rule by ID. operationId: GetSecurityFindingsAutomationTicketCreationRule parameters: - - description: The ID of the ticket creation rule. + - description: The ID of the ticket creation rule, as returned by `ListSecurityFindingsAutomationTicketCreationRules` or `CreateSecurityFindingsAutomationTicketCreationRule`. in: path name: rule_id required: true @@ -256927,10 +257107,16 @@ paths: **Note**: This endpoint is in Preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: - description: Update a ticket creation rule by ID. + description: |- + Update a ticket creation rule by ID. + This request replaces the whole rule. Send every attribute you want to keep, because the API clears + optional fields you omit and saves an omitted `enabled` as `false`. The rule keeps its ID and + its position in the evaluation order. + To re-enable a rule that Datadog disabled after a ticketing integration error, update it. + Updating a rule clears `action.auto_disabled_reason`. operationId: UpdateSecurityFindingsAutomationTicketCreationRule parameters: - - description: The ID of the ticket creation rule. + - description: The ID of the ticket creation rule, as returned by `ListSecurityFindingsAutomationTicketCreationRules` or `CreateSecurityFindingsAutomationTicketCreationRule`. in: path name: rule_id required: true 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..551802907f5 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 @@ -4599,7 +4599,13 @@ public CompletableFuture createSecurityFindingsAutomationDu } /** - * Create a due date rule for the current organization. + * Create a due date rule for the current organization. The rule sets a due date on every finding + * that matches rule.finding_types, rule.query, and a severity listed in + * action.due_days_per_severity. It applies immediately to new findings; Existing + * findings can take up to two hours to update. Datadog adds the new rule to the end of the + * evaluation order. To move it, use ReorderSecurityFindingsAutomationDueDateRules. + * An organization can have at most 1,000 due date rules; creating more fails with a 422 + * error. * * @param body (required) * @return ApiResponse<DueDateRuleResponse> @@ -4754,7 +4760,14 @@ public CompletableFuture createSecurityFindingsAutomationInbo } /** - * Create an inbox rule for the current organization. + * Create an inbox rule for the current organization. The rule adds every finding that matches + * rule.finding_types and rule.query to the Security Inbox. It applies + * immediately to new findings; existing findings can take up to two hours to update. Use inbox + * rules to surface findings that the Datadog default inbox rules ( + * ListSecurityFindingsAutomationDefaultInboxRules) don't cover. Datadog adds the new rule + * to the end of the evaluation order. To move it, use + * ReorderSecurityFindingsAutomationInboxRules. An organization can have at most 1,000 + * inbox rules; creating more fails with a 422 error. * * @param body (required) * @return ApiResponse<InboxRuleResponse> @@ -4909,7 +4922,15 @@ public CompletableFuture createSecurityFindingsAutomationMuteR } /** - * Create a mute rule for the current organization. + * Create a mute rule for the current organization. The rule mutes every finding that matches + * rule.finding_types and rule.query, with the reason in + * action.reason, until action.expire_at if set. It applies immediately to new + * findings; existing findings can take up to two hours to update. Use a rule to keep muting a + * class of findings, including ones detected later. To mute or unmute specific findings by ID as + * a one-time action, use MuteSecurityFindings instead. Mute rules don't change + * manually muted findings. Datadog adds the new rule to the end of the evaluation order. To move + * it, use ReorderSecurityFindingsAutomationMuteRules. An organization can have at + * most 1,000 mute rules; creating more fails with a 422 error. * * @param body (required) * @return ApiResponse<MuteRuleResponse> @@ -5065,7 +5086,16 @@ public SeverityModifierRuleResponse createSecurityFindingsAutomationSeverityModi } /** - * Create a severity modifier rule for the current organization. + * Create a severity modifier rule for the current organization. The rule changes the severity of + * every finding that matches rule.finding_types and rule.query. It + * applies immediately to new findings; existing findings can take up to two hours to update. Use + * a rule to continuously adjust the severity of a class of findings, such as all findings in a + * development environment. To override the severity of specific findings by ID as a one-time + * action, use UpdateFindingsSeverity instead. UpdateFindingsSeverity + * can't override or clear a severity set by a rule. Datadog adds the new rule to the end of the + * evaluation order. To move it, use ReorderSecurityFindingsAutomationSeverityModifierRules + * . An organization can have at most 1,000 severity modifier rules; creating more fails + * with a 422 error. * * @param body (required) * @return ApiResponse<SeverityModifierRuleResponse> @@ -5226,7 +5256,15 @@ public TicketCreationRuleResponse createSecurityFindingsAutomationTicketCreation } /** - * Create a ticket creation rule for the current organization. + * Create a ticket creation rule for the current organization. The rule automatically creates + * tickets for new findings that match rule.finding_types and rule.query + * , in the project set by action.target and action.project_id. It + * doesn't create tickets for findings that existed before the rule. Use a rule to create tickets + * for findings continuously as Datadog detects them. To create tickets for specific existing + * findings, use CreateJiraIssues or CreateCases instead. Datadog adds + * the new rule to the end of the evaluation order. To move it, use + * ReorderSecurityFindingsAutomationTicketCreationRules. An organization can have at most + * 1,000 ticket creation rules; creating more fails with a 422 error. * * @param body (required) * @return ApiResponse<TicketCreationRuleResponse> @@ -8145,7 +8183,9 @@ public CompletableFuture> deleteSecurityFilterWithHttpInfoAsyn * *

See {@link #deleteSecurityFindingsAutomationDueDateRuleWithHttpInfo}. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @throws ApiException if fails to make API call */ public void deleteSecurityFindingsAutomationDueDateRule(UUID ruleId) throws ApiException { @@ -8157,7 +8197,9 @@ public void deleteSecurityFindingsAutomationDueDateRule(UUID ruleId) throws ApiE * *

See {@link #deleteSecurityFindingsAutomationDueDateRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @return CompletableFuture */ public CompletableFuture deleteSecurityFindingsAutomationDueDateRuleAsync(UUID ruleId) { @@ -8169,9 +8211,14 @@ public CompletableFuture deleteSecurityFindingsAutomationDueDateRuleAsync( } /** - * Delete a due date rule by ID. + * Delete a due date rule by ID. Deleting the rule removes the due dates it set on findings, + * unless another due date rule matches them. Existing findings can take up to two hours to + * update. You can't restore a deleted rule. To stop a rule temporarily, update it with + * enabled: false instead. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -8234,7 +8281,9 @@ public ApiResponse deleteSecurityFindingsAutomationDueDateRuleWithHttpInfo * *

See {@link #deleteSecurityFindingsAutomationDueDateRuleWithHttpInfo}. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> @@ -8300,7 +8349,9 @@ public ApiResponse deleteSecurityFindingsAutomationDueDateRuleWithHttpInfo * *

See {@link #deleteSecurityFindingsAutomationInboxRuleWithHttpInfo}. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @throws ApiException if fails to make API call */ public void deleteSecurityFindingsAutomationInboxRule(UUID ruleId) throws ApiException { @@ -8312,7 +8363,9 @@ public void deleteSecurityFindingsAutomationInboxRule(UUID ruleId) throws ApiExc * *

See {@link #deleteSecurityFindingsAutomationInboxRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @return CompletableFuture */ public CompletableFuture deleteSecurityFindingsAutomationInboxRuleAsync(UUID ruleId) { @@ -8324,9 +8377,14 @@ public CompletableFuture deleteSecurityFindingsAutomationInboxRuleAsync(UU } /** - * Delete an inbox rule by ID. + * Delete an inbox rule by ID. Datadog removes findings that the rule added from the Security + * Inbox, unless another inbox rule matches them. Existing findings can take up to two hours to + * update. You can't restore a deleted rule. To stop a rule temporarily, update it with + * enabled: false instead. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -8389,7 +8447,9 @@ public ApiResponse deleteSecurityFindingsAutomationInboxRuleWithHttpInfo(U * *

See {@link #deleteSecurityFindingsAutomationInboxRuleWithHttpInfo}. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> @@ -8455,7 +8515,9 @@ public ApiResponse deleteSecurityFindingsAutomationInboxRuleWithHttpInfo(U * *

See {@link #deleteSecurityFindingsAutomationMuteRuleWithHttpInfo}. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @throws ApiException if fails to make API call */ public void deleteSecurityFindingsAutomationMuteRule(UUID ruleId) throws ApiException { @@ -8467,7 +8529,9 @@ public void deleteSecurityFindingsAutomationMuteRule(UUID ruleId) throws ApiExce * *

See {@link #deleteSecurityFindingsAutomationMuteRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @return CompletableFuture */ public CompletableFuture deleteSecurityFindingsAutomationMuteRuleAsync(UUID ruleId) { @@ -8479,9 +8543,15 @@ public CompletableFuture deleteSecurityFindingsAutomationMuteRuleAsync(UUI } /** - * Delete a mute rule by ID. + * Delete a mute rule by ID. Datadog unmutes findings that the rule muted, unless another mute + * rule matches them. Manually muted findings stay muted. Existing findings can take up to two + * hours to update. You can't restore a deleted rule. To stop a rule temporarily, update it with + * enabled: false instead. Disabling a rule has the same effect on findings as + * deleting it. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -8544,7 +8614,9 @@ public ApiResponse deleteSecurityFindingsAutomationMuteRuleWithHttpInfo(UU * *

See {@link #deleteSecurityFindingsAutomationMuteRuleWithHttpInfo}. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> @@ -8610,7 +8682,9 @@ public ApiResponse deleteSecurityFindingsAutomationMuteRuleWithHttpInfo(UU * *

See {@link #deleteSecurityFindingsAutomationSeverityModifierRuleWithHttpInfo}. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @throws ApiException if fails to make API call */ public void deleteSecurityFindingsAutomationSeverityModifierRule(UUID ruleId) @@ -8623,7 +8697,9 @@ public void deleteSecurityFindingsAutomationSeverityModifierRule(UUID ruleId) * *

See {@link #deleteSecurityFindingsAutomationSeverityModifierRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @return CompletableFuture */ public CompletableFuture deleteSecurityFindingsAutomationSeverityModifierRuleAsync( @@ -8636,9 +8712,15 @@ public CompletableFuture deleteSecurityFindingsAutomationSeverityModifierR } /** - * Delete a severity modifier rule by ID. + * Delete a severity modifier rule by ID. Unresolved findings whose severity the rule changed go + * back to their Datadog severity, unless another severity modifier rule matches them. Resolved + * findings keep the severity they had. Existing findings can take up to two hours to update. You + * can't restore a deleted rule. To stop a rule temporarily, update it with enabled: false + * instead. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -8702,7 +8784,9 @@ public ApiResponse deleteSecurityFindingsAutomationSeverityModifierRuleWit * *

See {@link #deleteSecurityFindingsAutomationSeverityModifierRuleWithHttpInfo}. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> @@ -8768,7 +8852,9 @@ public ApiResponse deleteSecurityFindingsAutomationSeverityModifierRuleWit * *

See {@link #deleteSecurityFindingsAutomationTicketCreationRuleWithHttpInfo}. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @throws ApiException if fails to make API call */ public void deleteSecurityFindingsAutomationTicketCreationRule(UUID ruleId) throws ApiException { @@ -8780,7 +8866,9 @@ public void deleteSecurityFindingsAutomationTicketCreationRule(UUID ruleId) thro * *

See {@link #deleteSecurityFindingsAutomationTicketCreationRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @return CompletableFuture */ public CompletableFuture deleteSecurityFindingsAutomationTicketCreationRuleAsync( @@ -8793,9 +8881,13 @@ public CompletableFuture deleteSecurityFindingsAutomationTicketCreationRul } /** - * Delete a ticket creation rule by ID. + * Delete a ticket creation rule by ID. Tickets that the rule already created stay attached to + * their findings and aren't deleted. You can't restore a deleted rule. To stop a rule + * temporarily, update it with enabled: false instead. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -8858,7 +8950,9 @@ public ApiResponse deleteSecurityFindingsAutomationTicketCreationRuleWithH * *

See {@link #deleteSecurityFindingsAutomationTicketCreationRuleWithHttpInfo}. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> @@ -10451,7 +10545,13 @@ public DefaultInboxRuleResponse disableSecurityFindingsAutomationDefaultInboxRul } /** - * Disable a default inbox rule for the current organization. + * Disable a default inbox rule for the current organization. A disabled default rule stops adding + * the findings that match its rule to the Security Inbox, and Datadog removes + * findings it added from the inbox unless another inbox rule matches them. Disable a default rule + * when it doesn't fit how your organization reviews findings. To add your own rules, use + * CreateSecurityFindingsAutomationInboxRule. Only enabled changes. Existing + * findings can take up to two hours to update. To turn it back on, use + * EnableSecurityFindingsAutomationDefaultInboxRule. * * @param ruleId The ID of the default inbox rule. Known default rule IDs include: * identity_risk_default_rule, secret_default_rule, @@ -11318,7 +11418,12 @@ public DefaultInboxRuleResponse enableSecurityFindingsAutomationDefaultInboxRule } /** - * Enable a default inbox rule for the current organization. + * Enable a default inbox rule for the current organization. An enabled default rule adds the + * findings that match its rule to the Security Inbox. Default rules are enabled + * unless the organization disabled them. Only enabled changes; the rule's name + * , rule, and action stay managed by Datadog. Existing findings + * can take up to two hours to update. To turn it off again, use + * DisableSecurityFindingsAutomationDefaultInboxRule. * * @param ruleId The ID of the default inbox rule. Known default rule IDs include: * identity_risk_default_rule, secret_default_rule, @@ -15049,7 +15154,9 @@ public DefaultInboxRuleResponse getSecurityFindingsAutomationDefaultInboxRule(St * *

See {@link #getSecurityFindingsAutomationDueDateRuleWithHttpInfo}. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @return DueDateRuleResponse * @throws ApiException if fails to make API call */ @@ -15063,7 +15170,9 @@ public DueDateRuleResponse getSecurityFindingsAutomationDueDateRule(UUID ruleId) * *

See {@link #getSecurityFindingsAutomationDueDateRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @return CompletableFuture<DueDateRuleResponse> */ public CompletableFuture getSecurityFindingsAutomationDueDateRuleAsync( @@ -15078,7 +15187,9 @@ public CompletableFuture getSecurityFindingsAutomationDueDa /** * Get the details of a due date rule by ID. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @return ApiResponse<DueDateRuleResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -15141,7 +15252,9 @@ public ApiResponse getSecurityFindingsAutomationDueDateRule * *

See {@link #getSecurityFindingsAutomationDueDateRuleWithHttpInfo}. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @return CompletableFuture<ApiResponse<DueDateRuleResponse>> */ public CompletableFuture> @@ -15207,7 +15320,9 @@ public ApiResponse getSecurityFindingsAutomationDueDateRule * *

See {@link #getSecurityFindingsAutomationInboxRuleWithHttpInfo}. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @return InboxRuleResponse * @throws ApiException if fails to make API call */ @@ -15220,7 +15335,9 @@ public InboxRuleResponse getSecurityFindingsAutomationInboxRule(UUID ruleId) thr * *

See {@link #getSecurityFindingsAutomationInboxRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @return CompletableFuture<InboxRuleResponse> */ public CompletableFuture getSecurityFindingsAutomationInboxRuleAsync( @@ -15235,7 +15352,9 @@ public CompletableFuture getSecurityFindingsAutomationInboxRu /** * Get the details of an inbox rule by ID. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @return ApiResponse<InboxRuleResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -15298,7 +15417,9 @@ public ApiResponse getSecurityFindingsAutomationInboxRuleWith * *

See {@link #getSecurityFindingsAutomationInboxRuleWithHttpInfo}. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @return CompletableFuture<ApiResponse<InboxRuleResponse>> */ public CompletableFuture> @@ -15364,7 +15485,9 @@ public ApiResponse getSecurityFindingsAutomationInboxRuleWith * *

See {@link #getSecurityFindingsAutomationMuteRuleWithHttpInfo}. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @return MuteRuleResponse * @throws ApiException if fails to make API call */ @@ -15377,7 +15500,9 @@ public MuteRuleResponse getSecurityFindingsAutomationMuteRule(UUID ruleId) throw * *

See {@link #getSecurityFindingsAutomationMuteRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @return CompletableFuture<MuteRuleResponse> */ public CompletableFuture getSecurityFindingsAutomationMuteRuleAsync( @@ -15392,7 +15517,9 @@ public CompletableFuture getSecurityFindingsAutomationMuteRule /** * Get the details of a mute rule by ID. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @return ApiResponse<MuteRuleResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -15455,7 +15582,9 @@ public ApiResponse getSecurityFindingsAutomationMuteRuleWithHt * *

See {@link #getSecurityFindingsAutomationMuteRuleWithHttpInfo}. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @return CompletableFuture<ApiResponse<MuteRuleResponse>> */ public CompletableFuture> @@ -15521,7 +15650,9 @@ public ApiResponse getSecurityFindingsAutomationMuteRuleWithHt * *

See {@link #getSecurityFindingsAutomationSeverityModifierRuleWithHttpInfo}. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @return SeverityModifierRuleResponse * @throws ApiException if fails to make API call */ @@ -15535,7 +15666,9 @@ public SeverityModifierRuleResponse getSecurityFindingsAutomationSeverityModifie * *

See {@link #getSecurityFindingsAutomationSeverityModifierRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @return CompletableFuture<SeverityModifierRuleResponse> */ public CompletableFuture @@ -15550,7 +15683,9 @@ public SeverityModifierRuleResponse getSecurityFindingsAutomationSeverityModifie /** * Get the details of a severity modifier rule by ID. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @return ApiResponse<SeverityModifierRuleResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -15615,7 +15750,9 @@ public SeverityModifierRuleResponse getSecurityFindingsAutomationSeverityModifie * *

See {@link #getSecurityFindingsAutomationSeverityModifierRuleWithHttpInfo}. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @return CompletableFuture<ApiResponse<SeverityModifierRuleResponse>> */ public CompletableFuture> @@ -15684,7 +15821,9 @@ public SeverityModifierRuleResponse getSecurityFindingsAutomationSeverityModifie * *

See {@link #getSecurityFindingsAutomationTicketCreationRuleWithHttpInfo}. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @return TicketCreationRuleResponse * @throws ApiException if fails to make API call */ @@ -15698,7 +15837,9 @@ public TicketCreationRuleResponse getSecurityFindingsAutomationTicketCreationRul * *

See {@link #getSecurityFindingsAutomationTicketCreationRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @return CompletableFuture<TicketCreationRuleResponse> */ public CompletableFuture @@ -15713,7 +15854,9 @@ public TicketCreationRuleResponse getSecurityFindingsAutomationTicketCreationRul /** * Get the details of a ticket creation rule by ID. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @return ApiResponse<TicketCreationRuleResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -15776,7 +15919,9 @@ public TicketCreationRuleResponse getSecurityFindingsAutomationTicketCreationRul * *

See {@link #getSecurityFindingsAutomationTicketCreationRuleWithHttpInfo}. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @return CompletableFuture<ApiResponse<TicketCreationRuleResponse>> */ public CompletableFuture> @@ -23166,7 +23311,7 @@ public static class ListSecurityFindingsAutomationDueDateRulesOptionalParameters /** * Set pageSize. * - * @param pageSize The number of rules per page. Maximum is 1000. (optional, default to 1000) + * @param pageSize The number of rules per page. Maximum is 1,000. (optional, default to 1000) * @return ListSecurityFindingsAutomationDueDateRulesOptionalParameters */ public ListSecurityFindingsAutomationDueDateRulesOptionalParameters pageSize(Long pageSize) { @@ -23177,7 +23322,7 @@ public ListSecurityFindingsAutomationDueDateRulesOptionalParameters pageSize(Lon /** * Set pageNumber. * - * @param pageNumber The page number to return. (optional, default to 0) + * @param pageNumber The page number to return, starting at 0. (optional, default to 0) * @return ListSecurityFindingsAutomationDueDateRulesOptionalParameters */ public ListSecurityFindingsAutomationDueDateRulesOptionalParameters pageNumber( @@ -23249,7 +23394,13 @@ public CompletableFuture listSecurityFindingsAutomationDue } /** - * Get all due date rules for the current organization. + * Get all due date rules for the current organization. A due date rule sets a remediation due + * date on the findings that match its rule: a number of days per severity, counted + * from action.due_from (when the finding was first seen, or when a fix became + * available). The response lists rules in evaluation order: Datadog checks each finding against + * the due date rules in this order and applies the first one that matches. A rule only matches + * findings whose severity is listed in its action.due_days_per_severity. To change + * the order, use ReorderSecurityFindingsAutomationDueDateRules. * * @param parameters Optional parameters for the request. * @return ApiResponse<DueDateRulesResponse> @@ -23372,7 +23523,7 @@ public static class ListSecurityFindingsAutomationInboxRulesOptionalParameters { /** * Set pageSize. * - * @param pageSize The number of rules per page. Maximum is 1000. (optional, default to 1000) + * @param pageSize The number of rules per page. Maximum is 1,000. (optional, default to 1000) * @return ListSecurityFindingsAutomationInboxRulesOptionalParameters */ public ListSecurityFindingsAutomationInboxRulesOptionalParameters pageSize(Long pageSize) { @@ -23383,7 +23534,7 @@ public ListSecurityFindingsAutomationInboxRulesOptionalParameters pageSize(Long /** * Set pageNumber. * - * @param pageNumber The page number to return. (optional, default to 0) + * @param pageNumber The page number to return, starting at 0. (optional, default to 0) * @return ListSecurityFindingsAutomationInboxRulesOptionalParameters */ public ListSecurityFindingsAutomationInboxRulesOptionalParameters pageNumber(Long pageNumber) { @@ -23454,7 +23605,13 @@ public CompletableFuture listSecurityFindingsAutomationInbox } /** - * Get all inbox rules for the current organization. + * Get all inbox rules for the current organization. An inbox rule adds the findings that match + * its rule to the Security Inbox. This list doesn't include the default inbox rules + * that Datadog manages. To get those, use ListSecurityFindingsAutomationDefaultInboxRules + * . The response lists rules in evaluation order: Datadog checks each finding against the + * inbox rules in this order and applies the first one that matches. Datadog checks the default + * inbox rules before these rules. To change the order, use + * ReorderSecurityFindingsAutomationInboxRules. * * @param parameters Optional parameters for the request. * @return ApiResponse<InboxRulesResponse> @@ -23577,7 +23734,7 @@ public static class ListSecurityFindingsAutomationMuteRulesOptionalParameters { /** * Set pageSize. * - * @param pageSize The number of rules per page. Maximum is 1000. (optional, default to 1000) + * @param pageSize The number of rules per page. Maximum is 1,000. (optional, default to 1000) * @return ListSecurityFindingsAutomationMuteRulesOptionalParameters */ public ListSecurityFindingsAutomationMuteRulesOptionalParameters pageSize(Long pageSize) { @@ -23588,7 +23745,7 @@ public ListSecurityFindingsAutomationMuteRulesOptionalParameters pageSize(Long p /** * Set pageNumber. * - * @param pageNumber The page number to return. (optional, default to 0) + * @param pageNumber The page number to return, starting at 0. (optional, default to 0) * @return ListSecurityFindingsAutomationMuteRulesOptionalParameters */ public ListSecurityFindingsAutomationMuteRulesOptionalParameters pageNumber(Long pageNumber) { @@ -23659,7 +23816,12 @@ public CompletableFuture listSecurityFindingsAutomationMuteRu } /** - * Get all mute rules for the current organization. + * Get all mute rules for the current organization. A mute rule automatically mutes new and + * existing findings that match its rule (finding types and query), using the reason + * in its action. To mute or unmute specific findings by ID as a one-time action, use + * MuteSecurityFindings instead. The response lists rules in evaluation order: + * Datadog checks each finding against the mute rules in this order and applies the first one that + * matches. To change the order, use ReorderSecurityFindingsAutomationMuteRules. * * @param parameters Optional parameters for the request. * @return ApiResponse<MuteRulesResponse> @@ -23782,7 +23944,7 @@ public static class ListSecurityFindingsAutomationSeverityModifierRulesOptionalP /** * Set pageSize. * - * @param pageSize The number of rules per page. Maximum is 1000. (optional, default to 1000) + * @param pageSize The number of rules per page. Maximum is 1,000. (optional, default to 1000) * @return ListSecurityFindingsAutomationSeverityModifierRulesOptionalParameters */ public ListSecurityFindingsAutomationSeverityModifierRulesOptionalParameters pageSize( @@ -23794,7 +23956,7 @@ public ListSecurityFindingsAutomationSeverityModifierRulesOptionalParameters pag /** * Set pageNumber. * - * @param pageNumber The page number to return. (optional, default to 0) + * @param pageNumber The page number to return, starting at 0. (optional, default to 0) * @return ListSecurityFindingsAutomationSeverityModifierRulesOptionalParameters */ public ListSecurityFindingsAutomationSeverityModifierRulesOptionalParameters pageNumber( @@ -23870,7 +24032,14 @@ public SeverityModifierRulesResponse listSecurityFindingsAutomationSeverityModif } /** - * Get all severity modifier rules for the current organization. + * Get all severity modifier rules for the current organization. A severity modifier rule changes + * the severity of the findings that match its rule: it either sets a fixed severity + * or shifts it up or down by one rank. Severity modifier rules run before mute, due date, inbox, + * and ticket creation rules, so those rules see the modified severity. To override the severity + * of specific findings by ID, use UpdateFindingsSeverity instead. The response lists + * rules in evaluation order: Datadog checks each finding against the severity modifier rules in + * this order and applies the first one that would change the finding's severity. To change the + * order, use ReorderSecurityFindingsAutomationSeverityModifierRules. * * @param parameters Optional parameters for the request. * @return ApiResponse<SeverityModifierRulesResponse> @@ -23998,7 +24167,7 @@ public static class ListSecurityFindingsAutomationTicketCreationRulesOptionalPar /** * Set pageSize. * - * @param pageSize The number of rules per page. Maximum is 1000. (optional, default to 1000) + * @param pageSize The number of rules per page. Maximum is 1,000. (optional, default to 1000) * @return ListSecurityFindingsAutomationTicketCreationRulesOptionalParameters */ public ListSecurityFindingsAutomationTicketCreationRulesOptionalParameters pageSize( @@ -24010,7 +24179,7 @@ public ListSecurityFindingsAutomationTicketCreationRulesOptionalParameters pageS /** * Set pageNumber. * - * @param pageNumber The page number to return. (optional, default to 0) + * @param pageNumber The page number to return, starting at 0. (optional, default to 0) * @return ListSecurityFindingsAutomationTicketCreationRulesOptionalParameters */ public ListSecurityFindingsAutomationTicketCreationRulesOptionalParameters pageNumber( @@ -24086,7 +24255,15 @@ public TicketCreationRulesResponse listSecurityFindingsAutomationTicketCreationR } /** - * Get all ticket creation rules for the current organization. + * Get all ticket creation rules for the current organization. A ticket creation rule + * automatically creates tickets for new findings that match its rule, in Jira, + * Linear, or Datadog Work Management (action.target; formerly Case Management), up + * to action.max_tickets_per_day. Each returned rule includes its scope (rule + * ), its target project, assignee, and ticket fields (action), and + * action.auto_disabled_reason when Datadog disabled the rule after a ticketing integration + * error. The response lists rules in evaluation order: Datadog checks each finding against the + * ticket creation rules in this order and applies the first one that matches. To change the + * order, use ReorderSecurityFindingsAutomationTicketCreationRules. * * @param parameters Optional parameters for the request. * @return ApiResponse<TicketCreationRulesResponse> @@ -28804,7 +28981,14 @@ public DueDateRuleReorderResponse reorderSecurityFindingsAutomationDueDateRules( } /** - * Reorder the list of due date rules for the current organization. + * Set the order in which due date rules are evaluated for the current organization. Datadog + * checks each finding against the due date rules in this order and applies only the first rule + * that matches. A rule only matches findings whose severity is listed in its + * action.due_days_per_severity. The first item in data is evaluated first. + * data must list every due date rule exactly once, using the IDs that + * ListSecurityFindingsAutomationDueDateRules returns. If a rule is missing, unknown, or + * listed twice, the request fails with a 422 error and the order doesn't change. + * Datadog adds rules created later to the end of the evaluation order. * * @param body (required) * @return ApiResponse<DueDateRuleReorderResponse> @@ -28961,7 +29145,14 @@ public InboxRuleReorderResponse reorderSecurityFindingsAutomationInboxRules( } /** - * Reorder the list of inbox rules for the current organization. + * Set the order in which inbox rules are evaluated for the current organization. Datadog checks + * each finding against the inbox rules in this order and applies only the first rule that + * matches. Datadog checks the default inbox rules ( + * ListSecurityFindingsAutomationDefaultInboxRules) before these rules. The first item in + * data is evaluated first. data must list every inbox rule exactly + * once, using the IDs that ListSecurityFindingsAutomationInboxRules returns. If a + * rule is missing, unknown, or listed twice, the request fails with a 422 error and + * the order doesn't change. Datadog adds rules created later to the end of the evaluation order. * * @param body (required) * @return ApiResponse<InboxRuleReorderResponse> @@ -29117,7 +29308,13 @@ public CompletableFuture reorderSecurityFindingsAutomat } /** - * Reorder the list of mute rules for the current organization. + * Set the order in which mute rules are evaluated for the current organization. Datadog checks + * each finding against the mute rules in this order and applies only the first rule that matches. + * The first item in data is evaluated first. data must list every mute + * rule exactly once, using the IDs that ListSecurityFindingsAutomationMuteRules + * returns. If a rule is missing, unknown, or listed twice, the request fails with a 422 + * error and the order doesn't change. Datadog adds rules created later to the end of the + * order. * * @param body (required) * @return ApiResponse<MuteRuleReorderResponse> @@ -29274,7 +29471,13 @@ public SeverityModifierRuleReorderResponse reorderSecurityFindingsAutomationSeve } /** - * Reorder the list of severity modifier rules for the current organization. + * Set the order in which severity modifier rules are evaluated for the current organization. + * Datadog checks each finding against the severity modifier rules in this order and applies only + * the first rule that would change the finding's severity. The first item in data is + * evaluated first. data must list every severity modifier rule exactly once, using + * the IDs that ListSecurityFindingsAutomationSeverityModifierRules returns. If a + * rule is missing, unknown, or listed twice, the request fails with a 422 error and + * the order doesn't change. Datadog adds rules created later to the end of the order. * * @param body (required) * @return ApiResponse<SeverityModifierRuleReorderResponse> @@ -29435,7 +29638,13 @@ public TicketCreationRuleReorderResponse reorderSecurityFindingsAutomationTicket } /** - * Reorder the list of ticket creation rules for the current organization. + * Set the order in which ticket creation rules are evaluated for the current organization. + * Datadog checks each finding against the ticket creation rules in this order and applies only + * the first rule that matches. The first item in data is evaluated first. data + * must list every ticket creation rule exactly once, using the IDs that + * ListSecurityFindingsAutomationTicketCreationRules returns. If a rule is missing, + * unknown, or listed twice, the request fails with a 422 error and the order doesn't + * change. Datadog adds rules created later to the end of the order. * * @param body (required) * @return ApiResponse<TicketCreationRuleReorderResponse> @@ -32445,7 +32654,9 @@ public ApiResponse updateSecurityFilterWithHttpInfo( * *

See {@link #updateSecurityFindingsAutomationDueDateRuleWithHttpInfo}. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @param body (required) * @return DueDateRuleResponse * @throws ApiException if fails to make API call @@ -32460,7 +32671,9 @@ public DueDateRuleResponse updateSecurityFindingsAutomationDueDateRule( * *

See {@link #updateSecurityFindingsAutomationDueDateRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @param body (required) * @return CompletableFuture<DueDateRuleResponse> */ @@ -32474,9 +32687,14 @@ public CompletableFuture updateSecurityFindingsAutomationDu } /** - * Update a due date rule by ID. + * Update a due date rule by ID. This request replaces the whole rule. Send every attribute you + * want to keep, because the API clears optional fields you omit and saves an omitted + * enabled as false. The rule keeps its ID and its position in the evaluation + * order. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @param body (required) * @return ApiResponse<DueDateRuleResponse> * @throws ApiException if fails to make API call @@ -32550,7 +32768,9 @@ public ApiResponse updateSecurityFindingsAutomationDueDateR * *

See {@link #updateSecurityFindingsAutomationDueDateRuleWithHttpInfo}. * - * @param ruleId The ID of the due date rule. (required) + * @param ruleId The ID of the due date rule, as returned by + * ListSecurityFindingsAutomationDueDateRules or + * CreateSecurityFindingsAutomationDueDateRule. (required) * @param body (required) * @return CompletableFuture<ApiResponse<DueDateRuleResponse>> */ @@ -32629,7 +32849,9 @@ public ApiResponse updateSecurityFindingsAutomationDueDateR * *

See {@link #updateSecurityFindingsAutomationInboxRuleWithHttpInfo}. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @param body (required) * @return InboxRuleResponse * @throws ApiException if fails to make API call @@ -32644,7 +32866,9 @@ public InboxRuleResponse updateSecurityFindingsAutomationInboxRule( * *

See {@link #updateSecurityFindingsAutomationInboxRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @param body (required) * @return CompletableFuture<InboxRuleResponse> */ @@ -32658,9 +32882,13 @@ public CompletableFuture updateSecurityFindingsAutomationInbo } /** - * Update an inbox rule by ID. + * Update an inbox rule by ID. This request replaces the whole rule. Send every attribute you want + * to keep, because the API clears optional fields you omit and saves an omitted enabled + * as false. The rule keeps its ID and its position in the evaluation order. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @param body (required) * @return ApiResponse<InboxRuleResponse> * @throws ApiException if fails to make API call @@ -32734,7 +32962,9 @@ public ApiResponse updateSecurityFindingsAutomationInboxRuleW * *

See {@link #updateSecurityFindingsAutomationInboxRuleWithHttpInfo}. * - * @param ruleId The ID of the inbox rule. (required) + * @param ruleId The ID of the inbox rule, as returned by + * ListSecurityFindingsAutomationInboxRules or + * CreateSecurityFindingsAutomationInboxRule. (required) * @param body (required) * @return CompletableFuture<ApiResponse<InboxRuleResponse>> */ @@ -32813,7 +33043,9 @@ public ApiResponse updateSecurityFindingsAutomationInboxRuleW * *

See {@link #updateSecurityFindingsAutomationMuteRuleWithHttpInfo}. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @param body (required) * @return MuteRuleResponse * @throws ApiException if fails to make API call @@ -32828,7 +33060,9 @@ public MuteRuleResponse updateSecurityFindingsAutomationMuteRule( * *

See {@link #updateSecurityFindingsAutomationMuteRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @param body (required) * @return CompletableFuture<MuteRuleResponse> */ @@ -32842,9 +33076,13 @@ public CompletableFuture updateSecurityFindingsAutomationMuteR } /** - * Update a mute rule by ID. + * Update a mute rule by ID. This request replaces the whole rule. Send every attribute you want + * to keep, because the API clears optional fields you omit and saves an omitted enabled + * as false. The rule keeps its ID and its position in the evaluation order. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @param body (required) * @return ApiResponse<MuteRuleResponse> * @throws ApiException if fails to make API call @@ -32918,7 +33156,9 @@ public ApiResponse updateSecurityFindingsAutomationMuteRuleWit * *

See {@link #updateSecurityFindingsAutomationMuteRuleWithHttpInfo}. * - * @param ruleId The ID of the mute rule. (required) + * @param ruleId The ID of the mute rule, as returned by + * ListSecurityFindingsAutomationMuteRules or + * CreateSecurityFindingsAutomationMuteRule. (required) * @param body (required) * @return CompletableFuture<ApiResponse<MuteRuleResponse>> */ @@ -32997,7 +33237,9 @@ public ApiResponse updateSecurityFindingsAutomationMuteRuleWit * *

See {@link #updateSecurityFindingsAutomationSeverityModifierRuleWithHttpInfo}. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @param body (required) * @return SeverityModifierRuleResponse * @throws ApiException if fails to make API call @@ -33012,7 +33254,9 @@ public SeverityModifierRuleResponse updateSecurityFindingsAutomationSeverityModi * *

See {@link #updateSecurityFindingsAutomationSeverityModifierRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @param body (required) * @return CompletableFuture<SeverityModifierRuleResponse> */ @@ -33027,9 +33271,14 @@ public SeverityModifierRuleResponse updateSecurityFindingsAutomationSeverityModi } /** - * Update a severity modifier rule by ID. + * Update a severity modifier rule by ID. This request replaces the whole rule. Send every + * attribute you want to keep, because the API clears optional fields you omit and saves an + * omitted enabled as false. The rule keeps its ID and its position in + * the evaluation order. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @param body (required) * @return ApiResponse<SeverityModifierRuleResponse> * @throws ApiException if fails to make API call @@ -33104,7 +33353,9 @@ public SeverityModifierRuleResponse updateSecurityFindingsAutomationSeverityModi * *

See {@link #updateSecurityFindingsAutomationSeverityModifierRuleWithHttpInfo}. * - * @param ruleId The ID of the severity modifier rule. (required) + * @param ruleId The ID of the severity modifier rule, as returned by + * ListSecurityFindingsAutomationSeverityModifierRules or + * CreateSecurityFindingsAutomationSeverityModifierRule. (required) * @param body (required) * @return CompletableFuture<ApiResponse<SeverityModifierRuleResponse>> */ @@ -33187,7 +33438,9 @@ public SeverityModifierRuleResponse updateSecurityFindingsAutomationSeverityModi * *

See {@link #updateSecurityFindingsAutomationTicketCreationRuleWithHttpInfo}. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @param body (required) * @return TicketCreationRuleResponse * @throws ApiException if fails to make API call @@ -33202,7 +33455,9 @@ public TicketCreationRuleResponse updateSecurityFindingsAutomationTicketCreation * *

See {@link #updateSecurityFindingsAutomationTicketCreationRuleWithHttpInfoAsync}. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @param body (required) * @return CompletableFuture<TicketCreationRuleResponse> */ @@ -33217,9 +33472,15 @@ public TicketCreationRuleResponse updateSecurityFindingsAutomationTicketCreation } /** - * Update a ticket creation rule by ID. + * Update a ticket creation rule by ID. This request replaces the whole rule. Send every attribute + * you want to keep, because the API clears optional fields you omit and saves an omitted + * enabled as false. The rule keeps its ID and its position in the evaluation + * order. To re-enable a rule that Datadog disabled after a ticketing integration error, update + * it. Updating a rule clears action.auto_disabled_reason. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @param body (required) * @return ApiResponse<TicketCreationRuleResponse> * @throws ApiException if fails to make API call @@ -33294,7 +33555,9 @@ public TicketCreationRuleResponse updateSecurityFindingsAutomationTicketCreation * *

See {@link #updateSecurityFindingsAutomationTicketCreationRuleWithHttpInfo}. * - * @param ruleId The ID of the ticket creation rule. (required) + * @param ruleId The ID of the ticket creation rule, as returned by + * ListSecurityFindingsAutomationTicketCreationRules or + * CreateSecurityFindingsAutomationTicketCreationRule. (required) * @param body (required) * @return CompletableFuture<ApiResponse<TicketCreationRuleResponse>> */ diff --git a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleScope.java b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleScope.java index 178cd1eb70b..3617ade60bd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleScope.java +++ b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleScope.java @@ -55,7 +55,12 @@ public AutomationRuleScope addFindingTypesItem(SecurityFindingType findingTypesI } /** - * The list of security finding types that the automation rule applies to. + * The security finding types that the automation rule applies to. At least one is required, and + * each type may appear only once. Allowed values: api_security, attack_path + * , host_and_container_vulnerability, iac_misconfiguration, + * identity_risk, library_vulnerability, misconfiguration, + * runtime_code_vulnerability, secret, static_code_vulnerability + * , and workload_activity. * * @return findingTypes */ diff --git a/src/main/java/com/datadog/api/client/v2/model/DueDateRuleAction.java b/src/main/java/com/datadog/api/client/v2/model/DueDateRuleAction.java index 299192b6baa..44546c3465a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DueDateRuleAction.java +++ b/src/main/java/com/datadog/api/client/v2/model/DueDateRuleAction.java @@ -69,7 +69,8 @@ public DueDateRuleAction addDueDaysPerSeverityItem( } /** - * A list of severity-to-due-date mappings. Each severity may appear at most once. + * A list of severity-to-due-date mappings. Each severity may appear at most once. The rule only + * matches findings whose severity is listed here. * * @return dueDaysPerSeverity */ diff --git a/src/main/java/com/datadog/api/client/v2/model/DueDateRuleAttributesCreate.java b/src/main/java/com/datadog/api/client/v2/model/DueDateRuleAttributesCreate.java index 675b5376e6d..8801575ccda 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DueDateRuleAttributesCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/DueDateRuleAttributesCreate.java @@ -84,7 +84,8 @@ public DueDateRuleAttributesCreate enabled(Boolean enabled) { } /** - * Whether the due date rule is enabled. + * Whether the due date rule is enabled. If it is omitted, the API saves it as false + * and the rule doesn't apply. * * @return enabled */ diff --git a/src/main/java/com/datadog/api/client/v2/model/InboxRuleAttributesCreate.java b/src/main/java/com/datadog/api/client/v2/model/InboxRuleAttributesCreate.java index 5b122d6e810..4c30c5e6e9d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/InboxRuleAttributesCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/InboxRuleAttributesCreate.java @@ -84,7 +84,8 @@ public InboxRuleAttributesCreate enabled(Boolean enabled) { } /** - * Whether the inbox rule is enabled. + * Whether the inbox rule is enabled. If it is omitted, the API saves it as false and + * the rule doesn't apply. * * @return enabled */ diff --git a/src/main/java/com/datadog/api/client/v2/model/MuteRuleAction.java b/src/main/java/com/datadog/api/client/v2/model/MuteRuleAction.java index 0e3935394e3..63e0c2f565d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MuteRuleAction.java +++ b/src/main/java/com/datadog/api/client/v2/model/MuteRuleAction.java @@ -51,8 +51,8 @@ public MuteRuleAction expireAt(Long expireAt) { } /** - * The Unix timestamp in milliseconds at which the mute expires. If omitted, the mute does not - * expire. + * The Unix timestamp in milliseconds at which the mute expires. It must be in the future. If the + * timestamp is omitted, the mute does not expire. * * @return expireAt */ diff --git a/src/main/java/com/datadog/api/client/v2/model/MuteRuleAttributesCreate.java b/src/main/java/com/datadog/api/client/v2/model/MuteRuleAttributesCreate.java index 4f2c7097629..1250c8d4750 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MuteRuleAttributesCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/MuteRuleAttributesCreate.java @@ -84,7 +84,8 @@ public MuteRuleAttributesCreate enabled(Boolean enabled) { } /** - * Whether the mute rule is enabled. + * Whether the mute rule is enabled. If it is omitted, the API saves it as false and + * the rule doesn't apply. * * @return enabled */ diff --git a/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleAttributesCreate.java b/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleAttributesCreate.java index 4ef0c6bbd11..6f0b00ffa50 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleAttributesCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleAttributesCreate.java @@ -66,6 +66,13 @@ public SeverityModifierRuleAttributesCreate action(SeverityModifierRuleAction ac * union on type: set assigns a fixed severity, while shift * moves the severity up or down by one rank. * + *

With type: set, send severity (info_none, low + * , medium, high, or critical) and no + * severity_delta. With type: shift, send severity_delta ( + * up_one or down_one) and no severity. Both accept an optional + * description. A shift rule doesn't match findings with an unknown + * severity. + * *

A severity modifier rule's rule.query must not filter on @severity * or on the @severity_details.user_adjusted.* namespace. * @@ -93,7 +100,8 @@ public SeverityModifierRuleAttributesCreate enabled(Boolean enabled) { } /** - * Whether the severity modifier rule is enabled. + * Whether the severity modifier rule is enabled. If it is omitted, the API saves it as + * false and the rule doesn't apply. * * @return enabled */ diff --git a/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleAttributesResponse.java b/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleAttributesResponse.java index fe414ce69af..ba7d638eae7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleAttributesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleAttributesResponse.java @@ -96,6 +96,13 @@ public SeverityModifierRuleAttributesResponse action(SeverityModifierRuleAction * union on type: set assigns a fixed severity, while shift * moves the severity up or down by one rank. * + *

With type: set, send severity (info_none, low + * , medium, high, or critical) and no + * severity_delta. With type: shift, send severity_delta ( + * up_one or down_one) and no severity. Both accept an optional + * description. A shift rule doesn't match findings with an unknown + * severity. + * *

A severity modifier rule's rule.query must not filter on @severity * or on the @severity_details.user_adjusted.* namespace. * diff --git a/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleShiftAction.java b/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleShiftAction.java index 215cfd9c455..f59ddec4bfb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleShiftAction.java +++ b/src/main/java/com/datadog/api/client/v2/model/SeverityModifierRuleShiftAction.java @@ -17,7 +17,13 @@ import java.util.Map; import java.util.Objects; -/** Shifts matched findings up or down by one severity rank. */ +/** + * Shifts matched findings up or down by one severity rank. Shifting down stops at the lowest + * severity available for the finding type, for example low for + * iac_misconfiguration, runtime_code_vulnerability, secret, and + * static_code_vulnerability findings. A rule that wouldn't change a finding's severity + * doesn't match it, so Datadog checks the next rule. + */ @JsonPropertyOrder({ SeverityModifierRuleShiftAction.JSON_PROPERTY_DESCRIPTION, SeverityModifierRuleShiftAction.JSON_PROPERTY_SEVERITY_DELTA, @@ -79,7 +85,8 @@ public SeverityModifierRuleShiftAction severityDelta( } /** - * The direction in which to shift the severity of matched findings by one rank. + * The direction in which to shift the severity of matched findings by one rank. Shifting down + * stops at the lowest severity available for the finding type. * * @return severityDelta */ diff --git a/src/main/java/com/datadog/api/client/v2/model/SeverityModifierSeverityDelta.java b/src/main/java/com/datadog/api/client/v2/model/SeverityModifierSeverityDelta.java index 3062600c92a..1b23394f846 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SeverityModifierSeverityDelta.java +++ b/src/main/java/com/datadog/api/client/v2/model/SeverityModifierSeverityDelta.java @@ -18,7 +18,10 @@ import java.util.HashSet; import java.util.Set; -/** The direction in which to shift the severity of matched findings by one rank. */ +/** + * The direction in which to shift the severity of matched findings by one rank. Shifting down stops + * at the lowest severity available for the finding type. + */ @JsonSerialize(using = SeverityModifierSeverityDelta.SeverityModifierSeverityDeltaSerializer.class) public class SeverityModifierSeverityDelta extends ModelEnum { diff --git a/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleAction.java b/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleAction.java index 8e8e21bde86..108f80ff8ba 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleAction.java +++ b/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleAction.java @@ -138,7 +138,7 @@ public TicketCreationRuleAction projectId(UUID projectId) { } /** - * The UUID of the case management project. + * The UUID of the Datadog Work Management (formerly Case Management) project. * * @return projectId */ @@ -159,7 +159,8 @@ public TicketCreationRuleAction target(TicketCreationTarget target) { } /** - * The ticketing system to create tickets in. + * The ticketing system to create tickets in. case_management is Datadog Work + * Management, formerly called Case Management. * * @return target */ diff --git a/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleActionResponse.java b/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleActionResponse.java index 92707d943d5..67e73d76811 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleActionResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleActionResponse.java @@ -164,7 +164,7 @@ public TicketCreationRuleActionResponse projectId(UUID projectId) { } /** - * The UUID of the case management project. + * The UUID of the Datadog Work Management (formerly Case Management) project. * * @return projectId */ @@ -185,7 +185,8 @@ public TicketCreationRuleActionResponse target(TicketCreationTarget target) { } /** - * The ticketing system to create tickets in. + * The ticketing system to create tickets in. case_management is Datadog Work + * Management, formerly called Case Management. * * @return target */ diff --git a/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleAttributesCreate.java b/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleAttributesCreate.java index e1314c2dedb..012c383787d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleAttributesCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/TicketCreationRuleAttributesCreate.java @@ -84,7 +84,8 @@ public TicketCreationRuleAttributesCreate enabled(Boolean enabled) { } /** - * Whether the ticket creation rule is enabled. + * Whether the ticket creation rule is enabled. If it is omitted, the API saves it as false + * and the rule doesn't apply. * * @return enabled */ diff --git a/src/main/java/com/datadog/api/client/v2/model/TicketCreationTarget.java b/src/main/java/com/datadog/api/client/v2/model/TicketCreationTarget.java index 6c2ba393dc6..8c10d4280bf 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TicketCreationTarget.java +++ b/src/main/java/com/datadog/api/client/v2/model/TicketCreationTarget.java @@ -18,7 +18,10 @@ import java.util.HashSet; import java.util.Set; -/** The ticketing system to create tickets in. */ +/** + * The ticketing system to create tickets in. case_management is Datadog Work + * Management, formerly called Case Management. + */ @JsonSerialize(using = TicketCreationTarget.TicketCreationTargetSerializer.class) public class TicketCreationTarget extends ModelEnum {