younifyd
Menu

Get component templates (GET /_component_template)

Get component templates

GET/_component_template

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get component templates (GET /_component_template) action (under indices).
  3. Fill in the fields below, then reference the result from later steps as {{getComponentTemplatesGetComponentTemplate.response.data}}.

Request

Query parameters

flat_settingsboolean

If `true`, returns settings in flat format.

settings_filteroneOf

Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys

include_defaultsboolean

Return all default configurations for the component template

localboolean

If `true`, the request retrieves information from the local node only. If `false`, information is retrieved from the master node.

master_timeoutoneOf

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.

Response

Returns 200 with an object. Read it in later steps with {{getComponentTemplatesGetComponentTemplate.response.data.<field>}}.

component_templatesarray<object>
nameanyrequired
component_templateanyrequired
json
{
  "component_templates": [
    {
      "name": null,
      "component_template": null
    }
  ]
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.