Method: projects.locations.jobs.taskGroups.tasks.list

Stay organized with collections Save and categorize content based on your preferences.

List Tasks associated with a job.

HTTP request

GET https://batch.googleapis.com/v1/{parent=projects/*/locations/*/jobs/*/taskGroups/*}/tasks

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Name of a TaskGroup from which Tasks are being requested. Pattern: "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"

Query parameters

Parameters
filter

string

Task filter, null filter matches all Tasks. Filter string should be of the format State=TaskStatus.State e.g. State=RUNNING

pageSize

integer

Page size.

pageToken

string

Page token.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

tasks.list Response.

JSON representation
{
  "tasks": [
    {
      object (Task)
    }
  ],
  "nextPageToken": string,
  "unreachable": [
    string
  ]
}
Fields
tasks[]

object (Task)

Tasks.

nextPageToken

string

Next page token.

unreachable[]

string

Locations that could not be reached.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.