Queries the information about one or more backup snapshots 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:SearchHistoricalSnapshots | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SourceType | string | Yes | The type of the data source. Valid values:
| ECS_FILE |
Query | array | Yes | The query conditions. Example:
| |
any | Yes | The query conditions. Example:
| [ { "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 rows that you want the current query to return. To query only the number of matched rows without the need to return specific data, you can set the Limit parameter to | 10 |
NextToken | string | No | The token that is required to obtain the next page of backup snapshots. | caeba0bbb2be03f84eb48b699f0a**** |
SortBy | string | No | The field that is used to sort data. | CreatedTime |
Order | string | No | The ordering mode. Valid values:
| ASC |
Response parameters
Examples
Sample success responses
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:\\Program Files (x86)\\Symantec\\Symantec Endpoint Protection\\14.3.558.0000.105\\Bin\\service.dat\tOpen: open \\\\?\\C:\\Program Files (x86)\\Symantec\\Symantec Endpoint Protection\\14.3.558.0000.105\\Bin\\service.dat: The process cannot access the file because it is being used by another process. C:\\ProgramData\\McAfee\\Agent\\data\\InstallerFiles\\172e8a3b04b7ab0fd0215f4fb7707e3744b37d83b6743b3eacb94447c74dc9af_contrib.ini\tOpen: open \\\\?\\C:\\ProgramData\\McAfee\\Agent\\data\\InstallerFiles\\172e8a3b04b7ab0fd0215f4fb7707e3744b37d83b6743b3eacb94447c74dc9af_contrib.ini: Access is denied.",
"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\\\"]"
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-01-05 | The request parameters of the API has changed | View Change Details |
2023-07-18 | 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 |