Skip to content

Commit c2057c8

Browse files
[8.17] Improves Endpoint exceptions API content (#193172) (#204739)
# Backport This will backport the following commits from `main` to `8.17`: - [Improves Endpoint exceptions API content (#193172)](#193172) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"natasha-moore-elastic","email":"137783811+natasha-moore-elastic@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-18T09:45:04Z","message":"Improves Endpoint exceptions API content (#193172)\n\n## Summary\r\n\r\nResolves elastic/security-docs-internal#34 by\r\nimproving the Endpoint exceptions API docs content. Adds missing and\r\nimproves existing operation summaries and operation descriptions to\r\nadhere to our [OAS\r\nstandards](https://elasticco.atlassian.net/wiki/spaces/DOC/pages/450494532/API+reference+docs).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"59a0ca244219c701e0c2e80877ff0b6406227c13","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v9.0.0","docs","Team:Detections and Resp","APIDocs","Team:Detection Rule Management","Team:Detection Engine"],"number":193172,"url":"https://github.com/elastic/kibana/pull/193172","mergeCommit":{"message":"Improves Endpoint exceptions API content (#193172)\n\n## Summary\r\n\r\nResolves elastic/security-docs-internal#34 by\r\nimproving the Endpoint exceptions API docs content. Adds missing and\r\nimproves existing operation summaries and operation descriptions to\r\nadhere to our [OAS\r\nstandards](https://elasticco.atlassian.net/wiki/spaces/DOC/pages/450494532/API+reference+docs).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"59a0ca244219c701e0c2e80877ff0b6406227c13"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193172","number":193172,"mergeCommit":{"message":"Improves Endpoint exceptions API content (#193172)\n\n## Summary\r\n\r\nResolves elastic/security-docs-internal#34 by\r\nimproving the Endpoint exceptions API docs content. Adds missing and\r\nimproves existing operation summaries and operation descriptions to\r\nadhere to our [OAS\r\nstandards](https://elasticco.atlassian.net/wiki/spaces/DOC/pages/450494532/API+reference+docs).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"59a0ca244219c701e0c2e80877ff0b6406227c13"}}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
1 parent 289d88e commit c2057c8

File tree

10 files changed

+86
-29
lines changed

10 files changed

+86
-29
lines changed

oas_docs/output/kibana.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9880,7 +9880,7 @@ paths:
98809880
- saved objects
98819881
/api/endpoint_list:
98829882
post:
9883-
description: Creates an endpoint list or does nothing if the list already exists
9883+
description: Create an endpoint exception list, which groups endpoint exception list items. If an endpoint exception list already exists, an empty response is returned.
98849884
operationId: CreateEndpointList
98859885
responses:
98869886
'200':
@@ -9915,11 +9915,12 @@ paths:
99159915
schema:
99169916
$ref: '#/components/schemas/Security_Endpoint_Exceptions_API_SiemErrorResponse'
99179917
description: Internal server error
9918-
summary: Creates an endpoint list
9918+
summary: Create an endpoint exception list
99199919
tags:
99209920
- Security Endpoint Exceptions API
99219921
/api/endpoint_list/items:
99229922
delete:
9923+
description: Delete an endpoint exception list item using the `id` or `item_id` field.
99239924
operationId: DeleteEndpointListItem
99249925
parameters:
99259926
- description: Either `id` or `item_id` must be specified
@@ -9973,10 +9974,11 @@ paths:
99739974
schema:
99749975
$ref: '#/components/schemas/Security_Endpoint_Exceptions_API_SiemErrorResponse'
99759976
description: Internal server error
9976-
summary: Deletes an endpoint list item
9977+
summary: Delete an endpoint exception list item
99779978
tags:
99789979
- Security Endpoint Exceptions API
99799980
get:
9981+
description: Get the details of an endpoint exception list item using the `id` or `item_id` field.
99809982
operationId: ReadEndpointListItem
99819983
parameters:
99829984
- description: Either `id` or `item_id` must be specified
@@ -10032,10 +10034,11 @@ paths:
1003210034
schema:
1003310035
$ref: '#/components/schemas/Security_Endpoint_Exceptions_API_SiemErrorResponse'
1003410036
description: Internal server error
10035-
summary: Reads an endpoint list item
10037+
summary: Get an endpoint exception list item
1003610038
tags:
1003710039
- Security Endpoint Exceptions API
1003810040
post:
10041+
description: Create an endpoint exception list item, and associate it with the endpoint exception list.
1003910042
operationId: CreateEndpointListItem
1004010043
requestBody:
1004110044
content:
@@ -10110,10 +10113,11 @@ paths:
1011010113
schema:
1011110114
$ref: '#/components/schemas/Security_Endpoint_Exceptions_API_SiemErrorResponse'
1011210115
description: Internal server error
10113-
summary: Creates an endpoint list item
10116+
summary: Create an endpoint exception list item
1011410117
tags:
1011510118
- Security Endpoint Exceptions API
1011610119
put:
10120+
description: Update an endpoint exception list item using the `id` or `item_id` field.
1011710121
operationId: UpdateEndpointListItem
1011810122
requestBody:
1011910123
content:
@@ -10193,11 +10197,12 @@ paths:
1019310197
schema:
1019410198
$ref: '#/components/schemas/Security_Endpoint_Exceptions_API_SiemErrorResponse'
1019510199
description: Internal server error
10196-
summary: Updates an endpoint list item
10200+
summary: Update an endpoint exception list item
1019710201
tags:
1019810202
- Security Endpoint Exceptions API
1019910203
/api/endpoint_list/items/_find:
1020010204
get:
10205+
description: Get a list of all endpoint exception list items.
1020110206
operationId: FindEndpointListItems
1020210207
parameters:
1020310208
- description: |
@@ -10297,7 +10302,7 @@ paths:
1029710302
schema:
1029810303
$ref: '#/components/schemas/Security_Endpoint_Exceptions_API_SiemErrorResponse'
1029910304
description: Internal server error
10300-
summary: Finds endpoint list items
10305+
summary: Get endpoint exception list items
1030110306
tags:
1030210307
- Security Endpoint Exceptions API
1030310308
/api/endpoint/action:

packages/kbn-securitysolution-endpoint-exceptions-common/api/create_endpoint_list/create_endpoint_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
x-codegen-enabled: true
1010
operationId: CreateEndpointList
11-
summary: Creates an endpoint list
12-
description: Creates an endpoint list or does nothing if the list already exists
11+
summary: Create an endpoint exception list
12+
description: Create an endpoint exception list, which groups endpoint exception list items. If an endpoint exception list already exists, an empty response is returned.
1313
responses:
1414
200:
1515
description: Successful response

packages/kbn-securitysolution-endpoint-exceptions-common/api/create_endpoint_list_item/create_endpoint_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
x-codegen-enabled: true
1010
operationId: CreateEndpointListItem
11-
summary: Creates an endpoint list item
11+
summary: Create an endpoint exception list item
12+
description: Create an endpoint exception list item, and associate it with the endpoint exception list.
1213
requestBody:
1314
description: Exception list item's properties
1415
required: true

packages/kbn-securitysolution-endpoint-exceptions-common/api/delete_endpoint_list_item/delete_endpoint_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
x-codegen-enabled: true
1010
operationId: DeleteEndpointListItem
11-
summary: Deletes an endpoint list item
11+
summary: Delete an endpoint exception list item
12+
description: Delete an endpoint exception list item using the `id` or `item_id` field.
1213
parameters:
1314
- name: id
1415
in: query

packages/kbn-securitysolution-endpoint-exceptions-common/api/find_endpoint_list_item/find_endpoint_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
x-codegen-enabled: true
1010
operationId: FindEndpointListItems
11-
summary: Finds endpoint list items
11+
summary: Get endpoint exception list items
12+
description: Get a list of all endpoint exception list items.
1213
parameters:
1314
- name: filter
1415
in: query

packages/kbn-securitysolution-endpoint-exceptions-common/api/read_endpoint_list_item/read_endpoint_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
x-codegen-enabled: true
1010
operationId: ReadEndpointListItem
11-
summary: Reads an endpoint list item
11+
summary: Get an endpoint exception list item
12+
description: Get the details of an endpoint exception list item using the `id` or `item_id` field.
1213
parameters:
1314
- name: id
1415
in: query

packages/kbn-securitysolution-endpoint-exceptions-common/api/update_endpoint_list_item/update_endpoint_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
x-codegen-enabled: true
1010
operationId: UpdateEndpointListItem
11-
summary: Updates an endpoint list item
11+
summary: Update an endpoint exception list item
12+
description: Update an endpoint exception list item using the `id` or `item_id` field.
1213
requestBody:
1314
description: Exception list item's properties
1415
required: true

packages/kbn-securitysolution-endpoint-exceptions-common/docs/openapi/ess/security_solution_endpoint_exceptions_api_2023_10_31.bundled.schema.yaml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ servers:
1313
paths:
1414
/api/endpoint_list:
1515
post:
16-
description: Creates an endpoint list or does nothing if the list already exists
16+
description: >-
17+
Create an endpoint exception list, which groups endpoint exception list
18+
items. If an endpoint exception list already exists, an empty response
19+
is returned.
1720
operationId: CreateEndpointList
1821
responses:
1922
'200':
@@ -48,11 +51,14 @@ paths:
4851
schema:
4952
$ref: '#/components/schemas/SiemErrorResponse'
5053
description: Internal server error
51-
summary: Creates an endpoint list
54+
summary: Create an endpoint exception list
5255
tags:
5356
- Security Endpoint Exceptions API
5457
/api/endpoint_list/items:
5558
delete:
59+
description: >-
60+
Delete an endpoint exception list item using the `id` or `item_id`
61+
field.
5662
operationId: DeleteEndpointListItem
5763
parameters:
5864
- description: Either `id` or `item_id` must be specified
@@ -106,10 +112,13 @@ paths:
106112
schema:
107113
$ref: '#/components/schemas/SiemErrorResponse'
108114
description: Internal server error
109-
summary: Deletes an endpoint list item
115+
summary: Delete an endpoint exception list item
110116
tags:
111117
- Security Endpoint Exceptions API
112118
get:
119+
description: >-
120+
Get the details of an endpoint exception list item using the `id` or
121+
`item_id` field.
113122
operationId: ReadEndpointListItem
114123
parameters:
115124
- description: Either `id` or `item_id` must be specified
@@ -165,10 +174,13 @@ paths:
165174
schema:
166175
$ref: '#/components/schemas/SiemErrorResponse'
167176
description: Internal server error
168-
summary: Reads an endpoint list item
177+
summary: Get an endpoint exception list item
169178
tags:
170179
- Security Endpoint Exceptions API
171180
post:
181+
description: >-
182+
Create an endpoint exception list item, and associate it with the
183+
endpoint exception list.
172184
operationId: CreateEndpointListItem
173185
requestBody:
174186
content:
@@ -243,10 +255,13 @@ paths:
243255
schema:
244256
$ref: '#/components/schemas/SiemErrorResponse'
245257
description: Internal server error
246-
summary: Creates an endpoint list item
258+
summary: Create an endpoint exception list item
247259
tags:
248260
- Security Endpoint Exceptions API
249261
put:
262+
description: >-
263+
Update an endpoint exception list item using the `id` or `item_id`
264+
field.
250265
operationId: UpdateEndpointListItem
251266
requestBody:
252267
content:
@@ -326,11 +341,12 @@ paths:
326341
schema:
327342
$ref: '#/components/schemas/SiemErrorResponse'
328343
description: Internal server error
329-
summary: Updates an endpoint list item
344+
summary: Update an endpoint exception list item
330345
tags:
331346
- Security Endpoint Exceptions API
332347
/api/endpoint_list/items/_find:
333348
get:
349+
description: Get a list of all endpoint exception list items.
334350
operationId: FindEndpointListItems
335351
parameters:
336352
- description: >
@@ -432,7 +448,7 @@ paths:
432448
schema:
433449
$ref: '#/components/schemas/SiemErrorResponse'
434450
description: Internal server error
435-
summary: Finds endpoint list items
451+
summary: Get endpoint exception list items
436452
tags:
437453
- Security Endpoint Exceptions API
438454
components:

packages/kbn-securitysolution-endpoint-exceptions-common/docs/openapi/serverless/security_solution_endpoint_exceptions_api_2023_10_31.bundled.schema.yaml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ servers:
1313
paths:
1414
/api/endpoint_list:
1515
post:
16-
description: Creates an endpoint list or does nothing if the list already exists
16+
description: >-
17+
Create an endpoint exception list, which groups endpoint exception list
18+
items. If an endpoint exception list already exists, an empty response
19+
is returned.
1720
operationId: CreateEndpointList
1821
responses:
1922
'200':
@@ -48,11 +51,14 @@ paths:
4851
schema:
4952
$ref: '#/components/schemas/SiemErrorResponse'
5053
description: Internal server error
51-
summary: Creates an endpoint list
54+
summary: Create an endpoint exception list
5255
tags:
5356
- Security Endpoint Exceptions API
5457
/api/endpoint_list/items:
5558
delete:
59+
description: >-
60+
Delete an endpoint exception list item using the `id` or `item_id`
61+
field.
5662
operationId: DeleteEndpointListItem
5763
parameters:
5864
- description: Either `id` or `item_id` must be specified
@@ -106,10 +112,13 @@ paths:
106112
schema:
107113
$ref: '#/components/schemas/SiemErrorResponse'
108114
description: Internal server error
109-
summary: Deletes an endpoint list item
115+
summary: Delete an endpoint exception list item
110116
tags:
111117
- Security Endpoint Exceptions API
112118
get:
119+
description: >-
120+
Get the details of an endpoint exception list item using the `id` or
121+
`item_id` field.
113122
operationId: ReadEndpointListItem
114123
parameters:
115124
- description: Either `id` or `item_id` must be specified
@@ -165,10 +174,13 @@ paths:
165174
schema:
166175
$ref: '#/components/schemas/SiemErrorResponse'
167176
description: Internal server error
168-
summary: Reads an endpoint list item
177+
summary: Get an endpoint exception list item
169178
tags:
170179
- Security Endpoint Exceptions API
171180
post:
181+
description: >-
182+
Create an endpoint exception list item, and associate it with the
183+
endpoint exception list.
172184
operationId: CreateEndpointListItem
173185
requestBody:
174186
content:
@@ -243,10 +255,13 @@ paths:
243255
schema:
244256
$ref: '#/components/schemas/SiemErrorResponse'
245257
description: Internal server error
246-
summary: Creates an endpoint list item
258+
summary: Create an endpoint exception list item
247259
tags:
248260
- Security Endpoint Exceptions API
249261
put:
262+
description: >-
263+
Update an endpoint exception list item using the `id` or `item_id`
264+
field.
250265
operationId: UpdateEndpointListItem
251266
requestBody:
252267
content:
@@ -326,11 +341,12 @@ paths:
326341
schema:
327342
$ref: '#/components/schemas/SiemErrorResponse'
328343
description: Internal server error
329-
summary: Updates an endpoint list item
344+
summary: Update an endpoint exception list item
330345
tags:
331346
- Security Endpoint Exceptions API
332347
/api/endpoint_list/items/_find:
333348
get:
349+
description: Get a list of all endpoint exception list items.
334350
operationId: FindEndpointListItems
335351
parameters:
336352
- description: >
@@ -432,7 +448,7 @@ paths:
432448
schema:
433449
$ref: '#/components/schemas/SiemErrorResponse'
434450
description: Internal server error
435-
summary: Finds endpoint list items
451+
summary: Get endpoint exception list items
436452
tags:
437453
- Security Endpoint Exceptions API
438454
components:

x-pack/test/api_integration/services/security_solution_endpoint_exceptions_api.gen.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)
3232

3333
return {
3434
/**
35-
* Creates an endpoint list or does nothing if the list already exists
35+
* Create an endpoint exception list, which groups endpoint exception list items. If an endpoint exception list already exists, an empty response is returned.
3636
*/
3737
createEndpointList(kibanaSpace: string = 'default') {
3838
return supertest
@@ -41,6 +41,9 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)
4141
.set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31')
4242
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana');
4343
},
44+
/**
45+
* Create an endpoint exception list item, and associate it with the endpoint exception list.
46+
*/
4447
createEndpointListItem(props: CreateEndpointListItemProps, kibanaSpace: string = 'default') {
4548
return supertest
4649
.post(routeWithNamespace('/api/endpoint_list/items', kibanaSpace))
@@ -49,6 +52,9 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)
4952
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
5053
.send(props.body as object);
5154
},
55+
/**
56+
* Delete an endpoint exception list item using the `id` or `item_id` field.
57+
*/
5258
deleteEndpointListItem(props: DeleteEndpointListItemProps, kibanaSpace: string = 'default') {
5359
return supertest
5460
.delete(routeWithNamespace('/api/endpoint_list/items', kibanaSpace))
@@ -57,6 +63,9 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)
5763
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
5864
.query(props.query);
5965
},
66+
/**
67+
* Get a list of all endpoint exception list items.
68+
*/
6069
findEndpointListItems(props: FindEndpointListItemsProps, kibanaSpace: string = 'default') {
6170
return supertest
6271
.get(routeWithNamespace('/api/endpoint_list/items/_find', kibanaSpace))
@@ -65,6 +74,9 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)
6574
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
6675
.query(props.query);
6776
},
77+
/**
78+
* Get the details of an endpoint exception list item using the `id` or `item_id` field.
79+
*/
6880
readEndpointListItem(props: ReadEndpointListItemProps, kibanaSpace: string = 'default') {
6981
return supertest
7082
.get(routeWithNamespace('/api/endpoint_list/items', kibanaSpace))
@@ -73,6 +85,9 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)
7385
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
7486
.query(props.query);
7587
},
88+
/**
89+
* Update an endpoint exception list item using the `id` or `item_id` field.
90+
*/
7691
updateEndpointListItem(props: UpdateEndpointListItemProps, kibanaSpace: string = 'default') {
7792
return supertest
7893
.put(routeWithNamespace('/api/endpoint_list/items', kibanaSpace))

0 commit comments

Comments
 (0)