Consulta os trabalhos de backup que atendem aos critérios especificados.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
hbr:DescribeBackupJobs2 |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| PageNumber |
integer |
Não |
O número da página. As páginas começam a partir da página 1. O valor padrão é 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página. Valores válidos: 1 a 99. O valor padrão é 10. |
10 |
| SourceType |
string |
Não |
O tipo da fonte de dados. Valores válidos:
|
ECS_FILE |
| SortDirection |
string |
Não |
A direção de classificação. Valores válidos:
|
DESCEND |
| Filters |
array<object> |
Não |
Os pares chave-valor do filtro. |
|
|
object |
Não |
O filtro. |
||
| Key |
string |
Não |
A chave do filtro. Valores válidos:
|
VaultId |
| Values |
array |
Não |
O valor do filtro. |
|
|
string |
Não |
O valor do filtro. COMPLETE: Backup de NAS local. 0: ARCHIVE: Fonte de dados de NAS de arquivamento. 1: ARCHIVE_BY_SEARCH: Fonte de dados de NAS de arquivamento. |
COMPLETE |
|
| Operator |
string |
Não |
O operador de correspondência. O valor padrão é IN. Este parâmetro especifica o operador a ser usado para corresponder a Key e Value. Valores válidos:
Nota
O operador IN não é suportado quando você usa CompleteTime como chave para uma consulta. |
IN |
| Edition |
string |
Não |
A edição. Valores válidos: BASIC e STANDARD. O valor padrão é STANDARD. |
STANDARD |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida.
|
true |
| Code |
string |
O código de retorno. Um valor 200 indica que a solicitação foi bem-sucedida. |
200 |
| Message |
string |
A mensagem retornada. Se a solicitação for bem-sucedida, successful será retornado. Se a solicitação falhar, uma mensagem de erro será retornada. |
successful |
| PageNumber |
integer |
O número da página. As páginas começam a partir da página 1. O valor padrão é 1. |
1 |
| PageSize |
integer |
O número de entradas por página. Valores válidos: 1 a 99. O valor padrão é 10. |
10 |
| TotalCount |
integer |
O número total de trabalhos de backup que atendem aos critérios especificados. |
8 |
| BackupJobs |
object |
||
| BackupJob |
array<object> |
A lista de trabalhos de backup que atendem aos critérios especificados. |
|
|
array<object> |
Os detalhes do trabalho de backup. |
||
| Status |
string |
The status of the backup job. Valid values:
|
COMPLETE |
| ErrorMessage |
string |
The error message for the backup job. |
PARTIAL_COMPLETE |
| ActualItems |
integer |
This parameter is valid only when SourceType is set to ECS_FILE. It indicates the actual number of items in the backup job. |
6 |
| VaultId |
string |
The ID of the backup repository. |
v-0006******q |
| ActualBytes |
integer |
The actual data volume of the backup job after deduplication. Unit: bytes. |
600 |
| CreateTime |
integer |
This parameter is valid only when SourceType is set to NAS. It indicates the time when the file system was created. This value is a UNIX timestamp. Unit: seconds. |
1607436917 |
| BackupType |
string |
The backup type. The value COMPLETE indicates a full backup. |
COMPLETE |
| Prefix |
string |
This parameter is valid only when SourceType is set to OSS. It indicates the prefix of the backup object. |
example/ |
| SourceType |
string |
The type of the data source. Valid values:
|
ECS_FILE |
| Options |
string |
This parameter is required only when SourceType is set to ECS_FILE. It indicates whether to use Volume Shadow Copy Service (VSS) to define the backup path.
|
{"UseVSS":false} |
| ClientId |
string |
This parameter is valid only when SourceType is set to ECS_FILE. It indicates the ID of the backup client. |
c-********************* |
| ItemsDone |
integer |
This parameter is valid only when SourceType is set to ECS_FILE. It indicates the number of backup items. |
8 |
| BytesTotal |
integer |
The total data volume of the data source. Unit: bytes. |
1000 |
| Exclude |
string |
This parameter is required only when SourceType is set to ECS_FILE. It indicates the path to files that do not need to be backed up. All files in this path are excluded. The path can be up to 255 characters long. |
["/var", "/proc"] |
| JobName |
string |
The name of the backup job. |
jobname |
| CompleteTime |
integer |
The time when the backup job was completed. This value is a UNIX timestamp. Unit: seconds. |
1554347313 |
| CreatedTime |
integer |
The time when the backup job was created. This value is a UNIX timestamp. Unit: seconds. |
1554347313 |
| Bucket |
string |
This parameter is valid only when SourceType is set to OSS. It indicates the name of the OSS bucket. |
hbr-backup-oss |
| Progress |
integer |
The backup progress. The value is calculated as 100% × 100. |
10000 |
| SpeedLimit |
string |
This parameter is required only when SourceType is set to ECS_FILE. It indicates the traffic shaping settings for the backup. The format is
|
0:24:5120 |
| InstanceId |
string |
This parameter is valid only when SourceType is set to NAS. It indicates the ECS instance ID. |
i-********************* |
| PlanId |
string |
The backup plan ID. |
plan-20********35 |
| FileSystemId |
string |
This parameter is valid only when SourceType is set to NAS. It indicates the file system ID. |
005494 |
| StartTime |
integer |
The time when the backup job started. This value is a UNIX timestamp. Unit: seconds. |
1554347313 |
| UpdatedTime |
integer |
The time when the backup job was updated. This value is a UNIX timestamp. Unit: seconds. |
1554347313 |
| JobId |
string |
The backup job ID. |
job-000g********w7 |
| ItemsTotal |
integer |
This parameter is valid only when SourceType is set to ECS_FILE. It indicates the total number of items in the data source. |
10 |
| Include |
string |
The source paths included in the backup job. |
["/home/alice/*.pdf", "/home/bob/*.txt"] |
| BytesDone |
integer |
The data volume of the incremental backup. Unit: bytes. |
800 |
| Paths |
object |
||
| Path |
array |
The source path of the backup. |
|
|
string |
The source path. |
"/home" |
|
| Detail |
object |
The details of the ECS instance backup job. |
|
| DoCopy |
boolean |
Indicates whether a remote replication is performed. |
true |
| DestinationNativeSnapshotId |
string |
The ID of the remote replication snapshot. |
s-****************** |
| DestinationNativeSnapshotProgress |
integer |
The progress of the remote replication. |
85 |
| DestinationNativeSnapshotStatus |
string |
The status of the remote replication. |
COMPLETE |
| DestinationRetention |
integer |
The retention period of the remote replication backup. |
30 |
| DestinationSnapshotId |
string |
The ID of the remote replication backup. |
s-****************** |
| DestinationNativeSnapshotErrorMessage |
string |
The error message for the failed remote replication. |
ECS.CreatingSnapshot |
| NativeSnapshotId |
string |
The snapshot ID. |
s-****************** |
| DiskNativeSnapshotIdList |
object |
||
| DiskNativeSnapshotId |
array |
The mapping between snapshots and disks. |
|
|
string |
The snapshot ID. |
s-****************** |
|
| InstanceInfos |
object |
The information about the ECS instance, including the instance name and instance type. |
{ "i-xxxxxxxx": { "hostName": "test", "instanceName": "test", "instanceType": "ecs.c7.xlarge", "osType": "linux", "diskIds": [ "d-xxxxxxxx01", "d-xxxxxxxx02" ], "osNameEn": "Rocky Linux 8.8 64 bit", "osName": "Rocky Linux 8.8 64position", "platform": "Rocky Linux" } } |
| InstanceName |
string |
The name of the Tablestore instance. |
instancename |
| OtsDetail |
object |
The details of the Tablestore instance. |
|
| TableNames |
object |
||
| TableName |
array |
The list of data table names in the Tablestore instance. |
|
|
string |
The name of a data table in the Tablestore instance. |
["table1", "table2", "table3"] |
|
| Speed |
integer |
The actual average backup speed. Unit: KB/s. |
500 |
| TableName |
string |
The name of the data table in the Tablestore instance. |
table1 |
| CrossAccountType |
string |
The type of the cross-account backup. Valid values:
|
SELF_ACCOUNT |
| CrossAccountUserId |
integer |
The ID of the source account that is managed by the current account for cross-account backup. |
158975xxxxx4625 |
| CrossAccountRoleName |
string |
The name of the RAM role that is created in the source account for cross-account backup and managed by the current account. |
BackupRole |
| Report |
object |
The job report. |
|
| TotalFiles |
string |
The list of all files. This parameter is not returned for data synchronization. |
/temp/report/158975xxxxxx4625/job-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_total.csv |
| SuccessFiles |
string |
The list of successful files. |
/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_success.zip |
| FailedFiles |
string |
The list of failed files. |
/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_failed.zip |
| SkippedFiles |
string |
The list of skipped files. |
/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_skipped.zip |
| ReportTaskStatus |
string |
The status of report generation. |
COMPLETE |
| Identifier |
string |
This parameter is returned only when SourceType is set to CONTAINER. It indicates the ID of the cluster that is backed up by the container backup job. If the cluster is a Container Service for Kubernetes (ACK) cluster, this parameter indicates the ACK cluster ID. |
c83**************************b76 |
| DestSourceType |
string |
The type of the destination data source. This parameter is required only for synchronization. |
OSS |
| DestDataSourceId |
string |
The ID of the destination data source. This parameter is required only for synchronization. |
ds-000cov4ufudxklj24zdk |
| DestDataSourceDetail |
string |
The details of the destination data source. This parameter is required only for synchronization. |
{\"prefix\":\"/\"} |
| ChangeListPath |
string |
The configuration of the incremental file synchronization list. This parameter is required only for synchronization. |
{"dataSourceId": "ds-123456789", "path": "/changelist"} |
| FilesTotal |
integer |
The total number of files to be processed. |
10 |
| FilesDone |
integer |
The number of processed files. |
9 |
| ActualFiles |
integer |
The actual number of processed files. |
8 |
| TriggerMode |
string |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Success": true,
"Code": "200",
"Message": "successful",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 8,
"BackupJobs": {
"BackupJob": [
{
"Status": "COMPLETE",
"ErrorMessage": "PARTIAL_COMPLETE",
"ActualItems": 6,
"VaultId": "v-0006******q",
"ActualBytes": 600,
"CreateTime": 1607436917,
"BackupType": "COMPLETE",
"Prefix": "example/",
"SourceType": "ECS_FILE",
"Options": "{\"UseVSS\":false}",
"ClientId": "c-*********************",
"ItemsDone": 8,
"BytesTotal": 1000,
"Exclude": "[\"/var\", \"/proc\"]",
"JobName": "jobname",
"CompleteTime": 1554347313,
"CreatedTime": 1554347313,
"Bucket": "hbr-backup-oss",
"Progress": 10000,
"SpeedLimit": "0:24:5120",
"InstanceId": "i-*********************",
"PlanId": "plan-20********35",
"FileSystemId": "005494",
"StartTime": 1554347313,
"UpdatedTime": 1554347313,
"JobId": "job-000g********w7",
"ItemsTotal": 10,
"Include": "[\"/home/alice/*.pdf\", \"/home/bob/*.txt\"]",
"BytesDone": 800,
"Paths": {
"Path": [
"\"/home\""
]
},
"Detail": {
"DoCopy": true,
"DestinationNativeSnapshotId": "s-******************",
"DestinationNativeSnapshotProgress": 85,
"DestinationNativeSnapshotStatus": "COMPLETE",
"DestinationRetention": 30,
"DestinationSnapshotId": "s-******************",
"DestinationNativeSnapshotErrorMessage": "ECS.CreatingSnapshot",
"NativeSnapshotId": "s-******************",
"DiskNativeSnapshotIdList": {
"DiskNativeSnapshotId": [
"s-******************"
]
},
"InstanceInfos": {
"test": "test",
"test2": 1
}
},
"InstanceName": "instancename",
"OtsDetail": {
"TableNames": {
"TableName": [
"[\"table1\", \"table2\", \"table3\"]"
]
}
},
"Speed": 500,
"TableName": "table1",
"CrossAccountType": "SELF_ACCOUNT",
"CrossAccountUserId": 0,
"CrossAccountRoleName": "BackupRole",
"Report": {
"TotalFiles": "/temp/report/158975xxxxxx4625/job-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_total.csv",
"SuccessFiles": "/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_success.zip",
"FailedFiles": "/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_failed.zip",
"SkippedFiles": "/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_skipped.zip",
"ReportTaskStatus": "COMPLETE"
},
"Identifier": "c83**************************b76",
"DestSourceType": "OSS",
"DestDataSourceId": "ds-000cov4ufudxklj24zdk",
"DestDataSourceDetail": "{\\\"prefix\\\":\\\"/\\\"}",
"ChangeListPath": "{\"dataSourceId\": \"ds-123456789\", \"path\": \"/changelist\"}",
"FilesTotal": 10,
"FilesDone": 9,
"ActualFiles": 8,
"TriggerMode": ""
}
]
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.