
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 *
Configure OpenSearch connection
Hosts, auth headers, and TLS options reused by every task invocation.
endpoint *string
Request path
Endpoint without scheme/host/port; pathPrefix from the connection is prepended automatically.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150body 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