- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
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 | 
 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 | 
 Task filter, null filter matches all Tasks. Filter string should be of the format State=TaskStatus.State e.g. State=RUNNING | 
| pageSize | 
 Page size. | 
| pageToken | 
 Page token. | 
Request body
The request body must be empty.
Response body
tasks.list Response.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "tasks": [
    {
      object ( | 
| Fields | |
|---|---|
| tasks[] | 
 Tasks. | 
| nextPageToken | 
 Next page token. | 
| unreachable[] | 
 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.