ListDeprecatedTemplates
Queries historical index templates.
Operation description
For more information, see Implement massive data storage by using OpenStore.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:ListDeprecatedTemplates |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/instances/{InstanceId}/deprecated-templates HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-t57p81n7ai89v**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The name of the index template. |
component-openstore-index-template |
| page |
integer |
No |
The page number for a paged query. |
5 |
| size |
integer |
No |
The number of entries per page for a paged query. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response results. |
||
| RequestId |
string |
The request ID. |
F99407AB-2FA9-489E-A259-40CF6DCC47D9 |
| Headers |
object |
The response headers. |
|
| X-Total-Count |
integer |
The total number of returned entries. |
5 |
| Result |
array<object> |
The result details. |
|
|
array<object> |
The object information. |
||
| indexPatterns |
array |
The index template information. |
|
|
string |
The list of index patterns. |
["schema1*","schema2*"] |
|
| template |
object |
The index template configuration. |
|
| settings |
string |
The settings configuration of the template. |
"{\"index.number_of_shards\":\"1\"}" |
| mappings |
string |
The mappings configuration of the template. |
"{\"properties\":{\"created_at\":{\"format\":\"EEE MMM dd HH:mm:ss Z yyyy\",\"type\":\"date\"},\"host_name\":{\"type\":\"keyword\"}}}" |
| aliases |
string |
The alias configuration of the template. |
"{}" |
| dataStream |
boolean |
Indicates whether the data stream is matched. Valid values:
|
false |
| indexTemplate |
string |
The name of the index template. |
openstore-index-template |
| version |
string |
The version of the index template. |
70000 |
| order |
integer |
The priority. |
100 |
Examples
Success response
JSON format
{
"RequestId": "F99407AB-2FA9-489E-A259-40CF6DCC47D9",
"Headers": {
"X-Total-Count": 5
},
"Result": [
{
"indexPatterns": [
"[\"schema1*\",\"schema2*\"]"
],
"template": {
"settings": "\"{\\\"index.number_of_shards\\\":\\\"1\\\"}\"",
"mappings": "\"{\\\"properties\\\":{\\\"created_at\\\":{\\\"format\\\":\\\"EEE MMM dd HH:mm:ss Z yyyy\\\",\\\"type\\\":\\\"date\\\"},\\\"host_name\\\":{\\\"type\\\":\\\"keyword\\\"}}}\"",
"aliases": "\"{}\""
},
"dataStream": false,
"indexTemplate": "openstore-index-template",
"version": "70000",
"order": 100
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.