Cloud Backup API, gRPC: BackupService.ListFiles
ListFiles of the backup.
gRPC request
rpc ListFiles (ListFilesRequest) returns (ListFilesResponse)
ListFilesRequest
{
"folderId": "string",
"backupId": "string",
"sourceId": "string"
}
Field |
Description |
folderId |
string Required field. Folder ID. |
backupId |
string Required field. Backup ID. |
sourceId |
string Empty source will list disks of the backup. |
ListFilesResponse
{
"files": [
{
"id": "string",
"parentId": "google.protobuf.StringValue",
"type": "Type",
"fullPath": "string",
"name": "string",
"size": "int64",
"actions": {
"restoreToDisk": "bool",
"goToLocation": "bool"
},
"modifiedAt": "google.protobuf.Timestamp"
}
]
}
Field |
Description |
files[] |
BackupFile
BackupFile represents a single unit of file or directory system inside the backup.
Field |
Description |
id |
string Required field. ID of the item. Should be used as source ID in case of listing. |
parentId |
Might be empty if this is root directory. |
type |
enum Type Required field. Type of the item.
|
fullPath |
string Required field. Absolute path of the item. |
name |
string Required field. Name of the directory / file. |
size |
int64 Size in bytes of the item. |
actions |
Required field. Actions that might be done on the object. |
modifiedAt |
Required field. |
Actions
Field |
Description |
restoreToDisk |
bool Allows to send request to restore item to disk |
goToLocation |
bool Allows to move to location by id. |