為與這個企業相關聯的服務帳戶產生新的憑證。呼叫服務帳戶必須透過呼叫 Enterprises.GetServiceAccount 擷取,並且必須呼叫 Enterprises.SetAccount 做為企業服務帳戶。
在要插入的資源中,金鑰類型只能填入。
要求
HTTP 要求
POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccountKeys
參數
參數名稱 | 值 | 說明 |
---|---|---|
路徑參數 | ||
enterpriseId |
string |
企業的 ID。 |
授權
此要求需要以下範圍的授權:
範圍 |
---|
https://www.googleapis.com/auth/androidenterprise |
詳情請參閱驗證和授權頁面。
要求主體
在要求內容中,請提供具有以下屬性的 Serviceaccountkeys 資源:
資源名稱 | 值 | 說明 | Notes |
---|---|---|---|
必要屬性 | |||
type |
string |
產生的金鑰資料的檔案格式。 可接受的值如下:
|
回應
如果成功,此方法會在回應主體中傳回 Serviceaccountkeys 資源。