UpdateSnapshotSetting
Updates the data backup configuration of a specified instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:UpdateSnapshotSetting |
update |
*Instance
|
None | None |
Request syntax
POST /openapi/instances/{InstanceId}/snapshot-setting HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-oew1rgiev0009**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
string |
No |
The data backup configuration, including the start time for automatic backups and the scheduled backup toggle. |
{ "quartzRegex":"0 0 01 ? * * *", "enable":true, "indices": [ "orders-*" ] } |
Request body
The request body must also include the following parameters to specify the updated data backup information.
| Name | Type | Required | Example | Description |
| quartzRegex | String | No | 0 0 01 ? * * * | The start time for automatic backups. This parameter is required when enable is set to true. |
| enable | Boolean | Yes | true | Specifies whether to enable scheduled backups. |
| indices | Array | No | ["orders-*"] | The indexes to back up. |
Example:
{
"quartzRegex":"0 0 01 ? * * *",
"enable":true,
"indices": [
"orders-*"
]
}
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D**** |
| Result |
object |
The returned result. |
|
| enable |
boolean |
Indicates whether automatic backup is enabled. |
true |
| indices |
array |
The list of indexes to back up. |
|
|
string |
The index to back up. |
orders-* |
|
| quartzRegex |
string |
The start time for automatic backups. |
0 0 01 ? * * * |
Examples
Success response
JSON format
{
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D****",
"Result": {
"enable": true,
"indices": [
"orders-*"
],
"quartzRegex": "0 0 01 ? * * *"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.