Create a temporary instance based on a backup set or a time point within the last 7 days. When a temporary instance is created, accounts and databases inherit the backup set data. The following conditions must be met, otherwise creation will fail:

  • The instance status is Running.
  • No migration tasks exist.
  • The instance is not locked.
  • The current status of the instance backup set is Success.

Request parameters

Name Type Required? Description
Action String Yes Required parameter. Value: CreateTempDBInstance.
DBInstanceId String Yes Instance ID.
BackupId Integer Yes ID of the backup.
RestoreTime String No Any time in the past 7 days and more than 30 minutes earlier than the current time can be used as the restoration time. The default time zone is UTC. For example, 2011-06-11T16:00:00Z.

Return parameters

Name Type Description
<Public Return Parameters> For more information, see Public parameters.
TempDBInstanceId String ID of a sub-instance.

Request example
&<Public Request Parameters>

Response example

XML format:


JSON format: