24 lines
511 B
Plaintext
24 lines
511 B
Plaintext
|
[[get-script-contexts-api]]
|
||
|
=== Get script contexts API
|
||
|
++++
|
||
|
<titleabbrev>Get script contexts</titleabbrev>
|
||
|
++++
|
||
|
|
||
|
Retrieves a list of supported script contexts and their methods.
|
||
|
|
||
|
[source,console]
|
||
|
----
|
||
|
GET _script_context
|
||
|
----
|
||
|
|
||
|
[[get-script-contexts-api-request]]
|
||
|
==== {api-request-title}
|
||
|
|
||
|
`GET _script_context`
|
||
|
|
||
|
[[get-script-contexts-api-prereqs]]
|
||
|
==== {api-prereq-title}
|
||
|
|
||
|
* If the {es} {security-features} are enabled, you must have the `manage`
|
||
|
<<privileges-list-cluster,cluster privilege>> to use this API.
|