Creates a Database Backup Service (DBS) backup plan.
Operation description
To perform this operation in the console, see Purchase a backup plan.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dbs:CreateBackupPlan |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
No |
The region ID of the DBS instance. This parameter is required. Call the DescribeRegions operation to view the regions that DBS supports. Note
For more information, see Endpoints. |
cn-hangzhou |
| InstanceClass |
string |
Yes |
The instance class. Valid values:
Note
The higher the instance class, the better the performance of backup and recovery. For more information, see Specifications. |
micro |
| DatabaseType |
string |
Yes |
The database type. Valid values:
|
MySQL |
| BackupMethod |
string |
Yes |
The backup method. Valid values:
|
logical |
| Period |
string |
No |
The billing cycle of the subscription instance. Valid values:
|
Month |
| UsedTime |
integer |
No |
The subscription duration. Valid values:
|
1 |
| PayType |
string |
No |
The payment method. Valid value: prepay: subscription |
prepay |
| DatabaseRegion |
string |
No |
The region of the database. |
cn-hangzhou |
| StorageRegion |
string |
No |
The storage region. |
cn-hangzhou |
| InstanceType |
string |
No |
The database instance type. Valid values:
|
RDS |
| StorageType |
string |
No |
This parameter is not used. |
无 |
| FromApp |
string |
No |
The source of the request. The default value is OpenAPI. You do not need to set this parameter. |
OpenAPI |
| ClientToken |
string |
No |
A client token that is used to ensure the idempotence of the request. |
KJSAHKJFHKJSHFKASHFKJADFHKDXXXX |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-aekzecovzti**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
7BCF6D62-885F-5A4A-91A1-679760E7**** |
| ErrCode |
string |
The error code. |
Param.NotFound |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrMessage |
string |
The error message. |
The specified parameter %s value is not valid. |
| BackupPlanId |
string |
The backup plan ID. |
dbsrhahrsu2**** |
| OrderId |
string |
The order ID. |
21437345592**** |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "7BCF6D62-885F-5A4A-91A1-679760E7****",
"ErrCode": "Param.NotFound",
"Success": true,
"ErrMessage": "The specified parameter %s value is not valid.",
"BackupPlanId": "dbsrhahrsu2****",
"OrderId": "21437345592****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Request.Forbidden | Have no Permissions |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.