經過短暫延遲後,API 狀態會變更為「已啟用」。如果沒有看到
Android Device Provisioning Partner API,檢查貴機構是否已完成新手上路程序
進而享有零接觸註冊機制的好處請確認您是否針對
零接觸註冊機制和 Google API 控制台。詢問 Google 平台解決方案
諮詢顧問,確認您的 Google 帳戶有權存取 API。
步驟 4:連結服務帳戶
將服務帳戶與貴機構的零接觸註冊機制連結
帳戶授權服務帳戶可代您發出 API 呼叫
並根據貴機構的使命
價值觀和目標進行調整如要連結服務帳戶,請按照下列步驟操作:
[[["容易理解","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"]],["上次更新時間:2024-08-07 (世界標準時間)。"],[[["API calls to the zero-touch enrollment reseller API require authorization to protect your organization's data, and this is achieved by creating a service account, storing its JSON key file, enabling the API, and linking the account."],["A service account, representing an application rather than a user, is created in the Google API Console to call APIs, with a new project recommended for easier management and access."],["The JSON key file, which contains the private key, must be kept private and secure, and is used to authenticate API calls made by your service account, with a warning that these keys can become a security risk if they are not managed carefully."],["Before your app can use the API, it needs to be enabled within the API Console, which associates it with the current project and allows for monitoring, by searching for and enabling the *Android Device Provisioning Partner API*."],["Linking the service account with your organization's zero-touch enrollment account in the portal is necessary to authorize the service account to make API calls on behalf of your organization."]]],["To authorize API calls, first, create a service account in the Google API Console, generating and storing a JSON key file. Next, enable the *Android Device Provisioning Partner API* within the project. Finally, link the service account to your organization's zero-touch enrollment account via the portal, using the service account's email address. Use the `https://www.googleapis.com/auth/androidworkprovisioning` scope for OAuth 2.0 access tokens. This process allows the service account to make API calls on behalf of the organization.\n"]]