Modify the Backup Policy
Last Updated:2020-07-20
Description
- Modify the automatic backup policy for the redis instance.
Request Structure
PUT /v1/instance/{instanceId}/modifyBackupPolicy clientToken={clientToken} HTTP/1.1
Host: redis.{region}.baidubce.com
Authorization authorization string
Request Header Field
There are no other special header fields except the public header field.
Request Parameter
Parameter Name | Type | Required | Parameter Position | Description |
---|---|---|---|---|
backupDays | String | Yes | RequestBody parameter | Identifies the backup days of the week; backup cycle: Mon (Monday) Tue (Tuesday) Wed (Wednesday) Thu (Thursday) Fri (Friday) Sat (Saturday) Sun (Sunday) separated with a commas, such as Sun, Wed, Thu, Fri, Sta |
backupTime | string | Yes | RequestBody parameter | Identifies when to back up in a day ( UTC time, +8 meains Beijing time), such as 01:05:00. |
clientToken | string | Yes | Query parameters | It is an idempotent Token, which is an ASCII character string with length of no more than 64 bits. |
expireDay | int | Yes | RequestBody parameter | Backup file expiration time, such as: 3 |
instanceId | String | Yes | Query parameters | Instance Id |
version | string | Yes | URI Parameter | API Version No. |
Request Instance
PUT /v1/instance/scs-bj-ykfiztgpxjny/modifyBackupPolicy HTTP/1.1
HOST: redis.bj.baidubce.com
ContentType: application/json
Authorization bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
{
"backupDays": "Sun,Mon,Tue,Wed,Thu,Fri,Sta",
"backupTime": "01:05:00",
"expireDay": 7
}
Return Header Field
There are no other special header fields except the public header field.
Return Parameters
No special return parameters.