Cloud Backup API, REST: Resource.listTasks
List tasks of resources.
HTTP request
GET https://backup.api.cloud.yandex.net/backup/v1/resources/{computeInstanceId}/tasks
Path parameters
Parameter | Description |
---|---|
computeInstanceId | Required. Compute Cloud instance ID. The maximum string length in characters is 50. |
Query parameters
Parameter | Description |
---|---|
pageSize | Number of results per page. The maximum value is 1000. |
pageToken | Token for the results page. The maximum string length in characters is 100. |
Response
HTTP Code: 200 - OK
{
"tasks": [
{
"id": "string",
"cancellable": true,
"policyId": "string",
"type": "string",
"progress": {
"current": "string",
"total": "string"
},
"status": "string",
"enqueuedAt": "string",
"startedAt": "string",
"updatedAt": "string",
"completedAt": "string",
"computeInstanceId": "string",
"resultCode": "string"
}
],
"nextPageToken": "string"
}
Field | Description |
---|---|
tasks[] | object Set of tasks parameters. |
tasks[]. id |
string (int64) Task ID. |
tasks[]. cancellable |
boolean (boolean) Shows whether the task is cancellable. Note: task cancellation is not supported yet. |
tasks[]. policyId |
string Policy ID. |
tasks[]. type |
string Type of the task. |
tasks[]. progress |
object Task progress. |
tasks[]. progress. current |
string (int64) |
tasks[]. progress. total |
string (int64) |
tasks[]. status |
string Task status. Status of task. |
tasks[]. enqueuedAt |
string (date-time) String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
tasks[]. startedAt |
string (date-time) String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
tasks[]. updatedAt |
string (date-time) String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
tasks[]. completedAt |
string (date-time) String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
tasks[]. computeInstanceId |
string Compute Cloud instance ID. |
tasks[]. resultCode |
string Task result code. Result code of task |
nextPageToken | string Token for the next results page. |