You can call the CheckCreateDdrDBInstance operation to check whether the data of a source ApsaraDB RDS instance can be restored to a destination ApsaraDB RDS instance by using a cross-region data backup file.
Operation Description
The version of the database engine that is run on the destination the instance. The value of this parameter varies based on the value of the Engine parameter. Valid values:
- MySQL: 5.5, 5.6, 5.7, and 8.0
- SQL Server: 2008r2, 08r2_ent_ha, 2012, 2012_ent_ha, 2012_std_ha, 2012_web, 2014_std_ha, 2016_ent_ha, 2016_std_ha, 2016_web, 2017_std_ha, 2017_ent, 2019_std_ha, and 2019_ent
- PostgreSQL: 9.4, 10.0, 11.0, 12.0, and 13.0
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
rds:CheckCreateDdrDBInstance | READ |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The operation that you want to perform. Set the value to CheckCreateDdrDBInstance. | cn-hangzhou |
Engine | string | Yes | The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB. The storage capacity increases at increments of 5 GB. For more information, see Primary instance types. | MySQL |
EngineVersion | string | Yes | The restoration method that you want to use. Valid values:
Default value: 0. | 5.6 |
DBInstanceClass | string | Yes | The region ID of the source instance if you want to restore data to a point in time. NoteIf you set the RestoreType parameter to 1, you must also specify this parameter. | rds.mysql.s1.small |
DBInstanceStorage | integer | Yes | The region ID of the destination instance. You can call the DescribeRegions operation to query the most recent region list of region IDs. | 20 |
RestoreType | string | Yes | Indicates whether the data of the source instance can be restored across regions. Valid values:** true and false** | 0 |
BackupSetId | string | No | The type of the destination instance. For more information, see Primary instance types. | 14358 |
RestoreTime | string | No | The ID of the request. | 2019-05-30T03:29:10Z |
Response parameters
Examples
Sample success responses
JSON
format
{
"IsValid": "true",
"RequestId": "1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IncorrectDBInstanceType | Current DB instance engine and type does not support operations. | The operation failed. The operation is not supported for the database engine of the RDS instance. |
400 | InvalidRestoreType.Format | Specified restore type is not valid. | The restoration type is invalid. Specify a valid restoration type. |
400 | NoBackupSetRegion | BackupSetRegion is absence. | The backup region does not exist. |
400 | IncorrectBackupSetType | Backup set type should be ddr. | The type of backup set must be DDR. |
400 | NoSourceInstanceName | No SourceDBInstanceName. | The source instance name is not found. |
400 | NoAvailableDisasterRestoreBakset | No available disaster restore bakset. | No available restore set is found. |
400 | IncorrectBackupSetMethod | Current backup set method does not support operations. | The operation failed. The data backup file does not support the restoration of individual databases and tables. |
400 | InvalidBackupType.Format | Specified backup type is not valid. | The operation failed. The backup type is invalid. |
400 | IncorrectEngineVersion | Current engine version does not support operations. | The operation failed. The operation is not supported for the version of the database engine that is run on the RDS instance. |
400 | IncorrectBaksetVersion | Current bakset version does not support operations. | The operation failed. The operation is not supported for the version of the data backup file. |
400 | CrossRegionUnsupportTDE | Cross-region disaster restore not support TDE bakset. | - |
400 | DisasterRestoreRegionNotMatched | Disaster restore should be operated in the ddr region or source region. | - |
400 | InvalidMinorVersion.NotFound | Specified minor version does not exists. | The operation failed. The database engine version cannot be found. |
400 | InvalidDBInstanceId.MalFormed | The specified parameter DBInstanceId is not valid. | The instance ID is invalid. Check the instance ID. |
400 | InvalidEngine.Malformed | Specified engine is not valid. | The database engine is invalid. Specify a valid database engine. |
400 | InvalidEngineVersion.Malformed | Specified engine version is not valid. | The database engine version is invalid. Check the database engine version and try again. |
400 | MissingUserID | The request is missing a user_id parameter. | The user ID cannot be found. |
400 | MissingUID | The request is missing a uid parameter. | The operation failed. The UID in the request is left unspecified. |
400 | UserPermissionFailure | The request processing has failed due to user permission. | - |
400 | InvalidServiceType.Format | Specified service type is not valid. | The service type is invalid. Set the service type to 0 or 1. The value 0 indicates an Alibaba Cloud service, and the value 1 indicates a JST service. |
400 | InvalidStorage.Format | Specified Storage is not valid. | The value of the Storage parameter is invalid. Specify a valid value. |
403 | IncorrectDBType | The current DB type does not support this operation. | The operation failed. The operation is not supported by the database engine of the RDS instance. Specify a different database engine. |
403 | IncorrectDBInstance | The current DB instance does not support this operation. | The operation failed. The operation is not supported for the RDS instance. |
403 | ResourceConfigError | The request processing has failed due to resource config error. | - |
404 | RestoreType.NotFound | RestoreType is not found. | RestoreType is not found. |
404 | InvalidBackupSetID.NotFound | Specified backup set ID does not exist. | The backup set does not exist. Specify an available backup set. |
404 | InvalidDBInstance.NotFound | The specified instance does not exist or is not supported. | The RDS instance cannot be found. Check the ID or name of the RDS instance. |
404 | InvalidDBInstanceClass.NotFound | Specified DB instance class is not found. | The configuration or the instance type cannot be found or has been discontinued. Specify a different configuration or a different instance type. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2022-09-01 | The error codes of the API operation change. | |||||||
|