css__StartAutoCreateSnapshots
Enables automatic snapshot creation for a CSS cluster by setting a daily schedule, retention period, and name prefix to protect cluster data.
Instructions
[CSS] 该接口用于打开自动备份功能
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cluster_id": "<cluster_id>",
"keepday": "<keepday>",
"period": "<period>",
"prefix": "<prefix>",
"project_id": "<project_id>"
},
"name": "css__StartAutoCreateSnapshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | 每天创建快照的时刻,只支持整点,后面需加上时区,格式为“HH:mm z”,“HH:mm”表示整点时间,“z”表示时区。比如“00:00 GMT+08:00”、“01:00 GMT+08:00”等。 | |
| prefix | Yes | 自动创建的快照名称前缀,需要用户自己手动输入。只能包含1~32位小写字母、数字、中划线或者下划线,并且以小写字母开头。 | |
| indices | No | 指定要恢复的索引名称,多个索引用逗号隔开,默认恢复所有索引。支持使用“\*”匹配多个索引,例如:2018-06\*,表示恢复名称前缀是2018-06的所有索引的数据。 | |
| keepday | Yes | 设置快照保留的天数,范围是1~90。系统在半点时刻会自动删除超过保留天数的快照。 | |
| cluster_id | Yes | 快照所属的集群的ID。 | |
| project_id | Yes | 项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。 |