dws__CreateSnapshotPolicy
Configure snapshot backup policies for a DWS cluster, including retention days and backup strategies, to automate data protection and recovery.
Instructions
[DWS] 该接口用于设置快照策略。
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>"
},
"name": "dws__CreateSnapshotPolicy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_day | No | 保留天数。输入值必须在1-31之间。 | |
| cluster_id | Yes | **参数解释**: | |
| project_id | Yes | **参数解释**: | |
| server_ips | No | 备份介质服务IP。备份介质为NBU和NFS时该字段必填。备份介质为NBU时表示NBU服务器地址,备份介质为NFS时表示NFS服务器地址。 | |
| device_name | No | 备份设备。支持OBS、NBU和NFS。 | |
| server_port | No | NBU备份介质端口。备份介质为NBU时该字段必填。 | |
| backup_param | No | NBU备份参数。备份介质为NBU时该字段必选。 | |
| backup_strategies | No | 策略列表信息。当需要添加策略时该参数为必选。 |