Consulta os trabalhos de restauração no Database Backup Service (DBS).
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
dbs:DescribeRestoreTaskList |
get |
*BackupPlan
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| BackupPlanId |
string |
Não |
O ID do plano de backup. Nota
Você deve especificar este parâmetro ou RestoreTaskId. |
dbs1hvb0wwwXXXXX |
| RestoreTaskId |
string |
Não |
O ID do trabalho de restauração. Você pode especificar vários IDs, separados por vírgulas. Você pode chamar a operação CreateRestoreTask para obter o ID do trabalho de restauração. Nota
Você deve especificar este parâmetro ou BackupPlanId. Especificar ambos os parâmetros retorna um erro. |
s102h7rf5anq |
| PageSize |
integer |
Não |
O número de entradas a serem retornadas em cada página. Valores válidos: 1 a 100. Nota
O valor padrão é 30. |
30 |
| PageNum |
integer |
Não |
O número da página. O valor deve ser um número inteiro maior ou igual a 0. Valor padrão: 0. |
1 |
| ClientToken |
string |
Não |
Um token gerado pelo cliente que é usado para garantir a idempotência da solicitação. Você pode usar o cliente para gerar o token, mas deve garantir que o token seja único entre diferentes solicitações. |
ETnLKlblzczshOTUbOCzxxxxxxx |
| StartTimestamp |
integer |
Não |
O início do intervalo de tempo para consultar os trabalhos de restauração. Especifique a hora no formato de timestamp UNIX. O timestamp está no nível de milissegundos. |
1570701361528 |
| EndTimestamp |
integer |
Não |
O fim do intervalo de tempo para consultar os trabalhos de restauração. Especifique a hora no formato de timestamp UNIX. O timestamp está no nível de milissegundos. |
1570701361528 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| HttpStatusCode |
integer |
O código de status HTTP. |
200 |
| PageNum |
integer |
O número da página. |
1 |
| RequestId |
string |
O ID da solicitação. |
9C397502-B4F2-4E22-AD97-C81F0049F3F3 |
| ErrCode |
string |
O código de erro. |
Param.NotFound |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. |
true |
| ErrMessage |
string |
A mensagem de erro. |
The specified parameter %s value is not valid. |
| TotalPages |
integer |
O número total de páginas retornadas. |
1 |
| TotalElements |
integer |
O número total de trabalhos de restauração. |
1 |
| PageSize |
integer |
O número de entradas retornadas por página. |
30 |
| Items |
object |
||
| RestoreTaskDetail |
array<object> |
Os detalhes dos trabalhos de restauração. |
|
|
object |
|||
| RestoreStatus |
string |
The status of the restore job. Valid values:
|
running |
| FullStruAfterRestoreProgress |
integer |
The progress of the post-restore full schema 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 destination instance. |
cn-hangzhou |
| RestoreTaskCreateTime |
integer |
The time when the restore job was created, represented as a UNIX timestamp in milliseconds. |
1554560477000 |
| DestinationEndpointUserName |
string |
The database account of the destination endpoint. |
testUser |
| RestoreTaskFinishTime |
integer |
The time when the restore job was completed, represented as a UNIX timestamp in milliseconds. |
1554560477000 |
| DestinationEndpointIpPort |
string |
The connection address of the destination database instance. |
100.X.X.10:33204 |
| DestinationEndpointDatabaseName |
string |
The database name of the destination endpoint. |
test |
| DestinationEndpointInstanceType |
string |
The type of destination instance. Valid values:
|
RDS |
| DestinationEndpointOracleSID |
string |
The Oracle SID. Nota
This parameter is required for Oracle databases. |
test |
| FullStruforeRestoreProgress |
integer |
The progress of the pre-restore full schema restoration. |
100 |
| ErrMessage |
string |
The error message. |
NULL |
| RestoreTaskId |
string |
The ID of the restore job. |
1iyixxxxxx |
| FullDataRestoreProgress |
integer |
The progress of the full data restoration. |
100 |
| ContinuousRestoreProgress |
integer |
The progress of the incremental log restoration. |
100 |
| DestinationEndpointInstanceID |
string |
The ID of the destination 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 point in time to which the data is restored, represented as a UNIX timestamp in milliseconds. |
1554560477000 |
| DestinationEndpointHost |
string |
The IP address or domain name of the destination instance. |
127.0.0.1 |
| DestinationEndpointPort |
string |
The port number of the destination database. |
3306 |
| DestinationEndpointEnableSsl |
string |
Indicates whether the connection to the destination database is SSL-encrypted. |
true |
| BackupGatewayIdentifier |
string |
The unique ID of the backup gateway for the destination endpoint. |
TESTGATEWAY |
| BackupSourceOssRegion |
string |
The OSS region of the backup source. |
cn-beijing |
| RestoreDestinationMode |
string |
The method used to restore data to the destination endpoint. |
EXIST_INSTANCE |
| PhysicalFullBackupRecoverProgress |
integer |
The progress of the full physical restore. This parameter is applicable to physical backups of MySQL and SQL Server. |
100 |
| PhysicalFullAndIncrementBackupRecoverProgress |
integer |
The progress of the full and incremental physical restore. This parameter is applicable to physical backups of MySQL. |
100 |
| PhysicalIncrementBackupRecoverProgress |
integer |
The progress of the incremental physical restore. This parameter is applicable to physical backups of SQL Server. |
100 |
| PhysicalDatabaseOnlineProgress |
integer |
The progress of bringing the database online after a physical restore. This parameter is applicable to physical backups of SQL Server. |
100 |
| PhysicalBackupRecoverProgress |
integer |
The progress of the physical restoration. This parameter is applicable to physical backups of Oracle. |
100 |
Exemplos
Resposta de sucesso
JSON formato
{
"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
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 403 | Request.Forbidden | Have no Permissions |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.