forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added request diagnostics to openapi (elastic#145222)
## Summary Follow up for elastic#141074 Added Request Diagnostics to OpenAPI spec
- Loading branch information
1 parent
e01649e
commit 7e7d557
Showing
5 changed files
with
226 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
x-pack/plugins/fleet/common/openapi/paths/agents@bulk_request_diagnostics.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
post: | ||
summary: Agent - Bulk Request Diagnostics | ||
tags: [] | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
actionId: | ||
type: string | ||
operationId: bulk-request-diagnostics | ||
parameters: | ||
- $ref: ../components/headers/kbn_xsrf.yaml | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
batchSize: | ||
type: number | ||
agents: | ||
oneOf: | ||
- type: string | ||
description: KQL query string, leave empty to action all agents | ||
- type: array | ||
items: | ||
type: string | ||
description: list of agent IDs | ||
required: | ||
- agents | ||
example: | ||
agents: "fleet-agents.policy_id : (\"policy1\" or \"policy2\")" |
23 changes: 23 additions & 0 deletions
23
x-pack/plugins/fleet/common/openapi/paths/agents@{agent_id}@request_diagnostics.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
parameters: | ||
- schema: | ||
type: string | ||
name: agentId | ||
in: path | ||
required: true | ||
post: | ||
summary: Agent - Request Diagnostics | ||
tags: [] | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
actionId: | ||
type: string | ||
operationId: request-diagnostics-agent | ||
parameters: | ||
- $ref: ../components/headers/kbn_xsrf.yaml | ||
|