查看历史索引模板列表。
接口说明
详细信息请参见通过 OpenStore 实现海量数据存储。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
elasticsearch:ListDeprecatedTemplates |
get |
*Instance
|
无 | 无 |
请求语法
GET /openapi/instances/{InstanceId}/deprecated-templates HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID。 |
es-cn-t57p81n7ai89v**** |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| name |
string |
否 |
索引模板名称。 |
component-openstore-index-template |
| page |
integer |
否 |
分页查询时设置的页数。 |
5 |
| size |
integer |
否 |
分页查询时设置的每页条数。 |
10 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
F99407AB-2FA9-489E-A259-40CF6DCC47D9 |
| Headers |
object |
返回头信息。 |
|
| X-Total-Count |
integer |
返回结果条数。 |
5 |
| Result |
array<object> |
返回结果信息。 |
|
|
array<object> |
返回对象信息。 |
||
| indexPatterns |
array |
索引模板信息。 |
|
|
string |
索引模式列表。 |
["schema1*","schema2*"] |
|
| template |
object |
索引模板配置信息。 |
|
| settings |
string |
模板的 settings 配置。 |
"{\"index.number_of_shards\":\"1\"}" |
| mappings |
string |
模板的 mappings 配置。 |
"{\"properties\":{\"created_at\":{\"format\":\"EEE MMM dd HH:mm:ss Z yyyy\",\"type\":\"date\"},\"host_name\":{\"type\":\"keyword\"}}}" |
| aliases |
string |
模板别名配置。 |
"{}" |
| dataStream |
boolean |
是否匹配数据流:
|
false |
| indexTemplate |
string |
索引模版名称。 |
openstore-index-template |
| version |
string |
索引模板的版本。 |
70000 |
| order |
integer |
优先级。 |
100 |
示例
正常返回示例
JSON格式
{
"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
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。