css__RestoreSnapshot
Manually restore a CSS snapshot to a target cluster, optionally selecting indices, filtering by regex, renaming restored indices, or replacing existing indices.
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>",
"project_id": "<project_id>",
"snapshot_id": "<snapshot_id>",
"targetCluster": "<targetCluster>"
},
"name": "css__RestoreSnapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indices | No | 指定要恢复的索引名称,多个索引用逗号隔开,默认恢复所有索引。支持使用“\*”匹配多个索引,例如:2018-06\*,表示恢复名称前缀是2018-06的所有索引的数据。 | |
| cluster_id | Yes | 恢复快照所属的集群ID。 | |
| project_id | Yes | 项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。 | |
| snapshot_id | Yes | 快照ID。 | |
| renamePattern | No | 匹配要恢复的索引规则,最大支持1024个字符。根据此处定义的过滤条件去恢复符合条件的索引,过滤条件请使用正则表达式。 | |
| targetCluster | Yes | 快照要恢复到的集群的ID。 | |
| renameReplacement | No | 索引重命名的规则。0~1024个字符,不能包含空格和大写字母,且不能包含\"\\<|>/?,特殊字符。例如,“restored_index_$1”表示在所有恢复的索引名称前面加上“restored_”。 | |
| replace_exist_indices | No | 替换已存在的索引。 |