get-script-contexts-api.asciidoc 511 B

1234567891011121314151617181920212223
  1. [[get-script-contexts-api]]
  2. === Get script contexts API
  3. ++++
  4. <titleabbrev>Get script contexts</titleabbrev>
  5. ++++
  6. Retrieves a list of supported script contexts and their methods.
  7. [source,console]
  8. ----
  9. GET _script_context
  10. ----
  11. [[get-script-contexts-api-request]]
  12. ==== {api-request-title}
  13. `GET _script_context`
  14. [[get-script-contexts-api-prereqs]]
  15. ==== {api-prereq-title}
  16. * If the {es} {security-features} are enabled, you must have the `manage`
  17. <<privileges-list-cluster,cluster privilege>> to use this API.