如需本資源的方法清單,請見本頁結尾。
資源表示法
可用來以服務帳戶身分進行驗證的憑證。{
"kind": "androidenterprise#serviceAccountKey",
"id": string,
"type": string,
"data": string,
"publicData": string
}| 屬性名稱 | 值 | 說明 | 附註 |
|---|---|---|---|
data |
string |
私密金鑰憑證檔案的主體,格式為字串。只有在建立 ServiceAccountKey 時才會填入這個欄位,Google 不會儲存這個欄位。如果 type 為「pkcs12」,則 data 欄位的內容會採用 Base64 編碼,且密碼為「notasecret」。 |
|
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 設為企業服務帳戶。