ODBC guide

Generic API call


Calls an Elasticsearch API when no dedicated endpoint is defined. Use generic_request with Url, RequestMethod, and optional Body or Headers. The example shows a CREATE INDEX-style PUT request.

SELECT * FROM generic_request 
WITH(Url='/my_index_name'
	, RequestMethod='PUT'
--	, Body='{}'
--	, Headers='X-Hdr1:aaa || x-HDR2: bbb'
	, Meta='acknowledged:bool'
	)