Create a temporary instance

Last Updated: Dec 06, 2017

Description

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 No 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> None For more information, see Public parameters.
TempDBInstanceId String ID of a sub-instance.

Example

  • Request example

    1. https://rds.aliyuncs.com/?Action=CreateTempDBInstance
    2. &BackupId=90262
    3. &DBInstanceId=riauvjz6zajfiq6ba1370329449201
    4. &<Public Request Parameters>
  • Return example

    XML format:

    1. <CreateChildDBInstanceResponse>
    2. <RequestId>248DE93F-8647-4B9D-8287-4A4A0FE56AD5</RequestId>
    3. <TempDBInstanceId>sub1385954257106_junjunzhaasadsd</TempDBInstanceId>
    4. </CreateChildDBInstanceResponse>

    JSON format:

    1. {
    2. "RequestId":"248DE93F-8647-4B9D-8287-4A4A0FE56AD5",
    3. "TempDBInstanceId":"sub1385954257106_junjunzhaasadsd"
    4. }
Thank you! We've received your feedback.