DescribeDeprecatedTemplate
Queries the details of a historical index template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:DescribeDeprecatedTemplate |
none |
*Instance
|
None | None |
Request syntax
GET /openapi/instances/{InstanceId}/deprecated-templates/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-tl329rbpc0001**** |
| name |
string |
Yes |
The index template name. |
template |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
F99407AB-2FA9-489E-A259-40CF6DCC47D9 |
| Result |
object |
The result information. |
|
| dataStream |
boolean |
Indicates whether automatic creation of a data stream is enabled at the same time. Valid values:
|
false |
| indexPatterns |
array |
The index pattern information. |
|
|
string |
The index pattern array. |
["schema1*","schema2*"] |
|
| indexTemplate |
string |
The index template name. |
openstore-index-template |
| order |
integer |
The priority. |
100 |
| template |
object |
The index template configuration information. |
|
| aliases |
string |
The alias configuration. |
"{}" |
| mappings |
string |
The mappings configuration of the index template. |
"{\"properties\":{\"created_at\":{\"format\":\"EEE MMM dd HH:mm:ss Z yyyy\",\"type\":\"date\"},\"host_name\":{\"type\":\"keyword\"}}}" |
| settings |
string |
The settings configuration of the index template. |
"{\"index.number_of_shards\":\"1\"}" |
| version |
string |
The version of the index template. |
70000 |
Examples
Success response
JSON format
{
"RequestId": "F99407AB-2FA9-489E-A259-40CF6DCC47D9",
"Result": {
"dataStream": false,
"indexPatterns": [
"[\"schema1*\",\"schema2*\"]"
],
"indexTemplate": "openstore-index-template",
"order": 100,
"template": {
"aliases": "\"{}\"",
"mappings": "\"{\\\"properties\\\":{\\\"created_at\\\":{\\\"format\\\":\\\"EEE MMM dd HH:mm:ss Z yyyy\\\",\\\"type\\\":\\\"date\\\"},\\\"host_name\\\":{\\\"type\\\":\\\"keyword\\\"}}}\"",
"settings": "\"{\\\"index.number_of_shards\\\":\\\"1\\\"}\""
},
"version": "70000"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.