Menu
Get component template (GET /_component_template)
Get component template
GET
/_component_templateUse it in a workflow
- Add a step and choose the OpenSearch connector.
- Pick the Get component template (GET /_component_template) action (under cluster).
- Fill in the fields below, then reference the result from later steps as
{{getComponentTemplateGetComponentTemplate.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getComponentTemplateGetComponentTemplate.response.data.<field>}}.
{
"component_templates": [
{
"name": "string",
"component_template": {
"template": {
"_meta": {},
"version": 0,
"settings": {},
"mappings": {
"all_field": {
"analyzer": null,
"enabled": null,
"omit_norms": null,
"search_analyzer": null,
"similarity": null,
"store": null,
"store_term_vector_offsets": null,
"store_term_vector_payloads": null,
"store_term_vector_positions": null,
"store_term_vectors": null
},
"date_detection": false,
"dynamic": null,
"dynamic_date_formats": [
null
],
"dynamic_templates": [
null
],
"_field_names": {
"enabled": null
},
"index_field": {
"enabled": null
},
"_meta": {},
"numeric_detection": false,
"properties": {},
"_routing": {
"required": null
},
"_size": {
"enabled": null
}
},
"aliases": {}
},
"version": 0,
"_meta": {}
}
}
]
}
Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.
Was this page helpful?