UpdateComponentIndex
Updates a composable template for 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:UpdateComponentIndex |
none |
*All Resource
|
None | None |
Request syntax
PUT /openapi/instances/{InstanceId}/component-index/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-t57p81n7ai89v**** |
| name |
string |
Yes |
The template name. |
component-openstore-index-template |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| template |
object |
No |
The composable template information. |
|
| settings |
object |
No |
The settings configuration for the template. |
{ "index.number_of_replicas": 0 } |
| mappings |
object |
No |
The mappings configuration for the template. |
{ "properties": { "@timestamp": { "type": "date" } } } |
| aliases |
object |
No |
The aliases configuration for the template. |
{} |
| _meta |
object |
No |
The metadata, which is used to store information such as remarks. |
{ "description": "set number of shards to one" } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
F99407AB-2FA9-489E-A259-40CF6DCC47D9 |
Examples
Success response
JSON format
{
"requestId": "F99407AB-2FA9-489E-A259-40CF6DCC47D9"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.