Get script contexts API

Get script contexts API

New API reference

For the most up-to-date API details, refer to Script APIs.

Retrieves a list of supported script contexts and their methods.

  1. resp = client.get_script_context()
  2. print(resp)
  1. response = client.get_script_context
  2. puts response
  1. const response = await client.getScriptContext();
  2. console.log(response);
  1. GET _script_context

Request

GET _script_context

Prerequisites

  • If the Elasticsearch security features are enabled, you must have the manage cluster privilege to use this API.