1.4 KiB
1.4 KiB
PutScriptRequest [interface-PutScriptRequest]
| Name | Type | Description |
|---|---|---|
body |
string | ({ [key: string]: any; } & { id?: never; context?: never; master_timeout?: never; timeout?: never; script?: never; }) |
context |
Name | The context in which the script or search template should run. To prevent errors, the API immediately compiles the script or template in this context. |
id |
Id | The identifier for the stored script or search template. It must be unique within the cluster. |
master_timeout |
Duration | The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. It can also be set to -1 to indicate that the request should never timeout. |
querystring |
{ [key: string]: any; } & { id?: never; context?: never; master_timeout?: never; timeout?: never; script?: never; } | All values in querystring will be added to the request querystring. |
script |
StoredScript | The script or search template, its parameters, and its language. |
timeout |
Duration | The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. It can also be set to -1 to indicate that the request should never timeout. |