Menu
Query (POST /_opendistro/_sql)
Query
POST
/_opendistro/_sqlUse it in a workflow
- Add a step and choose the OpenSearch connector.
- Pick the Query (POST /_opendistro/_sql) action (under sql).
- Fill in the fields below, then reference the result from later steps as
{{queryPostOpendistroSql.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{queryPostOpendistroSql.response.data.<field>}}.
{
"schema": [
{}
],
"datarows": [
[
null
]
],
"cursor": "string",
"total": 0,
"size": 0,
"status": 0
}
Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.
Was this page helpful?