如需本資源的方法清單,請見本頁結尾。
資源表示法
可用來驗證服務帳戶憑證的憑證。
{ "kind": "androidenterprise#serviceAccountKey", "id": string, "type": string, "data": string, "publicData": string }
資源名稱 | 值 | 說明 | Notes |
---|---|---|---|
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 做為企業服務帳戶。