Method: partners.customers.create
建立用於零接觸註冊機制的客戶。這個方法成功返回後,管理員和擁有者角色就可以呼叫 API 方法或使用零接觸註冊機制入口網站,管理裝置和 EMM 設定。客戶會收到一封電子郵件,歡迎他們採用零接觸註冊機制,並說明登入入口網站的方式。
HTTP 要求
POST https://androiddeviceprovisioning.googleapis.com/v1/{parent=partners/*}/customers
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。用來識別經銷商的父項資源 ID,格式為 partners/[PARTNER_ID] 。
|
要求主體
要求主體的資料會採用以下結構:
JSON 表示法 |
{
"customer": {
object (Company )
}
} |
欄位 |
customer |
object (Company )
必要欄位。要填入新客戶的公司資料。必須包含 companyName 的值,以及至少一個與 Google 帳戶相關聯的 owner_email 。companyId 和 name 的值必須為空白。
|
回應主體
如果成功,回應主體會包含新建立的 Company
例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidworkprovisioning
詳情請參閱 OAuth 2.0 總覽。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-29 (世界標準時間)。
[null,null,["上次更新時間:2024-08-29 (世界標準時間)。"],[[["This endpoint creates a new customer for zero-touch enrollment, enabling them to manage devices and EMM configurations via API or the zero-touch portal."],["The HTTP request is a `POST` to `https://androiddeviceprovisioning.googleapis.com/v1/{parent=partners/*}/customers`, using gRPC Transcoding syntax."],["The `parent` path parameter is required and identifies the reseller in the format `partners/[PARTNER_ID]`."],["The request body must include a `customer` object with the company name and at least one owner email associated with a Google Account."],["Successfully creating a customer returns a `Company` instance, and the operation requires the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope."]]],["This describes how to create a zero-touch enrollment customer using a POST request to `https://androiddeviceprovisioning.googleapis.com/v1/{parent=partners/*}/customers`. The `parent` path parameter specifies the reseller. The request body must include a `customer` object with a `companyName` and at least one `owner_email`. Upon success, a new `Company` instance is returned. Authorization requires the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope. The created customer can then manage devices and EMM configs.\n"]]