Cloud Backup API, gRPC: ResourceService.ListTasks
List tasks of resources.
gRPC request
rpc ListTasks (ListTasksRequest) returns (ListTasksResponse)
ListTasksRequest
{
"compute_instance_id": "string",
"page_size": "int64",
"page_token": "string"
}
Field |
Description |
compute_instance_id |
string Required field. Compute Cloud instance ID. |
page_size |
int64 Number of results per page. |
page_token |
string Token for the results page. |
ListTasksResponse
{
"tasks": [
{
"id": "int64",
"cancellable": "bool",
"policy_id": "string",
"type": "Type",
"progress": {
"current": "int64",
"total": "int64"
},
"status": "Status",
"enqueued_at": "google.protobuf.Timestamp",
"started_at": "google.protobuf.Timestamp",
"updated_at": "google.protobuf.Timestamp",
"completed_at": "google.protobuf.Timestamp",
"compute_instance_id": "string",
"result_code": "Code",
"error": "string"
}
],
"next_page_token": "string"
}
Field |
Description |
tasks[] |
Set of tasks parameters. |
next_page_token |
string Token for the next results page. |
Task
Field |
Description |
id |
int64 Task ID. |
cancellable |
bool Shows whether the task is cancellable. |
policy_id |
string Policy ID. |
type |
enum Type Type of the task.
|
progress |
Task progress. |
status |
enum Status Task status.
|
enqueued_at |
|
started_at |
|
updated_at |
|
completed_at |
|
compute_instance_id |
string Compute Cloud instance ID. |
result_code |
enum Code Task result code.
|
error |
string Task error message if task finished with not OK code |
Progress
Field |
Description |
current |
int64 |
total |
int64 |