get-settings.asciidoc 1.3 KB

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