Menu
Get script
Get script
GET
/_scripts/{id}Use it in a workflow
- Add a step and choose the OpenSearch connector.
- Pick the Get script action (under core).
- Fill in the fields below, then reference the result from later steps as
{{getScript.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getScript.response.data.<field>}}.
{
"_id": "string",
"found": false,
"script": {
"lang": null,
"source": "string",
"options": {}
}
}
Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.
Was this page helpful?