DescribeIndexTemplate
Retrieves information about an index template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:DescribeIndexTemplate |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/instances/{InstanceId}/index-templates/{IndexTemplate} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-n6w24n9u900am**** |
| IndexTemplate |
string |
Yes |
The name of the index template. |
data-stream-default |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
25DB38F8-82E4-4D16-82BB-FF077C7F**** |
| Result |
object |
The details of the index template. |
|
| dataStream |
boolean |
Indicates whether the data stream is enabled. Valid values:
Default value: false. |
true |
| indexTemplate |
string |
The name of the index template. |
data-stream-default |
| ilmPolicy |
string |
The epoch policy name. |
cube_default_ilm_policy |
| priority |
integer |
The priority. |
0 |
| indexPatterns |
array |
The list of index name patterns that match this index template. |
|
|
string |
The regular expression for the index matching pattern. |
ds-* |
|
| template |
object |
The component template. |
|
| settings |
string |
The settings. |
{\"index.refresh_interval\":\"1s\"} |
| mappings |
string |
The mappings. |
{\"properties\":{\"created_at\":{\"format\":\"EEE MMM dd HH:mm:ss Z yyyy\",\"type\":\"date\"},\"host_name\":{\"type\":\"keyword\"}}} |
| aliases |
string |
The aliases. |
{\"mydata\":{}} |
Examples
Success response
JSON format
{
"RequestId": "25DB38F8-82E4-4D16-82BB-FF077C7F****",
"Result": {
"dataStream": true,
"indexTemplate": "data-stream-default",
"ilmPolicy": "cube_default_ilm_policy",
"priority": 0,
"indexPatterns": [
"ds-*"
],
"template": {
"settings": "{\\\"index.refresh_interval\\\":\\\"1s\\\"}",
"mappings": "{\\\"properties\\\":{\\\"created_at\\\":{\\\"format\\\":\\\"EEE MMM dd HH:mm:ss Z yyyy\\\",\\\"type\\\":\\\"date\\\"},\\\"host_name\\\":{\\\"type\\\":\\\"keyword\\\"}}}",
"aliases": "{\\\"mydata\\\":{}}"
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.