You can call the CreateBackupPlan operation to create a DBS backup schedule.


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 CreateBackupPlan

The parameter specified by the system. Value: CreateBackupPlan.

BackupMethod String Yes logical

The method to use for backup. Valid values:

  • logical
  • physical
  • duplication
DatabaseType String Yes MySQL

The database engine that the instances run. Valid values:

  • MySQL
  • Oracle
  • MongoDB
  • Redis
InstanceClass String Yes micro

The specifications. Values:

  • micro
  • small
  • medium
  • arge
Region String No cn-hangzhou

The DBS region. Valid values:

  • cn-hangzhou: Alibaba Cloud hangzhou
  • cn-shanghai: Alibaba Cloud in shanghai
  • cn-qingdao: Alibaba Cloud qingdao
  • cn-beijing: alibaba cloud beijing
  • cn-shenzhen: Alibaba Cloud shenzhen
  • cn-hongkong: public cloud china (hong kong)
  • ap-southeat-1: public cloud singapore
  • cn-hangzhou-finance: finance cloud hangzhou
  • cn-shanghai-finance: finance cloud of shanghai
  • cn-shenzhen-finance: finance cloud shenzhen
Period String No Year

The unit of the subscription period. Valid values:

  • Year: subscription on a yearly basis
  • Month: subscription on a monthly basis
UsedTime Integer No 1

The duration of the new instance if the new instance uses subscription billing. Valid values:

  • If the value of the Period parameter is Year, the value of the UsedTime parameter ranges from 1 to 9.
  • If the value of the Period parameter is Month, the value of the UsedTime parameter ranges from 1 to 11.
PayType String No Postpaid

The payment method. Valid values:

  • Postpaid: pay-as-you-go
  • prepay: Subscription
Note Default value: prepay. Currently, only BackupMethod for duplication supports postpay.
DatabaseRegion String No cn-hangzhou

The region of the database.

Note This parameter is required when the PayType parameter is set to postpay.
StorageRegion String No cn-hangzhou

Storage region.

Note This parameter is required when the PayType parameter is set to postpay.
InstanceType String No RDS

The type of the database instance. Valid values:

  • RDS
  • PolarDB
  • DDS
  • Kvstore
  • Other
    Note When the PayType parameter is set to postpay, this parameter is required.
StorageType String No None

This parameter is not available.

FromApp String No OpenApi

Specifies the request source. The default value is OpenApi and cannot be changed.

RegionId String No cn-hangzhou

The region ID. You can call DescribeRegions query.


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

Response parameters

Parameter Type Sample response Description
BackupPlanId String dbs1hvb0wwweusfa

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

HTTP status code.

OrderId String 2056157***

The ID of the order.

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

The ID of the request.

Success Boolean true

Indicates whether the request succeeded.


Sample requests

http(s):// Action=CreateBackupPlan
&<Common request parameters>

Sample success responses

XML format


JSON format

	"RequestId": "D6E068C3-25BC-455A-85FE-45F0B22ECB1F",
	"HttpStatusCode": 200,
	"BackupPlanId": "dbs1h****usfa",
	"OrderId": "2056157****",
	"Success": true

Error codes

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