Skip to content

Commit 002008a

Browse files
[9.0] [DOCS][API] Update Security endpoint management APIs (#232205) (#232380)
# Backport This will backport the following commits from `main` to `9.0`: - [[DOCS][API] Update Security endpoint management APIs (#232205)](#232205)
1 parent 009b6e2 commit 002008a

File tree

8 files changed

+90
-24
lines changed

8 files changed

+90
-24
lines changed

oas_docs/output/kibana.serverless.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,11 @@ tags:
101101
description: Manage the roles that grant Elasticsearch and Kibana privileges.
102102
externalDocs:
103103
description: Kibana role management
104-
<<<<<<< HEAD
105-
url: https://www.elastic.co/guide/en/kibana/master/kibana-role-management.html
106-
- description: |
107-
Export sets of saved objects that you want to import into Kibana, resolve import errors, and rotate an encryption key for encrypted saved objects with the saved objects APIs.
108-
=======
109104
url: https://www.elastic.co/docs/deploy-manage/users-roles/serverless-custom-roles
110105
- name: saved objects
111106
x-displayName: Saved objects
112107
description: |
113108
Export or import sets of saved objects.
114-
>>>>>>> 128b8457a61 ([DOCS] Fix URLs in Kibana API documentation (#215989))
115109

116110
To manage a specific type of saved object, use the corresponding APIs.
117111
For example, use:
@@ -12086,7 +12080,11 @@ paths:
1208612080
- Security Endpoint Management API
1208712081
/api/endpoint/action/{action_id}/file/{file_id}:
1208812082
get:
12089-
description: Get information for the specified file using the file ID.
12083+
description: |
12084+
Get information for the specified file using the file ID.
12085+
> info
12086+
> To construct a `file_id`, combine the `action_id` and `agent_id` values using a dot separator:
12087+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
1209012088
operationId: EndpointFileInfo
1209112089
parameters:
1209212090
- in: path
@@ -12111,7 +12109,11 @@ paths:
1211112109
- Security Endpoint Management API
1211212110
/api/endpoint/action/{action_id}/file/{file_id}/download:
1211312111
get:
12114-
description: Download a file from an endpoint.
12112+
description: |
12113+
Download a file from an endpoint.
12114+
> info
12115+
> To construct a `file_id`, combine the `action_id` and `agent_id` values using a dot separator:
12116+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
1211512117
operationId: EndpointFileDownload
1211612118
parameters:
1211712119
- in: path

oas_docs/output/kibana.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13976,7 +13976,11 @@ paths:
1397613976
- Security Endpoint Management API
1397713977
/api/endpoint/action/{action_id}/file/{file_id}:
1397813978
get:
13979-
description: Get information for the specified file using the file ID.
13979+
description: |
13980+
Get information for the specified file using the file ID.
13981+
> info
13982+
> To construct a `file_id`, combine the `action_id` and `agent_id` values using a dot separator:
13983+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
1398013984
operationId: EndpointFileInfo
1398113985
parameters:
1398213986
- in: path
@@ -14001,7 +14005,11 @@ paths:
1400114005
- Security Endpoint Management API
1400214006
/api/endpoint/action/{action_id}/file/{file_id}/download:
1400314007
get:
14004-
description: Download a file from an endpoint.
14008+
description: |
14009+
Download a file from an endpoint.
14010+
> info
14011+
> To construct a `file_id`, combine the `action_id` and `agent_id` values using a dot separator:
14012+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
1400514013
operationId: EndpointFileDownload
1400614014
parameters:
1400714015
- in: path

x-pack/solutions/security/plugins/security_solution/common/api/endpoint/actions/file_download/file_download.schema.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ paths:
77
get:
88
summary: Download a file
99
operationId: EndpointFileDownload
10-
description: Download a file from an endpoint.
10+
description: |
11+
Download a file from an endpoint.
12+
> info
13+
> To construct a `file_id`, combine the `action_id` and `agent_id` values using a dot separator:
14+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
1115
x-codegen-enabled: true
1216
x-labels: [ess, serverless]
1317
parameters:

x-pack/solutions/security/plugins/security_solution/common/api/endpoint/actions/file_info/file_info.schema.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ paths:
77
get:
88
summary: Get file information
99
operationId: EndpointFileInfo
10-
description: Get information for the specified file using the file ID.
10+
description: |
11+
Get information for the specified file using the file ID.
12+
> info
13+
> To construct a `file_id`, combine the `action_id` and `agent_id` values using a dot separator:
14+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
1115
x-codegen-enabled: true
1216
x-labels: [ess, serverless]
1317
parameters:

x-pack/solutions/security/plugins/security_solution/common/api/quickstart_client.gen.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,12 @@ The difference between the `id` and `rule_id` is that the `id` is a unique rule
865865
.catch(catchAxiosErrorFormatAndThrow);
866866
}
867867
/**
868-
* Download a file from an endpoint.
869-
*/
868+
* Download a file from an endpoint.
869+
> info
870+
> To construct a `file_id`, combine the `action_id` and `agent_id` values using a dot separator:
871+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
872+
873+
*/
870874
async endpointFileDownload(props: EndpointFileDownloadProps) {
871875
this.log.info(`${new Date().toISOString()} Calling API EndpointFileDownload`);
872876
return this.kbnClient
@@ -883,8 +887,12 @@ The difference between the `id` and `rule_id` is that the `id` is a unique rule
883887
.catch(catchAxiosErrorFormatAndThrow);
884888
}
885889
/**
886-
* Get information for the specified file using the file ID.
887-
*/
890+
* Get information for the specified file using the file ID.
891+
> info
892+
> To construct a `file_id`, combine the `action_id` and `agent_id` values using a dot separator:
893+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
894+
895+
*/
888896
async endpointFileInfo(props: EndpointFileInfoProps) {
889897
this.log.info(`${new Date().toISOString()} Calling API EndpointFileInfo`);
890898
return this.kbnClient

x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_endpoint_management_api_2023_10_31.bundled.schema.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,15 @@ paths:
123123
- Security Endpoint Management API
124124
/api/endpoint/action/{action_id}/file/{file_id}:
125125
get:
126-
description: Get information for the specified file using the file ID.
126+
description: >
127+
Get information for the specified file using the file ID.
128+
129+
> info
130+
131+
> To construct a `file_id`, combine the `action_id` and `agent_id`
132+
values using a dot separator:
133+
134+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
127135
operationId: EndpointFileInfo
128136
parameters:
129137
- in: path
@@ -148,7 +156,15 @@ paths:
148156
- Security Endpoint Management API
149157
/api/endpoint/action/{action_id}/file/{file_id}/download:
150158
get:
151-
description: Download a file from an endpoint.
159+
description: >
160+
Download a file from an endpoint.
161+
162+
> info
163+
164+
> To construct a `file_id`, combine the `action_id` and `agent_id`
165+
values using a dot separator:
166+
167+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
152168
operationId: EndpointFileDownload
153169
parameters:
154170
- in: path

x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_endpoint_management_api_2023_10_31.bundled.schema.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,15 @@ paths:
123123
- Security Endpoint Management API
124124
/api/endpoint/action/{action_id}/file/{file_id}:
125125
get:
126-
description: Get information for the specified file using the file ID.
126+
description: >
127+
Get information for the specified file using the file ID.
128+
129+
> info
130+
131+
> To construct a `file_id`, combine the `action_id` and `agent_id`
132+
values using a dot separator:
133+
134+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
127135
operationId: EndpointFileInfo
128136
parameters:
129137
- in: path
@@ -148,7 +156,15 @@ paths:
148156
- Security Endpoint Management API
149157
/api/endpoint/action/{action_id}/file/{file_id}/download:
150158
get:
151-
description: Download a file from an endpoint.
159+
description: >
160+
Download a file from an endpoint.
161+
162+
> info
163+
164+
> To construct a `file_id`, combine the `action_id` and `agent_id`
165+
values using a dot separator:
166+
167+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
152168
operationId: EndpointFileDownload
153169
parameters:
154170
- in: path

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,12 @@ The difference between the `id` and `rule_id` is that the `id` is a unique rule
543543
.send(props.body as object);
544544
},
545545
/**
546-
* Download a file from an endpoint.
547-
*/
546+
* Download a file from an endpoint.
547+
> info
548+
> To construct a `file_id`, combine the `action_id` and `agent_id` values using a dot separator:
549+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
550+
551+
*/
548552
endpointFileDownload(props: EndpointFileDownloadProps, kibanaSpace: string = 'default') {
549553
return supertest
550554
.get(
@@ -558,8 +562,12 @@ The difference between the `id` and `rule_id` is that the `id` is a unique rule
558562
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana');
559563
},
560564
/**
561-
* Get information for the specified file using the file ID.
562-
*/
565+
* Get information for the specified file using the file ID.
566+
> info
567+
> To construct a `file_id`, combine the `action_id` and `agent_id` values using a dot separator:
568+
> {`file_id`} = {`action_id`}`.`{`agent_id`}
569+
570+
*/
563571
endpointFileInfo(props: EndpointFileInfoProps, kibanaSpace: string = 'default') {
564572
return supertest
565573
.get(

0 commit comments

Comments
 (0)