- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Lists the tasks in a queue.
By default, only the BASIC
view is retrieved due to performance considerations; responseView
controls the subset of information which is returned.
The tasks may be returned in any order. The ordering may change at any time.
HTTP request
GET https://cloudtasks.googleapis.com/v2/{parent=projects/*/locations/*/queues/*}/tasks
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The queue name. For example: Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
responseView |
The responseView specifies which subset of the By default responseView is Authorization for |
pageSize |
Maximum page size. Fewer tasks than requested might be returned, even if more tasks exist; use The maximum page size is 1000. If unspecified, the page size will be the maximum. |
pageToken |
A token identifying the page of results to return. To request the first page results, pageToken must be empty. To request the next page of results, pageToken must be the value of The page token is valid for only 2 hours. |
Request body
The request body must be empty.
Response body
Response message for listing tasks using tasks.list
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"tasks": [
{
object ( |
Fields | |
---|---|
tasks[] |
The list of tasks. |
nextPageToken |
A token to retrieve next page of results. To return the next page of results, call If the nextPageToken is empty, there are no more results. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-tasks
For more information, see the Authentication Overview.