Queries the information about one or more backup jobs that meet the specified conditions.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
hbr:DescribeBackupJobs2 | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageNumber | integer | No | The number of the page to return. Pages start from page 1. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Valid values: 1 to 99. Default value: 10. | 10 |
SourceType | string | Yes | The type of the data source. Valid values:
| ECS_FILE |
SortDirection | string | No | The order in which you want to sort the results. Valid values:
| DESCEND |
Filters | array<object> | No | The keys in the filter. | |
object | No | The filter. | ||
Key | string | No | The key in the filter. Valid values:
| VaultId |
Values | array | No | The variable values of the filter. | |
string | No | The value that you want to match in the filter. | ["v-*********************"] | |
Operator | string | No | The matching method. Default value: IN. This parameter specifies the operator that you want to use to match a key and a value in the filter. Valid values:
Note
If you specify the CompleteTime parameter as a key to query backup jobs, you cannot use the IN operator to perform a match.
| IN |
Response parameters
Examples
Sample success responses
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": [
""
]
},
"InstanceInfos": {
"test": "test",
"test2": 1
}
},
"InstanceName": "instancename",
"OtsDetail": {
"TableNames": {
"TableName": [
"[\"table1\", \"table2\", \"table3\"]"
]
}
},
"Speed": 500,
"TableName": "table1",
"CrossAccountType": "SELF_ACCOUNT",
"CrossAccountUserId": 0,
"CrossAccountRoleName": "BackupRole",
"Identifier": "c83**************************b76",
"DestSourceType": "OSS",
"DestDataSourceId": "ds-000cov4ufudxklj24zdk",
"DestDataSourceDetail": "{\\\"prefix\\\":\\\"/\\\"}",
"ChangeListPath": "{\"dataSourceId\": \"ds-123456789\", \"path\": \"/changelist\"}",
"FilesTotal": 10,
"FilesDone": 9,
"ActualFiles": 8
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-31 | The response structure of the API has changed | View Change Details |
2023-11-16 | The response structure of the API has changed | View Change Details |
2023-09-21 | The response structure of the API has changed | View Change Details |
2023-07-31 | The response structure of the API has changed | View Change Details |
2023-04-21 | The response structure of the API has changed | View Change Details |
2023-03-29 | The response structure of the API has changed | View Change Details |