Get a script or search template

  • GET /_scripts/{id}
Auth

Retrieves a stored script or search template.

Required privileges

Cluster privileges manage

Path parameters

id string required

The identifier for the stored script or search template.

Query parameters

master_timeout union oneOf · default: 30s

The period to wait for the master node. If the master node is not available 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.

Values: -1 0

Response

application/json
_id string required
found boolean required