调用DescribeDeprecatedTemplate,查看历史索引模板详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
GET /openapi/instances/{InstanceId}/deprecated-templates/{name} HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
InstanceId | String | Path | 是 | es-cn-tl329rbpc0001**** |
实例ID。 |
name | String | Path | 是 | template |
索引模板名称。 |
返回数据
示例
请求示例
GET /openapi/instances/es-cn-tl329rbpc0001****/deprecated-templates/template HTTP/1.1
Host:elasticsearch.aliyuncs.com
Content-Type:application/json
正常返回示例
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Result" : {
"indexTemplate" : ".transform-notifications-000002",
"indexPatterns" : [ ".transform-notifications-*" ],
"dataStream" : false,
"template" : {
"settings" : "{\"index.hidden\":\"true\",\"index.number_of_shards\":\"1\",\"index.auto_expand_replicas\":\"0-1\"}",
"mappings" : "{\"_meta\":{\"version\":\"7.10.0\"},\"dynamic\":\"false\",\"properties\":{\"level\":{\"type\":\"keyword\"},\"transform_id\":{\"type\":\"keyword\"},\"node_name\":{\"type\":\"keyword\"},\"message\":{\"type\":\"text\",\"fields\":{\"raw\":{\"type\":\"keyword\"}}},\"timestamp\":{\"type\":\"date\"}}}",
"aliases" : "{\".transform-notifications-read\":{\"is_hidden\":true}}"
},
"version" : "7100099",
"order" : 0
},
"RequestId" : "2C1B46F2-D827-4C05-B8C2-5A823EC3C306"
}
错误码
访问错误中心查看更多错误码。