This API is used to restore a database to an existing or the original DB instance.
https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/recovery
Name |
Mandatory |
Description |
|---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. |
Name |
Mandatory |
Type |
Description |
|---|---|---|---|
source |
Yes |
Object |
Specifies the restoration information. For details, see Table 3. |
target |
Yes |
Object |
Specifies the restoration target. For details, see Table 4. |
Name |
Mandatory |
Type |
Description |
|---|---|---|---|
instance_id |
Yes |
String |
Specifies the DB instance ID. |
type |
No |
String |
Specifies the restoration mode. Enumerated values include:
|
backup_id |
No |
String |
Specifies the ID of the backup used to restore data. This parameter must be specified when the backup file is used for restoration. |
restore_time |
No |
Integer |
Specifies the time point of data restoration in the UNIX timestamp. The unit is millisecond and the time zone is UTC. |
Use backup files for restoration:
{
"source": {
"instance_id": "d8e6ca5a624745bcb546a227aa3ae1cfin01",
"type": "backup",
"backup_id": "2f4ddb93-b901-4b08-93d8-1d2e472f30fe"
},
"target": {
"instance_id": "d8e6ca5a624745bcb546a227aa3ae1cfin01"
}
}
Use PITR for restoration:
{
"source": {
"instance_id": "d8e6ca5a624745bcb546a227aa3ae1cfin01",
"type": "timestamp",
"restore_time": 1532001446987
},
"target": {
"instance_id": "d8e6ca5a624745bcb546a227aa3ae1cfin01"
}
}
Name |
Type |
Description |
|---|---|---|
job_id |
String |
Indicates the task ID. |
{
"job_id": "ff80808157127d9301571bf8160c001d"
}
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.