This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Get script contexts API
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Get script contexts API
editRetrieves a list of supported script contexts and their methods.
resp = client.get_script_context() print(resp)
response = client.get_script_context puts response
const response = await client.getScriptContext(); console.log(response);
GET _script_context
Request
editGET _script_context
Prerequisites
edit-
If the Elasticsearch security features are enabled, you must have the
manage
cluster privilege to use this API.
Was this helpful?
Thank you for your feedback.