Consulta a política de backup automático de um cluster PolarDB.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
polardb:DescribeBackupPolicy |
get |
*dbcluster
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| DBClusterId |
string |
Sim |
O ID do cluster. Nota
Chame a operação DescribeDBClusters para consultar os detalhes de todos os clusters em uma região, incluindo os IDs dos clusters. |
pc-************* |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| PreferredBackupPeriod |
string |
O ciclo de backup. Valores válidos:
Nota
Este parâmetro não é recomendado se o recurso de backup avançado estiver ativado. Use o parâmetro AdvancedDataPolicies em vez disso. |
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday |
| DataLevel1BackupRetentionPeriod |
string |
O período de retenção de backups de nível 1. Valores válidos: 3 a 14. Unidade: dias. Nota
Este parâmetro não é recomendado se o recurso de backup avançado estiver ativado. Use o parâmetro AdvancedDataPolicies em vez disso. |
7 |
| RequestId |
string |
O ID da solicitação. |
EADFCE0F-9FB5-4685-B395-1440B****** |
| PreferredBackupTime |
string |
O intervalo de tempo em que um backup automático é realizado. O horário está no formato |
07:00Z-08:00Z |
| BackupRetentionPolicyOnClusterDeletion |
string |
A política de retenção de backups ao excluir um cluster:
|
NONE |
| PreferredNextBackupTime |
string |
O horário do próximo backup. O horário está no formato |
2020-11-16T07:30Z |
| DataLevel2BackupRetentionPeriod |
string |
O período de retenção de backups de nível 2. Valores válidos:
Nota
|
0 |
| BackupFrequency |
string |
A frequência de backup. Valores válidos:
Nota
|
Normal |
| DataLevel1BackupFrequency |
string |
A frequência de backup. Valores válidos:
Nota
|
Normal |
| DataLevel1BackupPeriod |
string |
O ciclo de um backup de nível 1. Valores válidos:
Nota
|
Monday,Tuesday |
| DataLevel1BackupTime |
string |
O intervalo de tempo em que um backup automático é realizado. O horário está no formato Nota
|
15:00Z-16:00Z |
| DataLevel2BackupPeriod |
string |
O ciclo de um backup de nível 2. Valores válidos:
Nota
|
Monday,Tuesday |
| DataLevel2BackupAnotherRegionRetentionPeriod |
string |
O período de retenção de backups de nível 2 entre regiões. Valores válidos:
Nota
|
30 |
| DataLevel2BackupAnotherRegionRegion |
string |
A região de destino do backup de nível 2 entre regiões. Para mais informações sobre as regiões que suportam backup entre regiões, consulte Visão geral. Nota
Este parâmetro não é recomendado se o recurso de backup avançado estiver ativado. Use o parâmetro AdvancedDataPolicies em vez disso. |
cn-hangzhou |
| BackupPolicyLevel |
string |
O nível da política de backup. Valores válidos:
Nota
|
Normal |
| AdvancedPolicyOption |
string |
A opção de política de backup avançado. Valores válidos:
Nota
|
disable |
| AdvancedDataPolicies |
object |
||
| AdvancedDataPolicy |
array<object> |
Os detalhes da política de backup avançado. Nota
|
|
|
object |
|||
| PolicyId |
string |
The ID of the backup policy. |
71930ac2e9f15e41615e10627c****** |
| RetentionType |
string |
The retention period type of the backup set. The return value is:
|
delay |
| RetentionValue |
string |
The number of days to retain the backup. |
7 |
| FilterType |
string |
The filter type for the advanced policy. The return value is:
|
crontab |
| FilterKey |
string |
The scheduling type. The return value is:
Nota
This parameter is returned only when FilterType is set to crontab. |
dayOfWeek |
| FilterValue |
string |
The backup cycle. |
1,2,3,4,5,6,7 |
| SrcType |
string |
The source type of the backup policy. The return value is:
|
level1 |
| SrcRegion |
string |
The source region of the backup policy. |
cn-beijing |
| DestType |
string |
The destination type of the backup policy. The return value is:
|
level1 |
| DestRegion |
string |
The destination region of the backup policy. |
cn-hangzhou |
| DumpAction |
string |
The method to convert a level-1 backup to a level-2 backup. The return value is:
|
copy |
| AutoCreated |
boolean |
Indicates whether the backup policy is automatically generated by the system. The return value is:
|
true |
| OnlyPreserveOneEachHour |
boolean |
The hourly backup retention policy. Valid values:
|
true |
| OnlyPreserveOneEachDay |
boolean |
The 24-hour backup retention policy.
|
true |
| BakType |
string |
The backup type. The return value is:
|
F |
| StorageClass |
string |
Exemplos
Resposta de sucesso
JSON formato
{
"PreferredBackupPeriod": "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
"DataLevel1BackupRetentionPeriod": "7",
"RequestId": "EADFCE0F-9FB5-4685-B395-1440B******",
"PreferredBackupTime": "07:00Z-08:00Z",
"BackupRetentionPolicyOnClusterDeletion": "NONE",
"PreferredNextBackupTime": "2020-11-16T07:30Z",
"DataLevel2BackupRetentionPeriod": "0",
"BackupFrequency": "Normal",
"DataLevel1BackupFrequency": "Normal",
"DataLevel1BackupPeriod": "Monday,Tuesday",
"DataLevel1BackupTime": "15:00Z-16:00Z",
"DataLevel2BackupPeriod": "Monday,Tuesday",
"DataLevel2BackupAnotherRegionRetentionPeriod": "30",
"DataLevel2BackupAnotherRegionRegion": "cn-hangzhou",
"BackupPolicyLevel": "Normal",
"AdvancedPolicyOption": "disable",
"AdvancedDataPolicies": {
"AdvancedDataPolicy": [
{
"PolicyId": "71930ac2e9f15e41615e10627c******\n",
"RetentionType": "delay",
"RetentionValue": "7",
"FilterType": "crontab",
"FilterKey": "dayOfWeek",
"FilterValue": "1,2,3,4,5,6,7",
"SrcType": "level1",
"SrcRegion": "cn-beijing",
"DestType": "level1",
"DestRegion": "cn-hangzhou",
"DumpAction": "copy",
"AutoCreated": true,
"OnlyPreserveOneEachHour": true,
"OnlyPreserveOneEachDay": true,
"BakType": "F",
"StorageClass": ""
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.