Method: Elasticsearch::API::Actions#get_script_context
- Defined in:
- lib/elasticsearch/api/actions/get_script_context.rb
#get_script_context(arguments = {}) ⇒ Object
Get script contexts. Get a list of supported script contexts and their methods.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/elasticsearch/api/actions/get_script_context.rb', line 42 def get_script_context(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'get_script_context' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_script_context' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |