Path parameters

  • idstring Required

    The identifier for the stored script or search template.

Query parameters

  • 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 are -1 or 0.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • _idstring Required
    • foundboolean Required
    • scriptobject
      Hide script attributes Show script attributes object
      • langstring Required

        Any of:

        Values are painless, expression, mustache, or java.

      • optionsobject
        Hide options attribute Show options attribute object
        • *string Additional properties
      • sourcestring | object Required

        One of:
GET /_scripts/{id}
curl \
 --request GET 'http://api.example.com/_scripts/{id}' \
 --header "Authorization: $API_KEY"