Get script languages API

Get script languages API

New API reference

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

Retrieves a list of supported script languages and their contexts.

  1. resp = client.get_script_languages()
  2. print(resp)
  1. response = client.get_script_languages
  2. puts response
  1. const response = await client.getScriptLanguages();
  2. console.log(response);
  1. GET _script_language

Request

GET _script_language

Prerequisites

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