Menu
Get index template (GET /_index_template/{name})
Get index template
GET
/_index_template/{name}Use it in a workflow
- Add a step and choose the OpenSearch connector.
- Pick the Get index template (GET /_index_template/{name}) action (under indices).
- Fill in the fields below, then reference the result from later steps as
{{getIndexTemplateGetIndexTemplateName.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getIndexTemplateGetIndexTemplateName.response.data.<field>}}.
{
"index_templates": [
{
"name": "string",
"index_template": {
"index_patterns": null,
"composed_of": [
"string"
],
"template": {
"aliases": {},
"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
}
},
"settings": {
"index": {},
"mode": "string",
"routing_path": null,
"soft_deletes": {
"enabled": null,
"retention": null,
"retention_lease": null
},
"soft_deletes.retention_lease.period": "string",
"sort": {
"field": null,
"order": null,
"mode": null,
"missing": null
},
"number_of_shards": null,
"number_of_replicas": null,
"number_of_routing_shards": null,
"check_on_startup": "checksum",
"codec": "string",
"routing_partition_size": null
}
},
"version": 0,
"priority": 0,
"_meta": {},
"allow_auto_create": false,
"data_stream": {
"hidden": false,
"allow_custom_routing": false,
"timestamp_field": {
"name": "string"
}
}
}
}
]
}
Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.
Was this page helpful?