Requires authorization
Lists all non-deleted Tasks in a TaskQueue, whether or not they are currently leased, up to a maximum of 100. Try it now .
The retrieved tasks will not include the task payload. Deleted tasks (whose names remain unavailable for up to seven days) do not appear in this list. Tasks are returned in the same order they are stored on the queue. The developer's email address must be specified as a
user_email
in the
acl
element of
queue.yaml
.
Request
HTTP request
GET https://www.googleapis.com/taskqueue/v1beta2/projects/project/taskqueues/taskqueue/tasks
Parameters
Parameter name | Value | Description |
---|---|---|
Required parameters | ||
project
|
string
|
The project under which the queue lies. |
taskqueue
|
string
|
The id of the taskqueue to list tasks from. |
Authorization
This request requires authorization with at least one of the following scopes ( read more about authentication and authorization ).
Scope |
---|
https://www.googleapis.com/auth/taskqueue
|
https://www.googleapis.com/auth/cloud-taskqueue
|
https://www.googleapis.com/auth/taskqueue.consumer
|
https://www.googleapis.com/auth/cloud-taskqueue.consumer
|
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{ "kind": "taskqueues#tasks", "items": [ tasks Resource ] }
Property name | Value | Description | Notes |
---|---|---|---|
kind
|
string
|
The kind of object returned, a list of tasks. | |
items[]
|
list
|
The actual list of tasks currently active in the TaskQueue. |
Try it!
Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer .