浏览代码

[DOCS] Add security privileges to API docs (#67939)

James Rodewig 4 年之前
父节点
当前提交
03334b9801

+ 7 - 0
docs/reference/indices/apis/reload-analyzers.asciidoc

@@ -29,6 +29,13 @@ IMPORTANT: After reloading the search analyzers you should clear the request
 
 `GET /<target>/_reload_search_analyzers`
 
+[discrete]
+[[indices-reload-analyzers-api-prereqs]]
+=== {api-prereq-title}
+
+* If the {es} {security-features} are enabled, you must have the `manage`
+<<privileges-list-indices,index privilege>> for the target data stream, index,
+or index alias.
 
 [discrete]
 [[indices-reload-analyzers-api-desc]]

+ 6 - 0
docs/reference/migration/apis/deprecation.asciidoc

@@ -22,6 +22,12 @@ be removed or changed in the next major version.
 
 `GET /<target>/_migration/deprecations`
 
+[[migration-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.
+
 [[migration-api-path-params]]
 ==== {api-path-parms-title}
 

+ 7 - 0
docs/reference/rest-api/info.asciidoc

@@ -11,6 +11,13 @@ Provides general information about the installed {xpack} features.
 
 `GET /_xpack`
 
+[discrete]
+[[info-api-prereqs]]
+=== {api-prereq-title}
+
+* If the {es} {security-features} are enabled, you must have the `monitor` or
+`manage` <<privileges-list-cluster,cluster privilege>> to use this API.
+
 [discrete]
 [[info-api-desc]]
 === {api-description-title}

+ 7 - 0
docs/reference/rest-api/usage.asciidoc

@@ -11,6 +11,13 @@ Provides usage information about the installed {xpack} features.
 
 `GET /_xpack/usage`
 
+[discrete]
+[[usage-api-prereqs]]
+=== {api-prereq-title}
+
+* If the {es} {security-features} are enabled, you must have the `monitor` or
+`manage` <<privileges-list-cluster,cluster privilege>> to use this API.
+
 [discrete]
 [[usage-api-desc]]
 === {api-description-title}