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