forked from elastic/security-docs
-
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.
Update timeline docs (elastic#678) (elastic#691)
Co-authored-by: jmikell821 <[email protected]> Co-authored-by: Janeen Mikell-Straughn <[email protected]> Co-authored-by: Angela Chuang <[email protected]>
- Loading branch information
1 parent
d2e94f5
commit 90fe910
Showing
7 changed files
with
270 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[[timeline-api-delete]] | ||
=== Delete Timelines or Timeline templates | ||
|
||
Delete multiple Timelines or Timeline templates. | ||
|
||
==== Request URL | ||
|
||
`DELETE <kibana host>:<port>/api/timeline` | ||
|
||
==== Request body | ||
|
||
A JSON object defining the savedObjectIds of Timelines or Timeline templates to be deleted. | ||
|
||
[width="100%",options="header"] | ||
|============================================== | ||
|Name |Type |Description |Required | ||
|`savedObjectIds` | Array | `savedObjectIds` of Timelines or Timeline templates | ||
|Yes | ||
|
||
|============================================== | ||
|
||
===== Example requests | ||
|
||
[source,console] | ||
-------------------------------------------------- | ||
DELETE api/timeline | ||
{ | ||
"savedObjectIds": ["56efaaf0-b274-11eb-8078-5b983613cc0f"] | ||
} | ||
-------------------------------------------------- |
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,86 @@ | ||
[[timeline-api-get]] | ||
=== Get Timelines or Timeline templates | ||
|
||
Get Timelines or Timeline templates. | ||
|
||
==== Request URL | ||
|
||
`GET <kibana host>:<port>/api/timelines` | ||
|
||
==== Request params | ||
|
||
[width="100%",options="header"] | ||
|============================================== | ||
|Name |Type |Description |Required | ||
|
||
|`only_user_favorite` |Boolean a|Returns only favorite Timelines / Timeline templates if set to `true`. Default to `false` | ||
|No | ||
|`page_index` |Number |Page number of the result | ||
|No | ||
|`page_size` |Number |Items per page in result | ||
|No | ||
|`search` |String |The key word of the Timelines / Timeline templates you are searching for | ||
|No | ||
|`sort_field` |String |The order you want the result to be arranged. Can be `title`, `description`, `updated`, `created` | ||
|No | ||
|`sort_order` |String |`asc` or `desc` | ||
|No | ||
|`status` |String |Can be `active` or `immutable`. `active` returns all the custom Timelines / Timeline templates, whereas `immutable` returns Elastic prebuilt templates | ||
|No | ||
|`timeline_type` |String |Use the `timeline` object's <<timeline-object-typeField, `timelineType`>> field | ||
to determine whether a timeline or a Timeline template is created, where: | ||
|
||
`default` returns Timelines, `template` returns Timeline templates | ||
|No | ||
|
||
|============================================== | ||
|
||
===== Example requests | ||
|
||
Get Timelines: | ||
|
||
[source,console] | ||
-------------------------------------------------- | ||
GET api/timelines?page_size=10&page_index=1&sort_field=updated&sort_order=desc&timeline_type=default | ||
-------------------------------------------------- | ||
|
||
|
||
=== Get Timeline / Timeline template by savedObjectId | ||
|
||
Get single Timeline or Timeline template by savedObjectId. | ||
|
||
==== Request URL | ||
|
||
`GET <kibana host>:<port>/api/timeline?id=<savedObjectId>` | ||
|
||
===== Example requests | ||
|
||
Get Timeline by savedObjectId: | ||
|
||
[source,console] | ||
-------------------------------------------------- | ||
GET /api/timeline?id=<savedObjectId> | ||
-------------------------------------------------- | ||
|
||
|
||
=== Get Timeline template by templateTimelineId | ||
|
||
Get a single Timeline template by templateTimelineId. | ||
|
||
==== Request URL | ||
|
||
`GET <kibana host>:<port>/api/timeline?template_timeline_id=<templateTimelineId>` | ||
|
||
===== Example requests | ||
|
||
Get Timeline by templateTimelineId: | ||
|
||
[source,console] | ||
-------------------------------------------------- | ||
GET /api/timeline?template_timeline_id=<templateTimelineId> | ||
-------------------------------------------------- | ||
|
||
|
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
include::timeline-api-overview.asciidoc[] | ||
|
||
include::timeline-api-get.asciidoc[] | ||
|
||
include::timeline-api-create.asciidoc[] | ||
|
||
include::timeline-api-update.asciidoc[] | ||
|
||
include::timeline-api-delete.asciidoc[] | ||
|
||
// include::timeline-api-export.asciidoc[] | ||
|
||
include::timeline-api-import.asciidoc[] |
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.