get-settings.asciidoc 1.1 KB

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