查看Elasticsearch的组合模板详情。
接口说明
详细信息请参见通过 OpenStore 实现海量数据存储。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
elasticsearch:DescribeComponentIndex |
get |
*Instance
|
无 | 无 |
请求语法
GET /openapi/instances/{InstanceId}/component-index/{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 |
返回结果。 |
|
| template |
object |
模板信息。 |
|
| aliases |
object |
模板别名配置。 |
{} |
| mappings |
object |
模板 mappings 配置。 |
{ "properties": { "@timestamp": { "type": "date" } } } |
| settings |
object |
模板 settings 配置。 |
{ "index.number_of_replicas": 0 } |
| _meta |
object |
元数据,用于存储备注等信息。 |
{ "description": "set number of shards to one" } |
示例
正常返回示例
JSON格式
{
"RequestId": "F99407AB-2FA9-489E-A259-40CF6DCC47D9",
"Result": {
"template": {
"aliases": {},
"mappings": {
"properties": {
"@timestamp": {
"type": "date"
}
}
},
"settings": {
"index.number_of_replicas": 0
}
},
"_meta": {
"description": "set number of shards to one"
}
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。