restoreDmsDatabase
    • PDF

    restoreDmsDatabase

    • PDF

    Article summary

    Overview

    Restores databases with the backup files in the internal backup storage.
    Make sure isRecovery is correctly set, as there is no restore database [userdb] with recovery API.

    Use getDmsOperation to get the restoration progress, with the requestNo you can get from the response.

    Request

    Request parameters

    ParameterRequiredTypeLimitationsDescription
    cloudDBInstanceNoYStringCloud DB instance number
    fileNameYStringFile name
    If the file is uploaded to a folder in Object Storage’s bucket, specify the file name inthe form of subfolder/filename.
    isRecoveryYBooleanRestoration mode (recovery and norecovery)
    Set this parameter to 1 if you do not need to restore log backups any more, and 0 if you need to restore additional logs with restoreDmdLog.
    newDatabaseNameYStringName of a new database to restore.
    It must be unique over the database instances to restore.
    responseFormatTypeNStringResponse format

    Examples

    Request example

    {CloudDB_API_URL}/restoreDmsDatabase?cloudDBInstanceNo=1010059&fileName=d1.full&isRecovery=0
    

    Response example

    <restoreDmsDatabaseResponse>
        <requestId>e7ed561c-50de-4772-8791-c6b9bf5dbe10</requestId>
        <returnCode>0</returnCode>
        <returnMessage>success</returnMessage>
        <requestNo>782352</requestNo>
    </restoreDmsDatabaseResponse>
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.