You can call this operation to modify the backup time of a DBS backup schedule.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyBackupStrategy

The parameter specified by the system. Value: ModifyBackupStrategy.

BackupPeriod String Yes Monday

The cycle of full Backup. Valid values:

  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
  • Sunday
BackupPlanId String Yes dbstooi01XXXX

The ID of the backup plan.

BackupStartTime String No 14:22

The start time of full backup. Valid value: HH:mm.

BackupStrategyType String No simple

The cycle of full Backup. Valid values:

  • simple (periodic backup that is used with backuptopic and backstarttime)
  • manual
Note Default value: simple.
BackupLogIntervalSeconds Integer No 1000

The increment interval. Unit: seconds.

Note Only physical backup is supported.
RegionId String No cn-hangzhou

Region ID, call DescribeRegions to view the regions supported by DBS.

ClientToken String No ETnLKlblzczshOTUbOCzxxxxxxx

The client token that is used to ensure the idempotency of the request.

Response parameters

Parameter Type Sample response Description
BackupPlanId String dbstooi01XXXX

The ID of the backup plan.

ErrCode String Param.NotFound

The error code.

ErrMessage String The specified parameter %s value is not valid.

The returned message.

HttpStatusCode Integer 200

The HTTP status code.

NeedPrecheck Boolean false

Indicates whether the precheck is triggered by the modification. A value of true indicates that the modification is required. You can call this operation to start a backup plan.

RequestId String D6E068C3-25BC-455A-85FE-45F0B22ECB1F

The ID of the request.

Success Boolean true

Indicates whether the request succeeded.

Examples

Sample requests

http(s)://dbs-api.cn-hangzhou.aliyuncs.com/? Action=ModifyBackupStrategy
&BackupPeriod=Monday
&BackupPlanId=dbstooi01XXXX
&<Common request parameters>

Sample success responses

XML format

<ModifyBackupStrategyReponse>
      <RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>
      <HttpStatusCode>200</HttpStatusCode>
      <BackupPlanId>dbs1h****usfa</BackupPlanId>
      <NeedPrecheck>false</NeedPrecheck>
      <Success>true</Success>
</ModifyBackupStrategyReponse>

JSON format

{"RequestId":"D6E068C3-25BC-455A-85FE-45F0B22ECB1F","HttpStatusCode":"200","BackupPlanId":"dbstooi01XXXX","NeedPrecheck":"false","ErrMessage":"The specified parameter %s value is not valid. ","Success":"true","ErrCode":"Param.NotFound"}

Error codes

For a list of error codes, visit the API Error Center.