Method: apprecovery.deploy
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
部署已建立的應用程式復原動作,並提供復原狀態「草稿」。請注意,這項操作會為所有目標使用者啟用復原動作,並將狀態變更為「有效」。
HTTP 要求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
packageName |
string
必要欄位。已部署復原動作的應用程式套件名稱。
|
appRecoveryId |
string (int64 format)
必要欄位。與要部署的應用程式復原動作相對應的 ID。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidpublisher
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eDeploy an existing app recovery action with DRAFT status, activating it for all targeted users and changing its status to ACTIVE.\u003c/p\u003e\n"],["\u003cp\u003eThe request is sent as an empty POST request to the specified URL, requiring package name and app recovery ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful deployment, the response body will be empty.\u003c/p\u003e\n"]]],["This document outlines the process for deploying a draft app recovery action via an HTTP POST request. The request targets a specific app and recovery action ID, provided as path parameters: `packageName` and `appRecoveryId`. The URL utilizes gRPC Transcoding. The request body must be empty. A successful deployment, indicated by an empty response body, activates the recovery action for all targeted users, changing its status to ACTIVE. Authorization requires the `androidpublisher` OAuth scope.\n"],null,["# Method: apprecovery.deploy\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDeploy an already created app recovery action with recovery status DRAFT. Note that this action activates the recovery action for all targeted users and changes its status to ACTIVE.\n\n### HTTP request\n\n`POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `packageName` | `string` Required. Package name of the app for which recovery action is deployed. |\n| `appRecoveryId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. ID corresponding to the app recovery action to deploy. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]