调用 UpdateAutoSnapshotPolicy 接口修改自动快照策略信息。
修改自动快照策略后,之前已应用该策略的云盘会自动执行修改后的自动快照策略。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
AutoSnapshotPolicyId | String | 是 | asp-15c19547**** | 需要修改的自动快照策略 ID。 |
AutoSnapshotPolicyName | String | 否 | testName | 自动快照策略名称,取值说明如下:
|
RepeatWeekdays | String | 否 | 1,2 | 自动快照的重复日期,单位为天,周期为星期,取值说明如下:
|
TimePoints | String | 否 | 1,2,3 | 自动快照的创建时间点,取值说明如下:
|
RetentionDays | Integer | 否 | 10 | 自动快照的保存时长,单位为天,取值说明如下:
|
Description | String | 否 | testdescription | 自动快照策略描述信息。 |
无。
POST /?Action=UpdateAutoSnapshotPolicy&Version=2022-01-01 HTTP/1.1 Host: filenas.volcengineapi.com Authorization: HMAC-SHA256 Credential=AKLTOGJhY2E1NTdkZGFmNDg0Yjk0ZDFiNjE5Y2NjZjI****/20230907/cn-beijing/filenas/request, SignedHeaders=host;x-date;x-content-sha256;content-type, Signature=7f1119a75111535b1d6e7929700f22e1474af0fb4fe26c59f5ac5cdba0cc**** Content-Type: application/json; charset=utf-8 X-Content-Sha256: 567112abe45bd6a09504fd244237f14c0ba120491da0d35097afd54d87bd**** X-Date: 20230907T124910Z { "AutoSnapshotPolicyId": "asp-15c19547****", "RetentionDays": 10, "AutoSnapshotPolicyName": "testName", "Description": "testdescription", "RepeatWeekdays": "1,2", "TimePoints": "1,2,3" }
{ "ResponseMetadata": { "RequestId": "202306041104200100100232280022D31", "Action": "UpdateAutoSnapshotPolicy", "Version": "2022-01-01", "Service": "FileNAS", "Region": "cn-beijing" }, "Result": {} }