如需本資源的方法清單,請見本頁結尾。
資源表示法
可用來以服務帳戶進行驗證的憑證。{ "kind": "androidenterprise#serviceAccountKey", "id": string, "type": string, "data": string, "publicData": string }
資源名稱 | 價值 | 說明 | 附註 |
---|---|---|---|
data |
string |
私密金鑰憑證檔案的內文,採用字串格式。這只會在建立 ServiceAccountKey 時填入,且不會由 Google 儲存。 | |
id |
string |
這個 ServiceAccountKey 的不透明專屬 ID。由伺服器指派。 | |
kind |
string |
||
publicData |
string |
憑證檔案的公開金鑰資料。這是 X.509 憑證。如果您使用 googleCredentials 金鑰類型,這和可使用憑證檔案內的 X.509 憑證網址擷取的憑證相同。 |
|
type |
string |
產生的金鑰資料的檔案格式。 可接受的值為:
|
方法
- 刪除
- 移除並失效與這個企業相關聯的服務帳戶指定憑證。呼叫服務帳戶必須已透過呼叫 Enterprises.GetServiceAccount 的方式擷取,且必須已透過呼叫 Enterprises.SetAccount 將其設為企業服務帳戶。
- 插入
-
為與這個企業相關聯的服務帳戶產生新憑證。呼叫服務帳戶必須可透過呼叫 Enterprises.GetServiceAccount 來擷取,且必須已透過呼叫 Enterprises.SetAccount 將其設為企業服務帳戶。
您只能在要插入的資源中填入金鑰類型。 - list
- 列出與這個企業相關聯的服務帳戶所有有效憑證。系統只會傳回 ID 和金鑰類型。呼叫服務帳戶必須可透過呼叫 Enterprises.GetServiceAccount 擷取,且必須已透過呼叫 Enterprises.SetAccount 將其設為企業服務帳戶。