Consulta dados de backup de um cluster PolarDB for MySQL.
Descrição da operação
Mecanismos aplicáveis
PolarDB for MySQL
Esta operação de API está disponível apenas para clientes específicos. Para usar esta operação, entre no grupo DingTalk do Serviço ao Cliente DBS (ID: 35585947) para solicitar acesso.
Documentos relacionados
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
dbs:DescribeBackupDataList |
list |
DBInstance
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| InstanceName |
string |
Não |
O ID do cluster PolarDB. |
pc-2ze3nrr64c5****** |
| RegionCode |
string |
Não |
A região onde o conjunto de backup está localizado. |
cn-hangzhou |
| SceneType |
string |
Não |
O cenário de backup. Este parâmetro suporta apenas LEVEL_1, que indica um backup de nível 1 na região onde a instância reside. |
LEVEL_1 |
| StartTime |
string |
Não |
O início do intervalo de tempo a ser consultado. Especifique o horário no formato yyyy-MM-ddTHH:mm:ssZ. O horário deve estar em UTC. |
2024-04-17T17:00:16Z |
| EndTime |
string |
Não |
O fim do intervalo de tempo a ser consultado. O horário de término deve ser posterior ao horário de início. Especifique o horário no formato yyyy-MM-ddTHH:mm:ssZ. O horário deve estar em UTC. |
2024-04-17T17:00:32Z |
| BackupStatus |
string |
Não |
O status do conjunto de backup. Valores válidos:
|
OK |
| BackupId |
string |
Não |
O ID do conjunto de backup. |
213064**** |
| BackupMethod |
string |
Não |
O método de backup. Valores válidos:
|
Snapshot |
| BackupMode |
string |
Não |
O modo de backup. Valores válidos:
|
Automated |
| BackupType |
string |
Não |
O tipo de backup. Valores válidos:
|
FullBackup |
| BackupScale |
string |
Não |
O escopo do backup. Valores válidos:
|
DBInstance |
| PageSize |
integer |
Não |
O número de entradas a serem retornadas em cada página. O valor padrão é 20. |
20 |
| PageNumber |
integer |
Não |
O número da página. O valor deve ser um inteiro maior que 0 e que não exceda o valor máximo do tipo de dados inteiro. O valor padrão é 1. |
1 |
| InstanceIsDeleted |
boolean |
Não |
Especifica se a instância foi excluída. Valores válidos:
|
false |
| InstanceRegion |
string |
Não |
A região original da instância. |
cn-hangzhou |
| DataSourceId |
string |
Não |
Este parâmetro é reservado e não precisa ser especificado. |
test**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os detalhes dos parâmetros retornados. |
||
| Data |
object |
Os dados retornados. |
|
| Content |
array<object> |
Os detalhes da tarefa. |
|
|
array<object> |
Os detalhes da tarefa. |
||
| BackupId |
string |
The ID of the backup set. |
213088**** |
| BackupName |
string |
The name of the backup set. |
logic_backup |
| BackupMode |
string |
The backup mode. Valid values:
|
Automated |
| BackupType |
string |
The backup type. Valid values:
|
FullBackup |
| BackupScale |
string |
The backup scope. Valid values:
|
DBInstance |
| BackupMethod |
string |
The backup method. Valid values:
|
Snapshot |
| BackupSize |
integer |
The size of the backup set in bytes. |
25669140480 |
| BackupStatus |
string |
The status of the backup set. Valid values:
|
OK |
| BackupStartTime |
string |
The start time of the backup. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2024-04-17T17:00:16Z |
| BackupEndTime |
string |
The end time of the backup. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2024-04-17T17:00:32Z |
| ConsistentTime |
integer |
The point in time of the consistent snapshot. The value is a UNIX timestamp. Unit: seconds. |
1713373221 |
| BackupLocation |
string |
The storage path of the backup. |
logic |
| InstanceName |
string |
The ID of the instance. |
pc-2ze3nrr64c5****** |
| Engine |
string |
The database engine type. |
polardb_mysql |
| EngineVersion |
string |
The database engine version. |
5.7 |
| SupportDeletion |
integer |
Indicates whether the backup set can be deleted. Valid values:
|
0 |
| Encryption |
string |
The encryption information. |
psk2 |
| IsAvail |
integer |
Indicates whether the backup set is available. Valid values:
|
1 |
| Checksum |
string |
The checksum. |
84a4c16431f969712e6895992719**** |
| BackupDownloadURL |
string |
The public download URL of the backup set. Nota
This parameter is returned only when BackupMethod is set to Physical (physical backup) or Logical (logical backup). |
http://oss.com/**** |
| BackupIntranetDownloadURL |
string |
The internal download URL of the backup set. Nota
This parameter is returned only when BackupMethod is set to Physical (physical backup) or Logical (logical backup). |
http://oss.com/**** |
| ExpectExpireType |
string |
The expected expiration type of the backup set. Valid values:
|
DELAY |
| ExpectExpireTime |
string |
The expected expiration time of the backup set. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2024-04-19T05:00:49Z |
| PolarSnapshot |
object |
The information about the level-2 dump of the PolarDB cluster. Nota
The PolarSnapshot-related information is returned only after the level-2 dump feature is enabled for the PolarDB cluster in the same region and the level-1 backup is successfully dumped. |
|
| DumpId |
integer |
The ID of the dump. |
abc**** |
| DumpSize |
integer |
The size of the dump backup in bytes. |
25669140589 |
| expectExpireType |
string |
The expected expiration type of the backup set. Valid values:
|
DELAY |
| ExpectExpireTime |
string |
The expected expiration time of the backup set. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2024-04-19T05:00:49Z |
| PageSize |
integer |
O tamanho da página. |
20 |
| PageNumber |
integer |
O número da página. |
1 |
| TotalPages |
integer |
O número total de páginas. |
1 |
| TotalElements |
integer |
O número total de conjuntos de backup. |
1 |
| Extra |
string |
Informações extras. |
dbtest |
| RequestId |
string |
O ID da solicitação. |
95A5FFD0-7F46-5A7D-9DFE-6A376B4E2A28 |
| ErrCode |
string |
O código de erro. |
Request.Forbidden |
| Success |
string |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
| ErrMessage |
string |
A mensagem de erro. |
The specified parameter %s value is not valid. |
| Code |
string |
O código de status. |
Success |
| Message |
string |
A mensagem retornada. |
The specified parameter %s value is not valid. |
Exemplos
Resposta de sucesso
JSON formato
{
"Data": {
"Content": [
{
"BackupId": "213088****",
"BackupName": "logic_backup",
"BackupMode": "Automated",
"BackupType": "FullBackup",
"BackupScale": "DBInstance",
"BackupMethod": "Snapshot",
"BackupSize": 25669140480,
"BackupStatus": "OK",
"BackupStartTime": "2024-04-17T17:00:16Z",
"BackupEndTime": "2024-04-17T17:00:32Z",
"ConsistentTime": 1713373221,
"BackupLocation": "logic",
"InstanceName": "pc-2ze3nrr64c5******",
"Engine": "polardb_mysql",
"EngineVersion": "5.7",
"SupportDeletion": 0,
"Encryption": "psk2",
"IsAvail": 1,
"Checksum": "84a4c16431f969712e6895992719****",
"BackupDownloadURL": "http://oss.com/****",
"BackupIntranetDownloadURL": "http://oss.com/****",
"ExpectExpireType": "DELAY",
"ExpectExpireTime": "2024-04-19T05:00:49Z",
"PolarSnapshot": {
"DumpId": 0,
"DumpSize": 25669140589,
"expectExpireType": "DELAY",
"ExpectExpireTime": "2024-04-19T05:00:49Z"
}
}
],
"PageSize": 20,
"PageNumber": 1,
"TotalPages": 1,
"TotalElements": 1,
"Extra": "dbtest"
},
"RequestId": "95A5FFD0-7F46-5A7D-9DFE-6A376B4E2A28",
"ErrCode": "Request.Forbidden\t",
"Success": "true",
"ErrMessage": "The specified parameter %s value is not valid. ",
"Code": "Success",
"Message": "The specified parameter %s value is not valid."
}
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.