Skip to content

Commit c676d2b

Browse files
Improves Exceptions API docs content (#193040)
## Summary Resolves elastic/security-docs-internal#33 by improving the Exceptions API docs content. Adds missing and improves existing operation summaries and operation descriptions to adhere to our [OAS standards](https://elasticco.atlassian.net/wiki/spaces/DOC/pages/450494532/API+reference+docs). --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
1 parent 9765f73 commit c676d2b

20 files changed

Lines changed: 275 additions & 58 deletions

File tree

packages/kbn-securitysolution-exceptions-common/api/create_exception_list/create_exception_list.schema.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ paths:
88
x-labels: [serverless, ess]
99
operationId: CreateExceptionList
1010
x-codegen-enabled: true
11-
summary: Creates an exception list
11+
summary: Create an exception list
12+
description: |
13+
An exception list groups exception items and can be associated with detection rules. You can assign detection rules with multiple exception lists.
14+
> info
15+
> All exception items added to the same list are evaluated using `OR` logic. That is, if any of the items in a list evaluate to `true`, the exception prevents the rule from generating an alert. Likewise, `OR` logic is used for evaluating exceptions when more than one exception list is assigned to a rule. To use the `AND` operator, you can define multiple clauses (`entries`) in a single exception item.
1216
requestBody:
1317
description: Exception list's properties
1418
required: true

packages/kbn-securitysolution-exceptions-common/api/create_exception_list_item/create_exception_list_item.schema.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ paths:
88
x-labels: [serverless, ess]
99
operationId: CreateExceptionListItem
1010
x-codegen-enabled: true
11-
summary: Creates an exception list item
11+
summary: Create an exception list item
12+
description: |
13+
Create an exception item and associate it with the specified exception list.
14+
> info
15+
> Before creating exception items, you must create an exception list.
1216
requestBody:
1317
description: Exception list item's properties
1418
required: true

packages/kbn-securitysolution-exceptions-common/api/create_rule_exceptions/create_rule_exceptions.schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ paths:
88
x-labels: [serverless, ess]
99
operationId: CreateRuleExceptionListItems
1010
x-codegen-enabled: true
11-
summary: Creates rule exception list items
11+
summary: Create rule exception list items
12+
description: Create exception items that apply to a single detection rule.
1213
parameters:
1314
- name: id
1415
in: path

packages/kbn-securitysolution-exceptions-common/api/create_shared_exceptions_list/create_shared_exceptions_list.schema.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ paths:
88
x-labels: [serverless, ess]
99
operationId: CreateSharedExceptionList
1010
x-codegen-enabled: true
11-
summary: Creates a shared exception list
11+
summary: Create a shared exception list
12+
description: |
13+
An exception list groups exception items and can be associated with detection rules. A shared exception list can apply to multiple detection rules.
14+
> info
15+
> All exception items added to the same list are evaluated using `OR` logic. That is, if any of the items in a list evaluate to `true`, the exception prevents the rule from generating an alert. Likewise, `OR` logic is used for evaluating exceptions when more than one exception list is assigned to a rule. To use the `AND` operator, you can define multiple clauses (`entries`) in a single exception item.
1216
requestBody:
1317
required: true
1418
content:

packages/kbn-securitysolution-exceptions-common/api/delete_exception_list/delete_exception_list.schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ paths:
88
x-labels: [serverless, ess]
99
operationId: DeleteExceptionList
1010
x-codegen-enabled: true
11-
summary: Deletes an exception list
11+
summary: Delete an exception list
12+
description: Delete an exception list using the `id` or `list_id` field.
1213
parameters:
1314
- name: id
1415
in: query

packages/kbn-securitysolution-exceptions-common/api/delete_exception_list_item/delete_exception_list_item.schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ paths:
88
x-labels: [serverless, ess]
99
operationId: DeleteExceptionListItem
1010
x-codegen-enabled: true
11-
summary: Deletes an exception list item
11+
summary: Delete an exception list item
12+
description: Delete an exception list item using the `id` or `item_id` field.
1213
parameters:
1314
- name: id
1415
in: query

packages/kbn-securitysolution-exceptions-common/api/duplicate_exception_list/duplicate_exception_list.schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ paths:
88
x-labels: [serverless, ess]
99
operationId: DuplicateExceptionList
1010
x-codegen-enabled: true
11-
summary: Duplicates an exception list
11+
summary: Duplicate an exception list
12+
description: Duplicate an existing exception list.
1213
parameters:
1314
- name: list_id
1415
in: query

packages/kbn-securitysolution-exceptions-common/api/export_exception_list/export_exception_list.schema.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ paths:
88
x-labels: [serverless, ess]
99
operationId: ExportExceptionList
1010
x-codegen-enabled: true
11-
summary: Exports an exception list
12-
description: Exports an exception list and its associated items to an .ndjson file
11+
summary: Export an exception list
12+
description: Export an exception list and its associated items to an NDJSON file.
1313
parameters:
1414
- name: id
1515
in: query

packages/kbn-securitysolution-exceptions-common/api/find_exception_list_items/find_exception_list_items.schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ paths:
88
x-labels: [serverless, ess]
99
operationId: FindExceptionListItems
1010
x-codegen-enabled: true
11-
summary: Finds exception list items
11+
summary: Get exception list items
12+
description: Get a list of all exception list items in the specified list.
1213
parameters:
1314
- name: list_id
1415
in: query

packages/kbn-securitysolution-exceptions-common/api/find_exception_lists/find_exception_lists.schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ paths:
88
x-labels: [serverless, ess]
99
operationId: FindExceptionLists
1010
x-codegen-enabled: true
11-
summary: Finds exception lists
11+
summary: Get exception lists
12+
description: Get a list of all exception lists.
1213
parameters:
1314
- name: filter
1415
in: query

0 commit comments

Comments
 (0)