-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/elastic/kibana into extend-…
…elastic-query-rule # Conflicts: # x-pack/plugins/alerting/server/plugin.test.ts # x-pack/plugins/alerting/server/plugin.ts # x-pack/plugins/alerting/server/task_runner/task_runner_cancel.test.ts # x-pack/plugins/alerting/server/task_runner/task_runner_factory.test.ts # x-pack/plugins/alerting/server/task_runner/task_runner_factory.ts
- Loading branch information
Showing
704 changed files
with
19,337 additions
and
5,272 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[[cases-api-delete-cases]] | ||
== Delete cases API | ||
++++ | ||
<titleabbrev>Delete cases</titleabbrev> | ||
++++ | ||
|
||
Deletes one or more cases. | ||
|
||
=== Request | ||
|
||
`DELETE <kibana host>:<port>/api/cases?ids=["<case ID1>","<case ID2>"]` | ||
|
||
`DELETE <kibana host>:<port>/s/<space_id>/api/cases?ids=["<case ID1>","<case ID2>"]` | ||
|
||
=== Prerequisite | ||
|
||
You must have `all` privileges for the *Cases* feature in the *Management*, | ||
*{observability}*, or *Security* section of the | ||
<<kibana-feature-privileges,{kib} feature privileges>>, depending on the | ||
`owner` of the cases you're deleting. | ||
|
||
=== Path parameters | ||
|
||
`<space_id>`:: | ||
(Optional, string) An identifier for the space. If it is not specified, the | ||
default space is used. | ||
|
||
=== Query parameters | ||
|
||
`ids`:: | ||
(Required, string) The cases that you want to remove. To retrieve case IDs, use | ||
<<cases-api-find-cases>>. | ||
+ | ||
NOTE: All non-ASCII characters must be URL encoded. | ||
|
||
==== Response code | ||
|
||
`204`:: | ||
Indicates a successful call. | ||
|
||
=== Example | ||
|
||
Delete cases with these IDs: | ||
|
||
* `2e3a54f0-6754-11ea-a1c2-e3a8bc9f7aca` | ||
* `40b9a450-66a0-11ea-be1b-2bd3fef48984` | ||
|
||
[source,console] | ||
-------------------------------------------------- | ||
DELETE api/cases?ids=%5B%222e3a54f0-6754-11ea-a1c2-e3a8bc9f7aca%22%2C%2240b9a450-66a0-11ea-be1b-2bd3fef48984%22%5D | ||
-------------------------------------------------- | ||
// KIBANA |
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,63 @@ | ||
[[cases-api-delete-comments]] | ||
== Delete comments from case API | ||
++++ | ||
<titleabbrev>Delete comments</titleabbrev> | ||
++++ | ||
|
||
Deletes one or all comments from a case. | ||
|
||
=== Request | ||
|
||
`DELETE <kibana host>:<port>/api/cases/<case_id>/comments` | ||
|
||
`DELETE <kibana host>:<port>/api/cases/<case_id>/comments/<comment_id>` | ||
|
||
`DELETE <kibana host>:<port>/s/<space_id>/api/cases/<case_id>/comments` | ||
|
||
`DELETE <kibana host>:<port>/s/<space_id>/api/cases/<case_id>/comments/<comment_id>` | ||
|
||
=== Prerequisite | ||
|
||
You must have `all` privileges for the *Cases* feature in the *Management*, | ||
*{observability}*, or *Security* section of the | ||
<<kibana-feature-privileges,{kib} feature privileges>>, depending on the | ||
`owner` of the cases you're updating. | ||
|
||
=== Path parameters | ||
|
||
`<case_id>`:: | ||
(Required, string) The identifier for the case. To retrieve case IDs, use | ||
<<cases-api-find-cases>>. | ||
|
||
`<comment_id>`:: | ||
(Optional, string) The identifier for the comment. | ||
//To retrieve comment IDs, use <<cases-api-get-all-case-comments>>. | ||
If it is not specified, all comments are deleted. | ||
|
||
<space_id>:: | ||
(Optional, string) An identifier for the space. If it is not specified, the | ||
default space is used. | ||
|
||
=== Response code | ||
|
||
`204`:: | ||
Indicates a successful call. | ||
|
||
=== Example | ||
|
||
Delete all comments from case ID `9c235210-6834-11ea-a78c-6ffb38a34414`: | ||
|
||
[source,console] | ||
-------------------------------------------------- | ||
DELETE api/cases/a18b38a0-71b0-11ea-a0b2-c51ea50a58e2/comments | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
Delete comment ID `71ec1870-725b-11ea-a0b2-c51ea50a58e2` from case ID | ||
`a18b38a0-71b0-11ea-a0b2-c51ea50a58e2`: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
DELETE api/cases/a18b38a0-71b0-11ea-a0b2-c51ea50a58e2/comments/71ec1870-725b-11ea-a0b2-c51ea50a58e2 | ||
-------------------------------------------------- | ||
// KIBANA |
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
Oops, something went wrong.