Method: providers.tasks.list
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
GET https://fleetengine.googleapis.com/v1/{parent=providers/*}/tasks
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。格式須為 providers/{provider} 。provider 必須是 Google Cloud 專案 ID。例如:sample-cloud-project 。
|
查詢參數
參數 |
header |
object (DeliveryRequestHeader )
選用設定。標準 Delivery API 要求標頭。
|
pageSize |
integer
選用設定。要傳回的工作數量上限。服務傳回的產品數量可能會少於這個值。如果未指定這個值,伺服器會決定要傳回的結果數量。
|
pageToken |
string
選用設定。接收自前一個 tasks.list 呼叫的網頁權杖。您可以提供此項目來擷取後續網頁。 進行分頁時,提供至 tasks.list 的所有其他參數須與提供網頁權杖的呼叫相符。
|
filter |
string
選用設定。列出工作時要套用的篩選器查詢。如需篩選器語法範例,請參閱 http://aip.dev/160。如未指定值,或篩選空白字串,則會傳回所有 Tasks。如需可供篩選的工作屬性相關資訊,請參閱「列出工作」。
|
回應主體
tasks.list
回應,包含一組符合 ListTasksRequest
中篩選條件的 Tasks。
如果成功,回應主體會含有以下結構的資料:
JSON 表示法 |
{
"tasks": [
{
object (Task )
}
],
"nextPageToken": string,
"totalSize": string
} |
欄位 |
tasks[] |
object (Task )
符合所要求篩選條件的 Tasks 組合。如未指定篩選器,要求會傳回所有工作。成功的回應也可以空白。如果回應空白,表示找不到符合要求的篩選條件的 Tasks。
|
nextPageToken |
string
在 ListTasksRequest 中傳遞這個權杖,即可繼續列出結果。如果傳回所有結果,則這個欄位會是空白字串,否則不會出現在回應中。
|
totalSize |
string (int64 format)
在所有網頁中,符合要求條件的工作總數。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-31 (世界標準時間)。"],[[["\u003cp\u003eRetrieves all \u003ccode\u003eTask\u003c/code\u003es that meet specified filtering criteria using a \u003ccode\u003eGET\u003c/code\u003e request.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering by various parameters such as \u003ccode\u003eheader\u003c/code\u003e, \u003ccode\u003epageSize\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, and \u003ccode\u003efilter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequest body should be empty, with response containing a list of \u003ccode\u003eTask\u003c/code\u003e objects, \u003ccode\u003enextPageToken\u003c/code\u003e, and \u003ccode\u003etotalSize\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUses gRPC Transcoding syntax for the request URL, with \u003ccode\u003eparent\u003c/code\u003e path parameter specifying the provider.\u003c/p\u003e\n"],["\u003cp\u003eIf successful, response includes an array of \u003ccode\u003eTask\u003c/code\u003e objects matching the filter, potentially empty if no tasks match.\u003c/p\u003e\n"]]],["This document details how to retrieve a list of `Task` resources using a `GET` request to the Fleet Engine API. The request URL requires a `parent` path parameter specifying the provider. Optional query parameters include `header`, `pageSize`, `pageToken`, and `filter` to refine the results. The request body must be empty. A successful response contains an array of `Task` objects, a `nextPageToken` for pagination, and `totalSize` indicating the total number of tasks.\n"],null,[]]