Get a script or search template

  • GET /_scripts/{id}

Retrieves a stored script or search template.

  • Cluster privileges: manage

Path Parameters

id string Id required

The identifier for the stored script or search template.

Query Parameters

master_timeout string Duration · 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.

Response