ListComponentIndices
Retrieves the list of composable templates in Elasticsearch.
Operation description
For more information, see Store massive amounts of data by using OpenStore.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:ListComponentIndices |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/instances/{InstanceId}/component-index HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-tl329rbpc0001**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The name of the composable template. |
template |
| page |
integer |
No |
The paging settings for the page number in a paged query. Default value: 1. |
5 |
| size |
integer |
No |
The paging settings for the number of entries per page in a paged query. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
F99407AB-2FA9-489E-A259-40CF6DCC47D9 |
| Headers |
object |
The response headers. |
|
| X-Total-Count |
integer |
The total number of returned results. |
10 |
| Result |
array<object> |
The details of the returned results. |
|
|
array<object> |
The returned object information. |
||
| composed |
array |
The information about the index templates that reference this composable template. |
|
|
string |
The array of names of the index templates that reference this composable template. |
["template1", "template2"] |
|
| name |
string |
The name of the composable template. |
synthetics-settings |
| content |
object |
The content of the composable template. |
|
| template |
object |
The composable template object. |
|
| settings |
object |
The settings configuration of the template. |
|
| index |
object |
The index information. |
|
| lifecycle |
object |
The index lifecycle configuration. |
|
| name |
string |
The name of the lifecycle policy. |
synthetics |
| codec |
string |
The index compression method. Valid values:
|
best_compression |
| _meta |
object |
The metadata, which is used to store information such as remarks. |
{ "description": "set number of shards to one" } |
| version |
integer |
The version of the composable template. |
0 |
Examples
Success response
JSON format
{
"RequestId": "F99407AB-2FA9-489E-A259-40CF6DCC47D9",
"Headers": {
"X-Total-Count": 10
},
"Result": [
{
"composed": [
"[\"template1\", \"template2\"]"
],
"name": "synthetics-settings",
"content": {
"template": {
"settings": {
"index": {
"lifecycle": {
"name": "synthetics"
},
"codec": "best_compression"
}
}
},
"_meta": {
"description": "set number of shards to one"
},
"version": 0
}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.