CreateComponentIndex
Creates an Elasticsearch composable template.
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:CreateComponentIndex |
none |
*All Resource
|
None | None |
Request syntax
POST /openapi/instances/{InstanceId}/component-index/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-tl329rbpc0001**** |
| name |
string |
Yes |
The name of the template. |
template |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| template |
object |
No |
The composable template information. |
|
| settings |
object |
No |
The template settings configuration. |
{ "index.number_of_replicas": 0 } |
| mappings |
object |
No |
The template mappings configuration. |
{ "properties": { "@timestamp": { "type": "date" } } } |
| aliases |
object |
No |
The template aliases configuration. |
{} |
| _meta |
object |
No |
The metadata used to store information such as remarks. |
{ "description": "set number of shards to one" } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
C20022BA-5382-4339-89FB-30AF48A05431 |
| Result |
boolean |
The returned result. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "C20022BA-5382-4339-89FB-30AF48A05431",
"Result": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.