Method: providers.tasks.create
HTTP 要求
POST 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 要求標頭。
|
taskId |
string
必要欄位。任務 ID 不得重複,但不應是運送追蹤 ID。如要儲存貨件追蹤 ID,請使用 trackingId 欄位。請注意,多個工作可能會使用相同的 trackingId 。工作 ID 有下列限制:
|
回應主體
如果成功,回應主體會包含新建立的 Task
例項。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-08 (世界標準時間)。
[null,null,["上次更新時間:2024-11-08 (世界標準時間)。"],[[["Creates and returns a new `Task` object via a `POST` request to the specified URL."],["Requires a `provider` path parameter which should be set to your Google Cloud Project ID."],["Requires a unique `taskId` query parameter and optionally accepts a `header` for the Delivery API request."],["The request body and successful response body both contain an instance of `Task` object, detailed further in provided documentation links."]]],[]]