get-settings.asciidoc 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. [role="xpack"]
  2. [[security-api-get-settings]]
  3. === Get Security index settings
  4. ++++
  5. <titleabbrev>Get Security settings</titleabbrev>
  6. ++++
  7. [[security-api-get-settings-prereqs]]
  8. ==== {api-prereq-title}
  9. * To use this API, you must have at least the `read_security` cluster privilege.
  10. [[security-api-get-settings-desc]]
  11. ==== {api-description-title}
  12. This API allows a user to retrieve the user-configurable settings for the
  13. Security internal index (`.security` and associated indices). Only a subset of
  14. the index settings — those that are user-configurable—will be shown. This includes:
  15. - `index.auto_expand_replicas`
  16. - `index.number_of_replicas`
  17. An example of retrieving the security settings:
  18. [source,console]
  19. -----------------------------------------------------------
  20. GET /_security/settings
  21. -----------------------------------------------------------
  22. // TEST[setup:user_profiles]
  23. // TEST[setup:service_token42]
  24. The configurable settings can be modified using the
  25. <<security-api-update-settings,Update Security index settings>> API.