stack es render-search-template cli command
Auth required
Idempotent
Scope: global
elastic stack es render-search-template [options]
Render a search template.
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--idstring- The ID of the search template to render. If no
sourceis specified, this or theidrequest body parameter is required. --filestring--paramsstring- Key-value pairs used to replace Mustache variables in the template. The key is the variable name. The value is the variable value.
--sourcestring- An inline search template. It supports the same parameters as the search API's request body. These parameters also support Mustache variables. If no
idor<templated-id>is specified, this parameter is required. --input-filestring- path to a JSON file to use as command input
--[no-]dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--[no-]json-
output as JSON