Mengkueri pekerjaan pemulihan di Database Backup Service (DBS).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dbs:DescribeRestoreTaskList |
get |
*BackupPlan
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| BackupPlanId |
string |
No |
ID dari rencana pencadangan (backup plan). Catatan
Anda harus menentukan parameter ini atau |
dbs1hvb0wwwXXXXX |
| RestoreTaskId |
string |
No |
ID dari tugas pemulihan. Anda dapat menentukan beberapa ID yang dipisahkan dengan koma. Anda dapat memanggil operasi CreateRestoreTask untuk memperoleh ID tugas pemulihan. Catatan
Anda harus menentukan parameter ini atau |
s102h7rf5anq |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan pada setiap halaman. Nilai yang valid: 1 hingga 100. Catatan
Nilai default: 30. |
30 |
| PageNum |
integer |
No |
Nomor halaman. Nilai harus berupa bilangan bulat yang lebih besar dari atau sama dengan 0. Nilai default: 0. |
1 |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. |
ETnLKlblzczshOTUbOCzxxxxxxx |
| StartTimestamp |
integer |
No |
Awal dari rentang waktu untuk mengkueri tugas pemulihan. Tentukan waktu sebagai UNIX timestamp dalam milidetik. |
1570701361528 |
| EndTimestamp |
integer |
No |
Akhir dari rentang waktu untuk mengkueri tugas pemulihan. Tentukan waktu sebagai UNIX timestamp dalam milidetik. |
1570701361528 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| HttpStatusCode |
integer |
Kode status HTTP. |
200 |
| PageNum |
integer |
Nomor halaman. |
1 |
| RequestId |
string |
ID permintaan. |
9C397502-B4F2-4E22-AD97-C81F0049F3F3 |
| ErrCode |
string |
Kode kesalahan. |
Param.NotFound |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
| ErrMessage |
string |
Pesan kesalahan. |
The specified parameter %s value is not valid. |
| TotalPages |
integer |
Jumlah total halaman yang dikembalikan. |
1 |
| TotalElements |
integer |
Jumlah total pekerjaan pemulihan. |
1 |
| PageSize |
integer |
Jumlah entri yang dikembalikan per halaman. |
30 |
| Items |
object |
||
| RestoreTaskDetail |
array<object> |
Detail dari pekerjaan pemulihan. |
|
|
object |
|||
| RestoreStatus |
string |
The status of the restore job. Valid values:
|
running |
| FullStruAfterRestoreProgress |
integer |
The progress of post-restore structure restoration. |
100 |
| CrossRoleName |
string |
The name of the RAM role used for cross-account backup. |
test123 |
| RestoreDir |
string |
The restore path. |
/home/test |
| CrossAliyunId |
string |
The UID of the Alibaba Cloud account used for cross-account backup. |
2xxx7778xxxxxxxxxx |
| RestoreObjects |
string |
The restore objects. |
[ { \"DBName\":\"test\" } ] |
| BackupPlanId |
string |
The ID of the backup plan. |
dbsxxxx |
| DestinationEndpointRegion |
string |
The region of the database. |
cn-hangzhou |
| RestoreTaskCreateTime |
integer |
The time when the restore job was created. This value is a UNIX timestamp. Unit: milliseconds. |
1554560477000 |
| DestinationEndpointUserName |
string |
The database account. |
testUser |
| RestoreTaskFinishTime |
integer |
The time when the restore job was completed. This value is a UNIX timestamp. Unit: milliseconds. |
1554560477000 |
| DestinationEndpointIpPort |
string |
The database endpoint. |
100.X.X.10:33204 |
| DestinationEndpointDatabaseName |
string |
The database name. |
test |
| DestinationEndpointInstanceType |
string |
The location of the database. Valid values:
|
RDS |
| DestinationEndpointOracleSID |
string |
The Oracle system ID (SID). |
test |
| FullStruforeRestoreProgress |
integer |
The progress of pre-restore structure restoration. |
100 |
| ErrMessage |
string |
The error message. |
NULL |
| RestoreTaskId |
string |
The ID of the restore job. |
1iyixxxxxx |
| FullDataRestoreProgress |
integer |
The progress of full data restoration. |
100 |
| ContinuousRestoreProgress |
integer |
The progress of incremental log restoration. |
100 |
| DestinationEndpointInstanceID |
string |
The ID of the database instance. |
rm-bp1p8c2947XXX |
| BackupSetId |
string |
The ID of the full backup set used for the restoration. |
urjlfmxxxxx |
| BackupGatewayId |
integer |
The ID of the backup gateway. |
324234332 |
| RestoreTaskName |
string |
The name of the restore job. |
dbsr1g3xxxx_Restore_Task_1775009514575 |
| RestoreTime |
integer |
The restore time. This value is a UNIX timestamp. Unit: milliseconds. |
1554560477000 |
| DestinationEndpointHost |
string |
127.0.0.1 |
|
| DestinationEndpointPort |
string |
3306 |
|
| DestinationEndpointEnableSsl |
string |
true |
|
| BackupGatewayIdentifier |
string |
TESTGATEWAY |
|
| BackupSourceOssRegion |
string |
cn-beijing |
|
| RestoreDestinationMode |
string |
EXIST_INSTANCE |
|
| PhysicalFullBackupRecoverProgress |
integer |
100 |
|
| PhysicalFullAndIncrementBackupRecoverProgress |
integer |
100 |
|
| PhysicalIncrementBackupRecoverProgress |
integer |
100 |
|
| PhysicalDatabaseOnlineProgress |
integer |
100 |
|
| PhysicalBackupRecoverProgress |
integer |
100 |
Contoh
Respons sukses
JSONformat
{
"HttpStatusCode": 200,
"PageNum": 1,
"RequestId": "9C397502-B4F2-4E22-AD97-C81F0049F3F3",
"ErrCode": "Param.NotFound",
"Success": true,
"ErrMessage": "The specified parameter %s value is not valid. ",
"TotalPages": 1,
"TotalElements": 1,
"PageSize": 30,
"Items": {
"RestoreTaskDetail": [
{
"RestoreStatus": "running",
"FullStruAfterRestoreProgress": 100,
"CrossRoleName": "test123",
"RestoreDir": "/home/test",
"CrossAliyunId": "2xxx7778xxxxxxxxxx",
"RestoreObjects": "[ { \\\"DBName\\\":\\\"test\\\" } ]",
"BackupPlanId": "dbsxxxx",
"DestinationEndpointRegion": "cn-hangzhou",
"RestoreTaskCreateTime": 1554560477000,
"DestinationEndpointUserName": "testUser",
"RestoreTaskFinishTime": 1554560477000,
"DestinationEndpointIpPort": "100.X.X.10:33204",
"DestinationEndpointDatabaseName": "test",
"DestinationEndpointInstanceType": "RDS",
"DestinationEndpointOracleSID": "test",
"FullStruforeRestoreProgress": 100,
"ErrMessage": "NULL",
"RestoreTaskId": "1iyixxxxxx",
"FullDataRestoreProgress": 100,
"ContinuousRestoreProgress": 100,
"DestinationEndpointInstanceID": "rm-bp1p8c2947XXX",
"BackupSetId": "urjlfmxxxxx",
"BackupGatewayId": 324234332,
"RestoreTaskName": "dbsr1g3xxxx_Restore_Task_1775009514575",
"RestoreTime": 1554560477000,
"DestinationEndpointHost": "127.0.0.1",
"DestinationEndpointPort": "3306",
"DestinationEndpointEnableSsl": "true",
"BackupGatewayIdentifier": "TESTGATEWAY",
"BackupSourceOssRegion": "cn-beijing",
"RestoreDestinationMode": "EXIST_INSTANCE",
"PhysicalFullBackupRecoverProgress": 100,
"PhysicalFullAndIncrementBackupRecoverProgress": 100,
"PhysicalIncrementBackupRecoverProgress": 100,
"PhysicalDatabaseOnlineProgress": 100,
"PhysicalBackupRecoverProgress": 100
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Request.Forbidden | Have no Permissions |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.