get-settings.asciidoc 968 B

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