Skip to content

Commit

Permalink
[DOCS] Add security privileges to data stream API docs (elastic#67612)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig authored Jan 20, 2021
1 parent 427d135 commit a55fc8f
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/reference/data-streams/promote-data-stream-api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ POST /_data_stream/_promote/my-data-stream

`POST /_data_stream/_promote/<data-stream>`

[[promote-data-stream-api-prereqs]]
==== {api-prereq-title}

* If the {es} {security-features} are enabled, you must have the `manage`
<<privileges-list-cluster,cluster privilege>> to use this API.

[[promote-data-stream-api-path-params]]
==== {api-path-parms-title}
Expand Down
6 changes: 6 additions & 0 deletions docs/reference/indices/create-data-stream.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ DELETE /_index_template/template

`PUT /_data_stream/<data-stream>`

[[indices-create-data-stream-prereqs]]
==== {api-prereq-title}

* If the {es} {security-features} are enabled, you must have the `create_index`
or `manage` <<privileges-list-indices,index privilege>> for the data stream.

[[indices-create-data-stream-api-path-params]]
==== {api-path-parms-title}

Expand Down
6 changes: 6 additions & 0 deletions docs/reference/indices/data-stream-stats.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ DELETE /_index_template/*
GET /_data_stream/my-data-stream/_stats
----

[[data-stream-stats-api-prereqs]]
==== {api-prereq-title}

* If the {es} {security-features} are enabled, you must have the
`monitor` or `manage` <<privileges-list-indices,index privilege>>
for the data stream.

[[data-stream-stats-api-request]]
==== {api-request-title}
Expand Down
6 changes: 6 additions & 0 deletions docs/reference/indices/delete-data-stream.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ DELETE /_index_template/template

`DELETE /_data_stream/<data-stream>`

[[delete-data-stream-api-prereqs]]
==== {api-prereq-title}

* If the {es} {security-features} are enabled, you must have the `delete_index`
or `manage` <<privileges-list-indices,index privilege>> for the data stream.


[[delete-data-stream-api-path-params]]
==== {api-path-parms-title}
Expand Down
7 changes: 7 additions & 0 deletions docs/reference/indices/get-data-stream.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ GET /_data_stream/my-data-stream

`GET /_data_stream/<data-stream>`

[[get-data-stream-api-prereqs]]
==== {api-prereq-title}

* If the {es} {security-features} are enabled, you must have the
`view_index_metadata` or `manage` <<privileges-list-indices,index privilege>>
for the data stream.

[[get-data-stream-api-path-params]]
==== {api-path-parms-title}

Expand Down
6 changes: 6 additions & 0 deletions docs/reference/indices/migrate-to-data-stream.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ DELETE /_index_template/template

`POST /_data_stream/_migrate/<alias>`

[[indices-migrate-to-data-stream-prereqs]]
==== {api-prereq-title}

* If the {es} {security-features} are enabled, you must have the `manage`
<<privileges-list-indices,index privilege>> for the index alias.

[[indices-migrate-to-data-stream-api-path-params]]
==== {api-path-parms-title}

Expand Down

0 comments on commit a55fc8f

Please sign in to comment.