為與這個企業相關聯的服務帳戶產生新憑證。呼叫服務帳戶必須可透過呼叫 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 資源並附上以下屬性:
資源名稱 | 價值 | 說明 | 附註 |
---|---|---|---|
必要屬性 | |||
type |
string |
產生的金鑰資料的檔案格式。 可接受的值為:
|
回覆
如果成功,這個方法會在回應主體中傳回 Serviceaccountkeys 資源。