The responseView specifies which subset of the Task will be returned.
By default responseView is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.
Authorization for FULL requires cloudtasks.tasks.fullViewGoogle IAM permission on the Task resource.
pageSize
integer
Maximum page size.
Fewer tasks than requested might be returned, even if more tasks exist; use nextPageToken in the response to determine if more tasks exist.
The maximum page size is 1000. If unspecified, the page size will be the maximum.
pageToken
string
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 nextPageToken returned from the previous call to tasks.list method.
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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-23 UTC."],[],[],null,["# Method: projects.locations.queues.tasks.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListTasksResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists the tasks in a queue.\n\nBy default, only the [BASIC](/tasks/docs/reference/rest/v2/projects.locations.queues.tasks#View.ENUM_VALUES.BASIC) view is retrieved due to performance considerations; [responseView](/tasks/docs/reference/rest/v2/projects.locations.queues.tasks/list#body.QUERY_PARAMETERS.response_view) controls the subset of information which is returned.\n\nThe tasks may be returned in any order. The ordering may change at any time.\n\n### HTTP request\n\n`GET https://cloudtasks.googleapis.com/v2/{parent=projects/*/locations/*/queues/*}/tasks`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for listing tasks using [tasks.list](/tasks/docs/reference/rest/v2/projects.locations.queues.tasks/list#google.cloud.tasks.v2.CloudTasks.ListTasks).\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/cloud-tasks`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]