Queries one or more backup jobs that meet the specified conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:DescribeBackupJobs2 |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 1 to 99. Default value: 10. |
10 |
| SourceType |
string |
No |
The data source type. Valid values:
|
ECS_FILE |
| SortDirection |
string |
No |
The sort order. Valid values:
|
DESCEND |
| Filters |
array<object> |
No |
The key-value pairs in the query filter. |
|
|
object |
No |
The query filter. |
||
| Key |
string |
No |
The key in the query filter. Valid values:
|
VaultId |
| Values |
array |
No |
The values of the filter variable. |
|
|
string |
No |
The values of the filter variable.
|
COMPLETE |
|
| Operator |
string |
No |
The matching mode. Default value: IN. The matching mode specifies the operator used to match the key and value in the filter. Valid values:
Note
When you use CompleteTime as the key, the IN operator is not supported. |
IN |
| Edition |
string |
No |
The edition. Valid values: BASIC and STANDARD. Default value: STANDARD. |
STANDARD |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Code |
string |
The response code. A value of 200 indicates success. |
200 |
| Message |
string |
The response message. If the request is successful, "successful" is returned. If an error occurs, the corresponding error message is returned. |
successful |
| PageNumber |
integer |
The page number. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
The number of entries per page. Valid values: 1 to 99. Default value: 10. |
10 |
| TotalCount |
integer |
The total number of backup jobs that meet the query conditions. |
8 |
| BackupJobs |
object |
||
| BackupJob |
array<object> |
The list of backup jobs that meet the query conditions. |
|
|
array<object> |
The details of the backup job. |
||
| Status |
string |
The status of the backup job. Valid values:
|
COMPLETE |
| ErrorMessage |
string |
The error message of the backup job. |
PARTIAL_COMPLETE |
| ActualItems |
integer |
The actual number of items in the backup job. This parameter is valid only when SourceType is set to ECS_FILE. |
6 |
| VaultId |
string |
The ID of the backup vault. |
v-0006******q |
| ActualBytes |
integer |
The actual amount of data in the backup job after deduplication. Unit: bytes. |
600 |
| CreateTime |
integer |
The creation time of the file system. This parameter is valid only when SourceType is set to NAS. The time is a UNIX timestamp. Unit: seconds. |
1607436917 |
| BackupType |
string |
The backup type. A value of COMPLETE indicates a full backup. |
COMPLETE |
| Prefix |
string |
The prefix of the backup objects. This parameter is valid only when SourceType is set to OSS. |
example/ |
| SourceType |
string |
The type of the data source. Valid values:
|
ECS_FILE |
| Options |
string |
Specifies whether to use Windows Volume Shadow Copy Service (VSS) to define the source path. This parameter is required only when SourceType is set to ECS_FILE.
|
{"UseVSS":false} |
| ClientId |
string |
The ID of the backup client. This parameter is valid only when SourceType is set to ECS_FILE. |
c-********************* |
| ItemsDone |
integer |
The number of backed-up items. This parameter is valid only when SourceType is set to ECS_FILE. |
8 |
| BytesTotal |
integer |
The total amount of data in the data source. Unit: bytes. |
1000 |
| Exclude |
string |
The paths that do not need to be backed up. All files in these paths are excluded from the backup. This parameter is required only when SourceType is set to ECS_FILE. The value can be up to 255 characters in length. |
["/var", "/proc"] |
| JobName |
string |
The name of the backup job. |
jobname |
| CompleteTime |
integer |
The completion time of the backup job. The time is a UNIX timestamp. Unit: seconds. |
1554347313 |
| CreatedTime |
integer |
The creation time of the backup job. The time is a UNIX timestamp. Unit: seconds. |
1554347313 |
| Bucket |
string |
The name of the OSS bucket that is backed up. This parameter is valid only when SourceType is set to OSS. |
hbr-backup-oss |
| Progress |
integer |
The backup progress. The value is the percentage multiplied by 100. |
10000 |
| SpeedLimit |
string |
The backup traffic throttling. This parameter is required only when SourceType is set to ECS_FILE. The format is
|
0:24:5120 |
| InstanceId |
string |
The ECS instance ID. This parameter is valid only when SourceType is set to NAS. |
i-********************* |
| PlanId |
string |
The ID of the backup plan. |
plan-20********35 |
| FileSystemId |
string |
The ID of the file system. This parameter is valid only when SourceType is set to NAS. |
005494 |
| StartTime |
integer |
The start time of the backup job. The time is a UNIX timestamp. Unit: seconds. |
1554347313 |
| UpdatedTime |
integer |
The update time of the backup job. The time is a UNIX timestamp. Unit: seconds. |
1554347313 |
| JobId |
string |
The ID of the backup job. |
job-000g********w7 |
| ItemsTotal |
integer |
The total number of items in the data source. This parameter is valid only when SourceType is set to ECS_FILE. |
10 |
| Include |
string |
The backup paths included in the backup job. |
["/home/alice/*.pdf", "/home/bob/*.txt"] |
| BytesDone |
integer |
The amount of data in the incremental backup. Unit: bytes. |
800 |
| Paths |
object |
||
| Path |
array |
The backup path. |
|
|
string |
The backup path. |
"/home" |
|
| Detail |
object |
The details of the ECS instance backup job. |
|
| DoCopy |
boolean |
Specifies whether cross-region replication is performed. |
true |
| DestinationNativeSnapshotId |
string |
The ID of the cross-region replication snapshot. |
s-****************** |
| DestinationNativeSnapshotProgress |
integer |
The progress of cross-region replication. |
85 |
| DestinationNativeSnapshotStatus |
string |
The status of cross-region replication. |
COMPLETE |
| DestinationRetention |
integer |
The retention period of the cross-region replication backup. |
30 |
| DestinationSnapshotId |
string |
The ID of the cross-region replication backup. |
s-****************** |
| DestinationNativeSnapshotErrorMessage |
string |
The error message for cross-region replication failure. |
ECS.CreatingSnapshot |
| NativeSnapshotId |
string |
The snapshot ID. |
s-****************** |
| DiskNativeSnapshotIdList |
object |
||
| DiskNativeSnapshotId |
array |
The mapping between snapshots and cloud disks. |
|
|
string |
The snapshot ID. |
s-****************** |
|
| InstanceInfos |
object |
The ECS instance information, 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 64-bit", "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 the 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 cross-account backup type. Valid values:
|
SELF_ACCOUNT |
| CrossAccountUserId |
integer |
The ID of the original account for the cross-account backup managed by the current account. |
158975xxxxx4625 |
| CrossAccountRoleName |
string |
The name of the role created in the RAM of the original account for the cross-account backup managed by the current account. |
BackupRole |
| Report |
object |
The job report. |
|
| TotalFiles |
string |
The list of all files. This field 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 generation status of the report. |
COMPLETE |
| Identifier |
string |
The cluster identifier for the container backup job. This field is returned only when SourceType is set to CONTAINER. If the cluster type is an Alibaba Cloud Container Service for Kubernetes cluster, the value is the Kubernetes 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 files that have been processed. |
9 |
| ActualFiles |
integer |
The actual number of files processed. |
8 |
| TriggerMode |
string |
The trigger mode of the backup job. |
MANUAL |
Examples
Success response
JSON format
{
"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": "MANUAL"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.