Get index template
The Get Index Template API returns information about one or more index templates.
Path and HTTP methods
GET /_index_template/<template-name>
Query parameters
The following optional query parameters are supported.
Parameter | Type | Description |
---|---|---|
create | Boolean | When true, the API cannot replace or update any existing index templates. Default is false . |
cluster_manager_timeout | Time | The amount of time to wait for a connection to the cluster manager node. Default is 30s . |
flat_settings | Boolean | Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of “index”: { “creation_date”: “123456789” } is “index.creation_date”: “123456789”. |
Example requests
The following example request gets information about an index template by using a wildcard expression:
GET /_index_template/h*
copy
The following example request gets information about all index templates:
GET /_index_template
copy
当前内容版权归 OpenSearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 OpenSearch .