Cloud Backup API, gRPC: ResourceService.ListTasks
List tasks of resources.
gRPC request
rpc ListTasks (ListTasksRequest) returns (ListTasksResponse)
ListTasksRequest
{
"computeInstanceId": "string",
"pageSize": "int64",
"pageToken": "string"
}
Field |
Description |
computeInstanceId |
string Required field. Compute Cloud instance ID. |
pageSize |
int64 Number of results per page. |
pageToken |
string Token for the results page. |
ListTasksResponse
{
"tasks": [
{
"id": "int64",
"cancellable": "bool",
"policyId": "string",
"type": "Type",
"progress": {
"current": "int64",
"total": "int64"
},
"status": "Status",
"enqueuedAt": "google.protobuf.Timestamp",
"startedAt": "google.protobuf.Timestamp",
"updatedAt": "google.protobuf.Timestamp",
"completedAt": "google.protobuf.Timestamp",
"computeInstanceId": "string",
"resultCode": "Code",
"error": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
tasks[] |
Set of tasks parameters. |
nextPageToken |
string Token for the next results page. |
Task
Field |
Description |
id |
int64 Task ID. |
cancellable |
bool Shows whether the task is cancellable. |
policyId |
string Policy ID. |
type |
enum Type Type of the task.
|
progress |
Task progress. |
status |
enum Status Task status.
|
enqueuedAt |
|
startedAt |
|
updatedAt |
|
completedAt |
|
computeInstanceId |
string Compute Cloud instance ID. |
resultCode |
enum Code Task result code.
|
error |
string Task error message if task finished with not OK code |
Progress
Field |
Description |
current |
int64 |
total |
int64 |