
OpenSearch Request
CertifiedSend raw OpenSearch HTTP request
OpenSearch Request
Send raw OpenSearch HTTP request
Issue ad-hoc HTTP calls against the cluster with dynamic endpoint, parameters, and optional JSON body; defaults to GET.
type: io.kestra.plugin.opensearch.RequestExamples
Inserting a document in an index using POST request.
id: opensearch_request
namespace: company.team
tasks:
- id: request_post
type: io.kestra.plugin.opensearch.Request
connection:
hosts:
- "http://localhost:9200"
method: "POST"
endpoint: "my_index/_doc/john"
body:
name: "john"
Searching for documents using GET request.
id: opensearch_request
namespace: company.team
tasks:
- id: request_get
type: io.kestra.plugin.opensearch.Request
connection:
hosts:
- "http://localhost:9200"
method: "GET"
endpoint: "my_index/_search"
parameters:
q: 'name:"John Doe"'
Deleting document using DELETE request.
id: opensearch_request
namespace: company.team
tasks:
- id: request_delete
type: io.kestra.plugin.opensearch.Request
connection:
hosts:
- "http://localhost:9200"
method: "DELETE"
endpoint: "my_index/_doc/<_id>"
Properties
connection *RequiredNon-dynamic
Configure OpenSearch connection
Hosts, auth headers, and TLS options reused by every task invocation.
endpoint *Requiredstring
Request path
Endpoint without scheme/host/port; pathPrefix from the connection is prepended automatically.
body object
Request body
Accepts a JSON string or Map rendered then serialized as JSON.
method string
GETCONNECTCUSTOMDELETEGETHEADOPTIONSPATCHPOSTPUTTRACEHTTP method
Defaults to GET when not set.
parameters object
Query string parameters
routing string
Shard routing key
Hashes routing using this value instead of the document id to colocate related records.
Outputs
response object
Response body returned by OpenSearch
status integer
HTTP status code returned by OpenSearch