update-settings.asciidoc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [role="xpack"]
  2. [[security-api-update-settings]]
  3. === Update Security index settings
  4. ++++
  5. <titleabbrev>Update Security settings</titleabbrev>
  6. ++++
  7. ==== {api-prereq-title}
  8. * To use this API, you must have at least the `manage_security` cluster privilege.
  9. ==== {api-description-title}
  10. This API allows a user to modify the settings for the Security internal indices (`.security` and associated indices). Only a subset of settings are allowed to be modified. This includes:
  11. - `index.auto_expand_replicas`
  12. - `index.number_of_replicas`
  13. An example of modifying the Security settings:
  14. [source,console]
  15. -----------------------------------------------------------
  16. PUT /_security/settings
  17. {
  18. "security": {
  19. "index.auto_expand_replicas": "0-all"
  20. },
  21. "security-tokens": {
  22. "index.auto_expand_replicas": "0-all"
  23. },
  24. "security-profile": {
  25. "index.auto_expand_replicas": "0-all"
  26. }
  27. }
  28. -----------------------------------------------------------
  29. // TEST[skip:making sure all the indices have been created reliably is difficult]
  30. The configured settings can be retrieved using the <<security-api-get-settings,Get Security index settings>> API. If a
  31. given index is not in use on the system, but settings are provided for it, the request will be rejected - this API does
  32. not yet support configuring the settings for these indices before they are in use.
  33. ==== {api-request-body-title}
  34. `security`::
  35. (Optional, object) Settings to be used for the index used for most security configuration, including Native realm users
  36. and roles configured via the API.
  37. `security-tokens`::
  38. (Optional, object) Settings to be used for the index used to store <<tokens,security-api-get-token>>.
  39. `security`::
  40. (Optional, object) Settings to be used for the index used to store <<Profile,security-api-activate-user-profile>> information.