Browse Source

[DOCS] Fix security links in machine learning APIs (#60098)

Lisa Cawley 5 years ago
parent
commit
1781d4a7b9
68 changed files with 92 additions and 100 deletions
  1. 1 1
      docs/reference/cat/anomaly-detectors.asciidoc
  2. 1 1
      docs/reference/cat/datafeeds.asciidoc
  3. 1 1
      docs/reference/cat/dataframeanalytics.asciidoc
  4. 1 2
      docs/reference/cat/trainedmodel.asciidoc
  5. 1 0
      docs/reference/index.asciidoc
  6. 4 0
      docs/reference/links.asciidoc
  7. 1 1
      docs/reference/ml/anomaly-detection/apis/close-job.asciidoc
  8. 1 1
      docs/reference/ml/anomaly-detection/apis/delete-calendar-event.asciidoc
  9. 1 1
      docs/reference/ml/anomaly-detection/apis/delete-calendar-job.asciidoc
  10. 1 1
      docs/reference/ml/anomaly-detection/apis/delete-calendar.asciidoc
  11. 1 1
      docs/reference/ml/anomaly-detection/apis/delete-datafeed.asciidoc
  12. 1 1
      docs/reference/ml/anomaly-detection/apis/delete-expired-data.asciidoc
  13. 1 1
      docs/reference/ml/anomaly-detection/apis/delete-filter.asciidoc
  14. 1 1
      docs/reference/ml/anomaly-detection/apis/delete-forecast.asciidoc
  15. 2 1
      docs/reference/ml/anomaly-detection/apis/delete-job.asciidoc
  16. 2 1
      docs/reference/ml/anomaly-detection/apis/delete-snapshot.asciidoc
  17. 3 3
      docs/reference/ml/anomaly-detection/apis/estimate-model-memory.asciidoc
  18. 2 1
      docs/reference/ml/anomaly-detection/apis/find-file-structure.asciidoc
  19. 1 1
      docs/reference/ml/anomaly-detection/apis/flush-job.asciidoc
  20. 2 2
      docs/reference/ml/anomaly-detection/apis/forecast.asciidoc
  21. 2 3
      docs/reference/ml/anomaly-detection/apis/get-bucket.asciidoc
  22. 1 1
      docs/reference/ml/anomaly-detection/apis/get-calendar-event.asciidoc
  23. 1 1
      docs/reference/ml/anomaly-detection/apis/get-calendar.asciidoc
  24. 2 2
      docs/reference/ml/anomaly-detection/apis/get-category.asciidoc
  25. 1 1
      docs/reference/ml/anomaly-detection/apis/get-datafeed-stats.asciidoc
  26. 1 1
      docs/reference/ml/anomaly-detection/apis/get-datafeed.asciidoc
  27. 1 1
      docs/reference/ml/anomaly-detection/apis/get-filter.asciidoc
  28. 2 2
      docs/reference/ml/anomaly-detection/apis/get-influencer.asciidoc
  29. 1 1
      docs/reference/ml/anomaly-detection/apis/get-job-stats.asciidoc
  30. 1 1
      docs/reference/ml/anomaly-detection/apis/get-job.asciidoc
  31. 2 2
      docs/reference/ml/anomaly-detection/apis/get-ml-info.asciidoc
  32. 2 1
      docs/reference/ml/anomaly-detection/apis/get-overall-buckets.asciidoc
  33. 2 1
      docs/reference/ml/anomaly-detection/apis/get-record.asciidoc
  34. 1 1
      docs/reference/ml/anomaly-detection/apis/get-snapshot.asciidoc
  35. 1 1
      docs/reference/ml/anomaly-detection/apis/open-job.asciidoc
  36. 1 1
      docs/reference/ml/anomaly-detection/apis/post-calendar-event.asciidoc
  37. 1 1
      docs/reference/ml/anomaly-detection/apis/post-data.asciidoc
  38. 1 1
      docs/reference/ml/anomaly-detection/apis/preview-datafeed.asciidoc
  39. 1 1
      docs/reference/ml/anomaly-detection/apis/put-calendar-job.asciidoc
  40. 1 1
      docs/reference/ml/anomaly-detection/apis/put-calendar.asciidoc
  41. 2 2
      docs/reference/ml/anomaly-detection/apis/put-datafeed.asciidoc
  42. 1 1
      docs/reference/ml/anomaly-detection/apis/put-filter.asciidoc
  43. 1 1
      docs/reference/ml/anomaly-detection/apis/put-job.asciidoc
  44. 1 1
      docs/reference/ml/anomaly-detection/apis/revert-snapshot.asciidoc
  45. 1 1
      docs/reference/ml/anomaly-detection/apis/set-upgrade-mode.asciidoc
  46. 1 1
      docs/reference/ml/anomaly-detection/apis/start-datafeed.asciidoc
  47. 1 1
      docs/reference/ml/anomaly-detection/apis/stop-datafeed.asciidoc
  48. 1 1
      docs/reference/ml/anomaly-detection/apis/update-datafeed.asciidoc
  49. 1 1
      docs/reference/ml/anomaly-detection/apis/update-filter.asciidoc
  50. 1 1
      docs/reference/ml/anomaly-detection/apis/update-job.asciidoc
  51. 1 1
      docs/reference/ml/anomaly-detection/apis/update-snapshot.asciidoc
  52. 1 1
      docs/reference/ml/anomaly-detection/apis/validate-detector.asciidoc
  53. 1 1
      docs/reference/ml/anomaly-detection/apis/validate-job.asciidoc
  54. 1 2
      docs/reference/ml/df-analytics/apis/delete-dfanalytics.asciidoc
  55. 1 2
      docs/reference/ml/df-analytics/apis/delete-inference-trained-model.asciidoc
  56. 1 1
      docs/reference/ml/df-analytics/apis/evaluate-dfanalytics.asciidoc
  57. 1 1
      docs/reference/ml/df-analytics/apis/explain-dfanalytics.asciidoc
  58. 1 1
      docs/reference/ml/df-analytics/apis/get-dfanalytics-stats.asciidoc
  59. 1 1
      docs/reference/ml/df-analytics/apis/get-dfanalytics.asciidoc
  60. 1 2
      docs/reference/ml/df-analytics/apis/get-inference-trained-model-stats.asciidoc
  61. 1 1
      docs/reference/ml/df-analytics/apis/get-inference-trained-model.asciidoc
  62. 3 5
      docs/reference/ml/df-analytics/apis/put-dfanalytics.asciidoc
  63. 2 2
      docs/reference/ml/df-analytics/apis/put-inference.asciidoc
  64. 3 6
      docs/reference/ml/df-analytics/apis/start-dfanalytics.asciidoc
  65. 1 2
      docs/reference/ml/df-analytics/apis/stop-dfanalytics.asciidoc
  66. 2 5
      docs/reference/ml/df-analytics/apis/update-dfanalytics.asciidoc
  67. 2 4
      docs/reference/transform/apis/put-transform.asciidoc
  68. 2 4
      x-pack/docs/en/security/authorization/built-in-roles.asciidoc

+ 1 - 1
docs/reference/cat/anomaly-detectors.asciidoc

@@ -20,7 +20,7 @@ Returns configuration and usage information about {anomaly-jobs}.
 
 
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
-<<security-privileges>> and {ml-docs}/setup.html[Set up {ml-features}].
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[cat-anomaly-detectors-desc]]
 [[cat-anomaly-detectors-desc]]

+ 1 - 1
docs/reference/cat/datafeeds.asciidoc

@@ -20,7 +20,7 @@ Returns configuration and usage information about {dfeeds}.
 
 
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
-<<security-privileges>> and {ml-docs}/setup.html[Set up {ml-features}].
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[cat-datafeeds-desc]]
 [[cat-datafeeds-desc]]

+ 1 - 1
docs/reference/cat/dataframeanalytics.asciidoc

@@ -25,7 +25,7 @@ privileges:
 
 
 * cluster: `monitor_ml`
 * cluster: `monitor_ml`
   
   
-For more information, see <<security-privileges>> and {ml-docs}/setup.html[Set up {ml-features}].
+For more information, see <<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 
 
 ////
 ////

+ 1 - 2
docs/reference/cat/trainedmodel.asciidoc

@@ -23,8 +23,7 @@ privileges:
 
 
 * cluster: `monitor_ml`
 * cluster: `monitor_ml`
 
 
-For more information, see <<security-privileges>> and 
-{ml-docs}/setup.html[Set up {ml-features}].
+For more information, see <<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 
 
 ////
 ////

+ 1 - 0
docs/reference/index.asciidoc

@@ -8,6 +8,7 @@
 :es-repo-dir:           {elasticsearch-root}/docs/reference
 :es-repo-dir:           {elasticsearch-root}/docs/reference
 
 
 include::../Versions.asciidoc[]
 include::../Versions.asciidoc[]
+include::links.asciidoc[]
 
 
 include::intro.asciidoc[]
 include::intro.asciidoc[]
 
 

+ 4 - 0
docs/reference/links.asciidoc

@@ -0,0 +1,4 @@
+// These attributes define common links in the Elasticsearch Reference
+
+:ml-docs-setup:            {ml-docs}/setup.html[Set up {ml-features}]
+:ml-docs-setup-privileges: {ml-docs}/setup.html#setup-privileges[{ml-cap} security privileges]

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/close-job.asciidoc

@@ -26,7 +26,7 @@ operations, but you can still explore and navigate results.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 * Before you can close an {anomaly-job}, you must stop its {dfeed}. See
 * Before you can close an {anomaly-job}, you must stop its {dfeed}. See
 <<ml-stop-datafeed>>.
 <<ml-stop-datafeed>>.
 
 

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/delete-calendar-event.asciidoc

@@ -18,7 +18,7 @@ Deletes scheduled events from a calendar.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-delete-calendar-event-desc]]
 [[ml-delete-calendar-event-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/delete-calendar-job.asciidoc

@@ -18,7 +18,7 @@ Deletes {anomaly-jobs} from a calendar.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-delete-calendar-job-path-parms]]
 [[ml-delete-calendar-job-path-parms]]
 == {api-path-parms-title}
 == {api-path-parms-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/delete-calendar.asciidoc

@@ -18,7 +18,7 @@ Deletes a calendar.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-delete-calendar-desc]]
 [[ml-delete-calendar-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/delete-datafeed.asciidoc

@@ -22,7 +22,7 @@ Deletes an existing {dfeed}.
 can delete it.
 can delete it.
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-delete-datafeed-path-parms]]
 [[ml-delete-datafeed-path-parms]]
 == {api-path-parms-title}
 == {api-path-parms-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/delete-expired-data.asciidoc

@@ -20,7 +20,7 @@ Deletes expired and unused machine learning data.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-delete-expired-data-desc]]
 [[ml-delete-expired-data-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/delete-filter.asciidoc

@@ -18,7 +18,7 @@ Deletes a filter.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-delete-filter-desc]]
 [[ml-delete-filter-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/delete-forecast.asciidoc

@@ -22,7 +22,7 @@ Deletes forecasts from a {ml} job.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-delete-forecast-desc]]
 [[ml-delete-forecast-desc]]
 == {api-description-title}
 == {api-description-title}

+ 2 - 1
docs/reference/ml/anomaly-detection/apis/delete-job.asciidoc

@@ -17,7 +17,8 @@ Deletes an existing {anomaly-job}.
 == {api-prereq-title}
 == {api-prereq-title}
 
 
 * If {es} {security-features} are enabled, you must have `manage_ml` or `manage`
 * If {es} {security-features} are enabled, you must have `manage_ml` or `manage`
-cluster privileges to use this API. See <<security-privileges>>.
+cluster privileges to use this API. See <<security-privileges>> and
+{ml-docs-setup-privileges}.
 * Before you can delete a job, you must delete the {dfeeds} that are associated
 * Before you can delete a job, you must delete the {dfeeds} that are associated
 with it. See <<ml-delete-datafeed>>.
 with it. See <<ml-delete-datafeed>>.
 * Before you can delete a job, you must close it (unless you specify the `force` parameter). See <<ml-close-job>>.
 * Before you can delete a job, you must close it (unless you specify the `force` parameter). See <<ml-close-job>>.

+ 2 - 1
docs/reference/ml/anomaly-detection/apis/delete-snapshot.asciidoc

@@ -17,7 +17,8 @@ Deletes an existing model snapshot.
 == {api-prereq-title}
 == {api-prereq-title}
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
-`manage` cluster privileges to use this API. See <<security-privileges>>.
+`manage` cluster privileges to use this API. See <<security-privileges>> and
+{ml-docs-setup-privileges}.
 
 
 [[ml-delete-snapshot-desc]]
 [[ml-delete-snapshot-desc]]
 == {api-description-title}
 == {api-description-title}

+ 3 - 3
docs/reference/ml/anomaly-detection/apis/estimate-model-memory.asciidoc

@@ -19,12 +19,12 @@ fields it references.
 [[ml-estimate-model-memory-prereqs]]
 [[ml-estimate-model-memory-prereqs]]
 == {api-prereq-title}
 == {api-prereq-title}
 
 
-If the {es} {security-features} are enabled, you must have the following 
-equivalent privileges:
+If the {es} {security-features} are enabled, you must have the following privileges:
 
 
 * `manage_ml` or cluster: `manage`
 * `manage_ml` or cluster: `manage`
 
 
-For more information, see <<security-privileges>>.
+For more information, see <<security-privileges>> and
+{ml-docs-setup-privileges}.
 
 
 
 
 [[ml-estimate-model-memory-request-body]]
 [[ml-estimate-model-memory-request-body]]

+ 2 - 1
docs/reference/ml/anomaly-detection/apis/find-file-structure.asciidoc

@@ -23,7 +23,8 @@ suitable to be ingested into {es}.
 
 
 * If the {es} {security-features} are enabled, you must have `monitor_ml` or
 * If the {es} {security-features} are enabled, you must have `monitor_ml` or
 `monitor` cluster privileges to use this API. See
 `monitor` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and
+{ml-docs-setup-privileges}.
 
 
 
 
 [[ml-find-file-structure-desc]]
 [[ml-find-file-structure-desc]]

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/flush-job.asciidoc

@@ -18,7 +18,7 @@ Forces any buffered data to be processed by the job.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-flush-job-desc]]
 [[ml-flush-job-desc]]
 == {api-description-title}
 == {api-description-title}

+ 2 - 2
docs/reference/ml/anomaly-detection/apis/forecast.asciidoc

@@ -18,13 +18,13 @@ Predicts the future behavior of a time series by using its historical behavior.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-forecast-desc]]
 [[ml-forecast-desc]]
 == {api-description-title}
 == {api-description-title}
 
 
 You can create a forecast job based on an {anomaly-job} to extrapolate future 
 You can create a forecast job based on an {anomaly-job} to extrapolate future 
-behavior. Refer to 
+behavior. Refer to
 {ml-docs}/ml-overview.html#ml-forecasting[Forecasting the future] and 
 {ml-docs}/ml-overview.html#ml-forecasting[Forecasting the future] and 
 {ml-docs}/ml-limitations.html#ml-forecast-limitations[forecast limitations] to 
 {ml-docs}/ml-limitations.html#ml-forecast-limitations[forecast limitations] to 
 learn more.
 learn more.

+ 2 - 3
docs/reference/ml/anomaly-detection/apis/get-bucket.asciidoc

@@ -22,9 +22,8 @@ Retrieves {anomaly-job} results for one or more buckets.
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. You also
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. You also
 need `read` index privilege on the index that stores the results. The
 need `read` index privilege on the index that stores the results. The
 `machine_learning_admin` and `machine_learning_user` roles provide these
 `machine_learning_admin` and `machine_learning_user` roles provide these
-privileges. For more information, see
-<<security-privileges>> and
-<<built-in-roles>>.
+privileges. For more information, see <<security-privileges>>,
+<<built-in-roles>>, and {ml-docs-setup-privileges}.
 
 
 [[ml-get-bucket-desc]]
 [[ml-get-bucket-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/get-calendar-event.asciidoc

@@ -20,7 +20,7 @@ Retrieves information about the scheduled events in calendars.
 
 
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-get-calendar-event-desc]]
 [[ml-get-calendar-event-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/get-calendar.asciidoc

@@ -20,7 +20,7 @@ Retrieves configuration information for calendars.
 
 
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-get-calendar-desc]]
 [[ml-get-calendar-desc]]
 == {api-description-title}
 == {api-description-title}

+ 2 - 2
docs/reference/ml/anomaly-detection/apis/get-category.asciidoc

@@ -22,8 +22,8 @@ Retrieves {anomaly-job} results for one or more categories.
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. You also
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. You also
 need `read` index privilege on the index that stores the results. The
 need `read` index privilege on the index that stores the results. The
 `machine_learning_admin` and `machine_learning_user` roles provide these
 `machine_learning_admin` and `machine_learning_user` roles provide these
-privileges. See <<security-privileges>> and
-<<built-in-roles>>.
+privileges. See <<security-privileges>>, <<built-in-roles>>, and
+{ml-docs-setup-privileges}.
 
 
 [[ml-get-category-desc]]
 [[ml-get-category-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/get-datafeed-stats.asciidoc

@@ -26,7 +26,7 @@ Retrieves usage information for {dfeeds}.
 
 
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-get-datafeed-stats-desc]]
 [[ml-get-datafeed-stats-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/get-datafeed.asciidoc

@@ -26,7 +26,7 @@ Retrieves configuration information for {dfeeds}.
 
 
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-get-datafeed-desc]]
 [[ml-get-datafeed-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/get-filter.asciidoc

@@ -20,7 +20,7 @@ Retrieves filters.
 
 
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-get-filter-desc]]
 [[ml-get-filter-desc]]
 == {api-description-title}
 == {api-description-title}

+ 2 - 2
docs/reference/ml/anomaly-detection/apis/get-influencer.asciidoc

@@ -20,8 +20,8 @@ Retrieves {anomaly-job} results for one or more influencers.
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. You also
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. You also
 need `read` index privilege on the index that stores the results. The
 need `read` index privilege on the index that stores the results. The
 `machine_learning_admin` and `machine_learning_user` roles provide these
 `machine_learning_admin` and `machine_learning_user` roles provide these
-privileges. See <<security-privileges>> and
-<<built-in-roles>>.
+privileges. See <<security-privileges>>, <<built-in-roles>>, and
+{ml-docs-setup-privileges}.
 
 
 [[ml-get-influencer-desc]]
 [[ml-get-influencer-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/get-job-stats.asciidoc

@@ -24,7 +24,7 @@ Retrieves usage information for {anomaly-jobs}.
 
 
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-get-job-stats-desc]]
 [[ml-get-job-stats-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/get-job.asciidoc

@@ -24,7 +24,7 @@ Retrieves configuration information for {anomaly-jobs}.
 
 
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-get-job-desc]]
 [[ml-get-job-desc]]
 == {api-description-title}
 == {api-description-title}

+ 2 - 2
docs/reference/ml/anomaly-detection/apis/get-ml-info.asciidoc

@@ -21,8 +21,8 @@ Returns defaults and limits used by machine learning.
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. The
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. The
 `machine_learning_admin` and `machine_learning_user` roles provide these
 `machine_learning_admin` and `machine_learning_user` roles provide these
-privileges. See <<security-privileges>> and
-<<built-in-roles>>.
+privileges. See <<security-privileges>>, <<built-in-roles>> and
+{ml-docs-setup-privileges}.
 
 
 [[get-ml-info-desc]]
 [[get-ml-info-desc]]
 == {api-description-title}
 == {api-description-title}

+ 2 - 1
docs/reference/ml/anomaly-detection/apis/get-overall-buckets.asciidoc

@@ -25,7 +25,8 @@ Retrieves overall bucket results that summarize the bucket results of multiple
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. You also
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. You also
 need `read` index privilege on the index that stores the results. The
 need `read` index privilege on the index that stores the results. The
 `machine_learning_admin` and `machine_learning_user` roles provide these
 `machine_learning_admin` and `machine_learning_user` roles provide these
-privileges. See <<security-privileges>> and <<built-in-roles>>.
+privileges. See <<security-privileges>>, <<built-in-roles>>, and
+{ml-docs-setup-privileges}.
 
 
 [[ml-get-overall-buckets-desc]]
 [[ml-get-overall-buckets-desc]]
 == {api-description-title}
 == {api-description-title}

+ 2 - 1
docs/reference/ml/anomaly-detection/apis/get-record.asciidoc

@@ -20,7 +20,8 @@ Retrieves anomaly records for an {anomaly-job}.
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. You also
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. You also
 need `read` index privilege on the index that stores the results. The
 need `read` index privilege on the index that stores the results. The
 `machine_learning_admin` and `machine_learning_user` roles provide these
 `machine_learning_admin` and `machine_learning_user` roles provide these
-privileges. See <<security-privileges>> and <<built-in-roles>>.
+privileges. See <<security-privileges>>, <<built-in-roles>>, and
+{ml-docs-setup-privileges}.
 
 
 [[ml-get-record-desc]]
 [[ml-get-record-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/get-snapshot.asciidoc

@@ -20,7 +20,7 @@ Retrieves information about model snapshots.
 
 
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 * If the {es} {security-features} are enabled, you must have `monitor_ml`,
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
 `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-get-snapshot-path-parms]]
 [[ml-get-snapshot-path-parms]]
 == {api-path-parms-title}
 == {api-path-parms-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/open-job.asciidoc

@@ -18,7 +18,7 @@ Opens one or more {anomaly-jobs}.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-open-job-desc]]
 [[ml-open-job-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/post-calendar-event.asciidoc

@@ -18,7 +18,7 @@ Posts scheduled events in a calendar.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-post-calendar-event-desc]]
 [[ml-post-calendar-event-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/post-data.asciidoc

@@ -18,7 +18,7 @@ Sends data to an anomaly detection job for analysis.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-post-data-desc]]
 [[ml-post-data-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/preview-datafeed.asciidoc

@@ -20,7 +20,7 @@ Previews a {dfeed}.
 
 
 * If {es} {security-features} are enabled, you must have `monitor_ml`, `monitor`,
 * If {es} {security-features} are enabled, you must have `monitor_ml`, `monitor`,
 `manage_ml`, or `manage` cluster privileges to use this API. See
 `manage_ml`, or `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-preview-datafeed-desc]]
 [[ml-preview-datafeed-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/put-calendar-job.asciidoc

@@ -18,7 +18,7 @@ Adds an {anomaly-job} to a calendar.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-put-calendar-job-path-parms]]
 [[ml-put-calendar-job-path-parms]]
 == {api-path-parms-title}
 == {api-path-parms-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/put-calendar.asciidoc

@@ -18,7 +18,7 @@ Instantiates a calendar.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-put-calendar-desc]]
 [[ml-put-calendar-desc]]
 == {api-description-title}
 == {api-description-title}

+ 2 - 2
docs/reference/ml/anomaly-detection/apis/put-datafeed.asciidoc

@@ -20,8 +20,8 @@ Instantiates a {dfeed}.
 
 
 * You must create an {anomaly-job} before you create a {dfeed}.  
 * You must create an {anomaly-job} before you create a {dfeed}.  
 * If {es} {security-features} are enabled, you must have `manage_ml` or `manage`
 * If {es} {security-features} are enabled, you must have `manage_ml` or `manage`
-cluster privileges to use this API. See
-<<security-privileges>>.
+cluster privileges to use this API. See <<security-privileges>> and
+{ml-docs-setup-privileges}.
 
 
 [[ml-put-datafeed-desc]]
 [[ml-put-datafeed-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/put-filter.asciidoc

@@ -18,7 +18,7 @@ Instantiates a filter.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-put-filter-desc]]
 [[ml-put-filter-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/put-job.asciidoc

@@ -18,7 +18,7 @@ Instantiates an {anomaly-job}.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-put-job-desc]]
 [[ml-put-job-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/revert-snapshot.asciidoc

@@ -19,7 +19,7 @@ Reverts to a specific snapshot.
 * Before you revert to a saved snapshot, you must close the job.
 * Before you revert to a saved snapshot, you must close the job.
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-revert-snapshot-desc]]
 [[ml-revert-snapshot-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/set-upgrade-mode.asciidoc

@@ -29,7 +29,7 @@ POST /_ml/set_upgrade_mode?enabled=false&timeout=10m
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-set-upgrade-mode-desc]]
 [[ml-set-upgrade-mode-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/start-datafeed.asciidoc

@@ -22,7 +22,7 @@ Starts one or more {dfeeds}.
 error occurs.
 error occurs.
 * If {es} {security-features} are enabled, you must have `manage_ml` or `manage`
 * If {es} {security-features} are enabled, you must have `manage_ml` or `manage`
 cluster privileges to use this API. See
 cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-start-datafeed-desc]]
 [[ml-start-datafeed-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/stop-datafeed.asciidoc

@@ -24,7 +24,7 @@ Stops one or more {dfeeds}.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-stop-datafeed-desc]]
 [[ml-stop-datafeed-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/update-datafeed.asciidoc

@@ -22,7 +22,7 @@ Updates certain properties of a {dfeed}.
 
 
 * If {es} {security-features} are enabled, you must have `manage_ml`, or `manage`
 * If {es} {security-features} are enabled, you must have `manage_ml`, or `manage`
 cluster privileges to use this API. See
 cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[ml-update-datafeed-desc]]
 [[ml-update-datafeed-desc]]

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/update-filter.asciidoc

@@ -18,7 +18,7 @@ Updates the description of a filter, adds items, or removes items.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-update-filter-path-parms]]
 [[ml-update-filter-path-parms]]
 == {api-path-parms-title}
 == {api-path-parms-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/update-job.asciidoc

@@ -18,7 +18,7 @@ Updates certain properties of an {anomaly-job}.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[ml-update-job-path-parms]]
 [[ml-update-job-path-parms]]

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/update-snapshot.asciidoc

@@ -18,7 +18,7 @@ Updates certain properties of a snapshot.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[ml-update-snapshot-path-parms]]
 [[ml-update-snapshot-path-parms]]

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/validate-detector.asciidoc

@@ -18,7 +18,7 @@ Validates detector configuration information.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-valid-detector-desc]]
 [[ml-valid-detector-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/anomaly-detection/apis/validate-job.asciidoc

@@ -18,7 +18,7 @@ Validates {anomaly-job} configuration information.
 
 
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 * If the {es} {security-features} are enabled, you must have `manage_ml` or
 `manage` cluster privileges to use this API. See
 `manage` cluster privileges to use this API. See
-<<security-privileges>>.
+<<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-valid-job-desc]]
 [[ml-valid-job-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 2
docs/reference/ml/df-analytics/apis/delete-dfanalytics.asciidoc

@@ -25,9 +25,8 @@ If the {es} {security-features} are enabled, you must have the following
 built-in roles or equivalent privileges:
 built-in roles or equivalent privileges:
 
 
 * `machine_learning_admin`
 * `machine_learning_admin`
-* `kibana_admin` (UI only)
 
 
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<built-in-roles>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[ml-delete-dfanalytics-path-params]]
 [[ml-delete-dfanalytics-path-params]]

+ 1 - 2
docs/reference/ml/df-analytics/apis/delete-inference-trained-model.asciidoc

@@ -26,9 +26,8 @@ If the {es} {security-features} are enabled, you must have the following
 built-in roles or equivalent privileges:
 built-in roles or equivalent privileges:
 
 
 * `machine_learning_admin`
 * `machine_learning_admin`
-* `kibana_admin` (UI only)
 
 
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<built-in-roles>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[ml-delete-inference-path-params]]
 [[ml-delete-inference-path-params]]

+ 1 - 1
docs/reference/ml/df-analytics/apis/evaluate-dfanalytics.asciidoc

@@ -27,7 +27,7 @@ privileges:
 
 
 * cluster: `monitor_ml`
 * cluster: `monitor_ml`
   
   
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[ml-evaluate-dfanalytics-desc]]
 [[ml-evaluate-dfanalytics-desc]]

+ 1 - 1
docs/reference/ml/df-analytics/apis/explain-dfanalytics.asciidoc

@@ -33,7 +33,7 @@ privileges:
 
 
 * cluster: `monitor_ml`
 * cluster: `monitor_ml`
   
   
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[ml-explain-dfanalytics-desc]]
 [[ml-explain-dfanalytics-desc]]

+ 1 - 1
docs/reference/ml/df-analytics/apis/get-dfanalytics-stats.asciidoc

@@ -33,7 +33,7 @@ privileges:
 
 
 * cluster: `monitor_ml`
 * cluster: `monitor_ml`
   
   
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-get-dfanalytics-stats-path-params]]
 [[ml-get-dfanalytics-stats-path-params]]
 == {api-path-parms-title}
 == {api-path-parms-title}

+ 1 - 1
docs/reference/ml/df-analytics/apis/get-dfanalytics.asciidoc

@@ -32,7 +32,7 @@ privileges:
 
 
 * cluster: `monitor_ml`
 * cluster: `monitor_ml`
   
   
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[ml-get-dfanalytics-desc]]
 [[ml-get-dfanalytics-desc]]

+ 1 - 2
docs/reference/ml/df-analytics/apis/get-inference-trained-model-stats.asciidoc

@@ -33,9 +33,8 @@ If the {es} {security-features} are enabled, you must have the following
 privileges:
 privileges:
 
 
 * cluster: `monitor_ml`
 * cluster: `monitor_ml`
-  
-For more information, see <<security-privileges>> and <<built-in-roles>>.
 
 
+For more information, see <<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 [[ml-get-inference-stats-desc]]
 [[ml-get-inference-stats-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 1
docs/reference/ml/df-analytics/apis/get-inference-trained-model.asciidoc

@@ -34,7 +34,7 @@ privileges:
 
 
 * cluster: `monitor_ml`
 * cluster: `monitor_ml`
   
   
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<security-privileges>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[ml-get-inference-desc]]
 [[ml-get-inference-desc]]

+ 3 - 5
docs/reference/ml/df-analytics/apis/put-dfanalytics.asciidoc

@@ -24,14 +24,12 @@ If the {es} {security-features} are enabled, you must have the following
 built-in roles and privileges:
 built-in roles and privileges:
 
 
 * `machine_learning_admin`
 * `machine_learning_admin`
-* `kibana_admin` (UI only)
-
-
 * source indices: `read`, `view_index_metadata`
 * source indices: `read`, `view_index_metadata`
 * destination index: `read`, `create_index`, `manage` and `index`
 * destination index: `read`, `create_index`, `manage` and `index`
-* cluster: `monitor` (UI only)
   
   
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<built-in-roles>>, <<security-privileges>>, and
+{ml-docs-setup-privileges}.
+
 
 
 NOTE: The {dfanalytics-job} remembers which roles the user who created it had at
 NOTE: The {dfanalytics-job} remembers which roles the user who created it had at
 the time of creation. When you start the job, it performs the analysis using
 the time of creation. When you start the job, it performs the analysis using

+ 2 - 2
docs/reference/ml/df-analytics/apis/put-inference.asciidoc

@@ -28,11 +28,11 @@ experimental[]
 == {api-prereq-title}
 == {api-prereq-title}
 
 
 If the {es} {security-features} are enabled, you must have the following
 If the {es} {security-features} are enabled, you must have the following
-built-in roles and privileges:
+built-in roles or equivalent privileges:
 
 
 * `machine_learning_admin`
 * `machine_learning_admin`
 
 
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<built-in-roles>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[ml-put-inference-desc]]
 [[ml-put-inference-desc]]

+ 3 - 6
docs/reference/ml/df-analytics/apis/start-dfanalytics.asciidoc

@@ -24,14 +24,11 @@ If the {es} {security-features} are enabled, you must have the following
 built-in roles and privileges:
 built-in roles and privileges:
 
 
 * `machine_learning_admin`
 * `machine_learning_admin`
-* `kibana_admin` (UI only)
-
-
 * source indices: `read`, `view_index_metadata`
 * source indices: `read`, `view_index_metadata`
 * destination index: `read`, `create_index`, `manage` and `index`
 * destination index: `read`, `create_index`, `manage` and `index`
-* cluster: `monitor` (UI only)
-  
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+
+For more information, see <<built-in-roles>>, <<security-privileges>>, and
+{ml-docs-setup-privileges}.
 
 
 [[ml-start-dfanalytics-desc]]
 [[ml-start-dfanalytics-desc]]
 == {api-description-title}
 == {api-description-title}

+ 1 - 2
docs/reference/ml/df-analytics/apis/stop-dfanalytics.asciidoc

@@ -28,9 +28,8 @@ If the {es} {security-features} are enabled, you must have the following
 built-in roles or equivalent privileges:
 built-in roles or equivalent privileges:
 
 
 * `machine_learning_admin`
 * `machine_learning_admin`
-* `kibana_admin` (UI only)
   
   
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<built-in-roles>> and {ml-docs-setup-privileges}.
 
 
 
 
 [[ml-stop-dfanalytics-desc]]
 [[ml-stop-dfanalytics-desc]]

+ 2 - 5
docs/reference/ml/df-analytics/apis/update-dfanalytics.asciidoc

@@ -24,14 +24,11 @@ If the {es} {security-features} are enabled, you must have the following
 built-in roles and privileges:
 built-in roles and privileges:
 
 
 * `machine_learning_admin`
 * `machine_learning_admin`
-* `kibana_admin` (UI only)
-
-
 * source indices: `read`, `view_index_metadata`
 * source indices: `read`, `view_index_metadata`
 * destination index: `read`, `create_index`, `manage` and `index`
 * destination index: `read`, `create_index`, `manage` and `index`
-* cluster: `monitor` (UI only)
   
   
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<built-in-roles>>, <<security-privileges>>, and
+{ml-docs-setup-privileges}.
 
 
 NOTE: The {dfanalytics-job} remembers which roles the user who created it had at
 NOTE: The {dfanalytics-job} remembers which roles the user who created it had at
 the time of creation. When you start the job, it performs the analysis using
 the time of creation. When you start the job, it performs the analysis using

+ 2 - 4
docs/reference/transform/apis/put-transform.asciidoc

@@ -22,13 +22,11 @@ If the {es} {security-features} are enabled, you must have the following
 built-in roles and privileges:
 built-in roles and privileges:
 
 
 * `transform_admin`
 * `transform_admin`
-* `kibana_admin` (UI only)
-
 * source index: `read`, `view_index_metadata`
 * source index: `read`, `view_index_metadata`
 * destination index: `read`, `create_index`, `manage` and `index`
 * destination index: `read`, `create_index`, `manage` and `index`
-* cluster: `monitor` (UI only)
 
 
-For more information, see <<security-privileges>> and <<built-in-roles>>.
+For more information, see <<built-in-roles>>, <<security-privileges>>, and
+{ml-docs-setup-privileges}.
 
 
 
 
 [[put-transform-desc]]
 [[put-transform-desc]]

+ 2 - 4
x-pack/docs/en/security/authorization/built-in-roles.asciidoc

@@ -111,8 +111,7 @@ use of the {ml} APIs. Grants `manage_ml` cluster privileges, read access to
 `.ml-anomalies*`, `.ml-notifications*`, `.ml-state*`, `.ml-meta*` indices and
 `.ml-anomalies*`, `.ml-notifications*`, `.ml-state*`, `.ml-meta*` indices and
 write access to `.ml-annotations*` indices. {ml-cap} administrators also need
 write access to `.ml-annotations*` indices. {ml-cap} administrators also need
 index privileges for source and destination indices and roles that grant
 index privileges for source and destination indices and roles that grant
-access to {kib}.
-See {ml-docs}/setup.html#setup-privileges[{ml-cap} security privileges].
+access to {kib}. See {ml-docs-setup-privileges}.
 
 
 [[built-in-roles-ml-user]] `machine_learning_user`::
 [[built-in-roles-ml-user]] `machine_learning_user`::
 Grants the minimum privileges required to view {ml} configuration,
 Grants the minimum privileges required to view {ml} configuration,
@@ -120,8 +119,7 @@ status, and work with results. This role grants `monitor_ml` cluster privileges,
 read access to the `.ml-notifications` and `.ml-anomalies*` indices
 read access to the `.ml-notifications` and `.ml-anomalies*` indices
 (which store {ml} results), and write access to `.ml-annotations*` indices.
 (which store {ml} results), and write access to `.ml-annotations*` indices.
 {ml-cap} users also need index privileges for source and destination
 {ml-cap} users also need index privileges for source and destination
-indices and roles that grant access to {kib}. See
-{ml-docs}/setup.html#setup-privileges[{ml-cap} security privileges].
+indices and roles that grant access to {kib}. See {ml-docs-setup-privileges}.
 
 
 [[built-in-roles-monitoring-user]] `monitoring_user`::
 [[built-in-roles-monitoring-user]] `monitoring_user`::
 Grants the minimum privileges required for any user of {monitoring} other than those
 Grants the minimum privileges required for any user of {monitoring} other than those