SearchHistoricalSnapshots
Retrieves one or more historical backup snapshots that meet the specified conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:SearchHistoricalSnapshots |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceType |
string |
No |
The data source type. Valid values:
|
ECS_FILE |
| Query |
array |
No |
The query conditions. The following code provides an example of the Query parameter:
|
[ { "field": "VaultId", "value": "v-0003rf9m17pap3ltpqx5", "operation": "MATCH_TERM" }, { "field": "InstanceId", "value": "i-bp1i20zq2wuzdie9368m", "operation": "MATCH_TERM" }, { "field": "PlanId", "value": "plan-0005vkqhpesqgkd1iu4f", "operation": "MATCH_TERM" }, { "field": "CompleteTime", "value": 1626769913, "operation": "GREATER_THAN_OR_EQUAL" } ] |
|
any |
No |
The query conditions. The following code provides an example of the Query parameter:
|
[ { "field": "VaultId", "value": "v-0003rf9m17pap3ltpqx5", "operation": "MATCH_TERM" }, { "field": "InstanceId", "value": "i-bp1i20zq2wuzdie9368m", "operation": "MATCH_TERM" }, { "field": "PlanId", "value": "plan-0005vkqhpesqgkd1iu4f", "operation": "MATCH_TERM" }, { "field": "CompleteTime", "value": 1626769913, "operation": "GREATER_THAN_OR_EQUAL" } ] |
|
| Limit |
integer |
No |
The maximum number of entries to return for this query. If you only want to obtain the total number of entries without retrieving specific data, set Limit to 0. In this case, no entries are returned. |
10 |
| NextToken |
string |
No |
The token that is used to retrieve the next page of snapshots. |
caeba0bbb2be03f84eb48b699f0a**** |
| SortBy |
string |
No |
The field used for sorting. |
CreatedTime |
| Order |
string |
No |
The sort order. Default value: ASC. Valid values:
|
ASC |
| Edition |
string |
No |
The edition type. Valid values: BASIC and STANDARD. Default value: STANDARD. |
BASIC |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token that is used to retrieve the next page of snapshots. |
BE |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Limit |
integer |
The number of historical snapshots displayed on the current page. |
10 |
| Code |
string |
The return code. 200 indicates success. |
200 |
| Message |
string |
The return message. successful is returned for successful requests, and an error message is returned for failed requests. |
successful |
| TotalCount |
integer |
The total number of snapshots that meet the specified conditions. |
20 |
| Snapshots |
object |
||
| Snapshot |
array<object> |
The list of historical snapshots. |
|
|
array<object> |
|||
| Status |
string |
The status of the backup snapshot job. Valid values:
|
COMPLETE |
| SnapshotHash |
string |
The hash value of the snapshot. |
f2fe... |
| VaultId |
string |
The ID of the vault where the backup snapshots are stored. |
v-0003rf9m17pap3ltpqx5 |
| ActualItems |
integer |
The actual number of items in the snapshot. Note
This parameter is available only for file backup. |
6 |
| BackupType |
string |
The backup type. A value of COMPLETE indicates a full backup. |
COMPLETE |
| CreateTime |
integer |
The time when the file system was created. This parameter is valid only when SourceType is set to NAS. The time is a UNIX timestamp in seconds. |
1607436917 |
| ActualBytes |
integer |
The actual data size of the snapshot after deduplication. Unit: bytes. |
600 |
| SourceType |
string |
The data source type. Valid values:
|
ECS_FILE |
| Prefix |
string |
The backup prefix. This parameter is valid only when SourceType is set to OSS. |
example/ |
| ClientId |
string |
The backup client ID. This parameter is valid only when SourceType is set to ECS_FILE. |
c-********************* |
| BytesTotal |
integer |
The total data size of the data source. Unit: bytes. |
1000 |
| ItemsDone |
integer |
The number of backed-up items. Note
This parameter is available only for file backup. |
8 |
| CompleteTime |
integer |
The time when the backup snapshot was completed. The time is a UNIX timestamp in seconds. |
1554347313 |
| Retention |
integer |
The retention period of the backup snapshot in days. |
7 |
| CreatedTime |
integer |
The time when the backup snapshot was created. The time is a UNIX timestamp in seconds. |
1554347313 |
| Bucket |
string |
The OSS bucket name. This parameter is valid only when SourceType is set to OSS. |
hbr-backup-oss |
| ParentSnapshotHash |
string |
The hash value of the parent backup snapshot. |
f2fe.. |
| InstanceId |
string |
The ECS instance ID. This parameter is valid only when SourceType is set to ECS_FILE. |
i-********************* |
| FileSystemId |
string |
The file system ID. This parameter is valid only when SourceType is set to NAS. |
005494 |
| ErrorFile |
string |
The file that records backup failure information, including information about partially completed backups. |
Item Error Message C:\data\app\service.dat Open: open \\?\C:\data\app\service.dat: The process cannot access the file because it is being used by another process. |
| StartTime |
integer |
The start time of the snapshot. The time is a UNIX timestamp in seconds. |
1554347313 |
| UpdatedTime |
integer |
The time when the backup snapshot was updated. The time is a UNIX timestamp in seconds. |
1554347313 |
| SnapshotId |
string |
The backup snapshot ID. |
s-********************* |
| JobId |
string |
The backup job ID. |
v-********************* |
| Path |
string |
The path of the backed-up file. This parameter is valid only when SourceType is set to ECS_FILE. |
["/home"] |
| ItemsTotal |
integer |
The total number of items in the data source. Note
This parameter is available only for file backup. |
10 |
| BytesDone |
integer |
The data size of the incremental backup. Unit: bytes. |
800 |
| Paths |
object |
||
| Path |
array |
The list of backed-up file paths. |
"/home" |
|
string |
The path of the backed-up file. This parameter is valid only when SourceType is set to NAS. |
"/home" |
|
| InstanceName |
string |
The Tablestore instance name. |
instancename |
| TableName |
string |
The table name in the Tablestore instance. |
table2 |
| RangeStart |
integer |
The start time of the backup job. The time is a UNIX timestamp in milliseconds. |
1642492553038 |
| RangeEnd |
integer |
The end time of the backup job. The time is a UNIX timestamp in milliseconds. |
1642521709966 |
| ExpireTime |
integer |
The expiration time of the snapshot. The time is a UNIX timestamp in seconds. |
1640334062 |
| SourceSnapshotHash |
string |
The hash value of the snapshot before it was archived. |
qwer*** |
| SourceParentSnapshotHash |
string |
The hash value of the parent snapshot before it was archived. |
qwer*** |
| StorageClass |
string |
The storage class. Valid values:
|
STANDARD |
| ArchiveTime |
integer |
The time when the snapshot was archived. |
1640334062 |
| UseCommonNas |
boolean |
Indicates whether a local NAS file system is used. |
false |
| Include |
string |
The source paths included in the backup job. |
[\"/test/example_cn-huhehaote_3.txt\", \"/test/example_cn-huhehaote_9.txt\", \"/test/example_cn-huhehaote_5.txt\", \"/test/example_cn-huhehaote_1.txt\", \"/test/example_cn-huhehaote_7.txt\"] |
| Exclude |
string |
The source paths excluded from the backup job. |
[\"/test/example_cn-hangzhou_7.txt\", \"/test/example_cn-hangzhou_1.txt\", \"/test/example_cn-hangzhou_3.txt\", \"/test/example_cn-hangzhou_9.txt\", \"/test/example_cn-hangzhou_6.txt\"] |
| ProtectedDataSize |
integer |
The size of the protected source data. Unit: bytes. When SourceType is set to ECS_FILE, this parameter indicates the capacity of the protected cloud disks. |
42949672960 |
Examples
Success response
JSON format
{
"NextToken": "BE",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Success": true,
"Limit": 10,
"Code": "200",
"Message": "successful",
"TotalCount": 20,
"Snapshots": {
"Snapshot": [
{
"Status": "COMPLETE",
"SnapshotHash": "f2fe...",
"VaultId": "v-0003rf9m17pap3ltpqx5",
"ActualItems": 6,
"BackupType": "COMPLETE",
"CreateTime": 1607436917,
"ActualBytes": 600,
"SourceType": "ECS_FILE",
"Prefix": "example/",
"ClientId": "c-*********************",
"BytesTotal": 1000,
"ItemsDone": 8,
"CompleteTime": 1554347313,
"Retention": 7,
"CreatedTime": 1554347313,
"Bucket": "hbr-backup-oss",
"ParentSnapshotHash": "f2fe..",
"InstanceId": "i-*********************",
"FileSystemId": "005494",
"ErrorFile": "Item\tError Message C:\\data\\app\\service.dat\tOpen: open \\\\?\\C:\\data\\app\\service.dat: The process cannot access the file because it is being used by another process.",
"StartTime": 1554347313,
"UpdatedTime": 1554347313,
"SnapshotId": "s-*********************",
"JobId": "v-*********************",
"Path": "[\"/home\"]",
"ItemsTotal": 10,
"BytesDone": 800,
"Paths": {
"Path": [
"\"/home\""
]
},
"InstanceName": "instancename",
"TableName": "table2",
"RangeStart": 1642492553038,
"RangeEnd": 1642521709966,
"ExpireTime": 1640334062,
"SourceSnapshotHash": "qwer***",
"SourceParentSnapshotHash": "qwer***",
"StorageClass": "STANDARD",
"ArchiveTime": 1640334062,
"UseCommonNas": false,
"Include": "[\\\"/test/example_cn-huhehaote_3.txt\\\", \\\"/test/example_cn-huhehaote_9.txt\\\", \\\"/test/example_cn-huhehaote_5.txt\\\", \\\"/test/example_cn-huhehaote_1.txt\\\", \\\"/test/example_cn-huhehaote_7.txt\\\"]",
"Exclude": "[\\\"/test/example_cn-hangzhou_7.txt\\\", \\\"/test/example_cn-hangzhou_1.txt\\\", \\\"/test/example_cn-hangzhou_3.txt\\\", \\\"/test/example_cn-hangzhou_9.txt\\\", \\\"/test/example_cn-hangzhou_6.txt\\\"]",
"ProtectedDataSize": 42949672960
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.