Serviceaccountkeys

有关此类资源的方法列表,请参阅本页面的结尾部分。

资源表示形式

可用于以服务账号的身份进行身份验证的凭据。

{
  "kind": "androidenterprise#serviceAccountKey",
  "id": string,
  "type": string,
  "data": string,
  "publicData": string
}
属性名称 说明 备注
data string 私钥凭据文件的正文,采用字符串格式。仅在创建 ServiceAccountKey 时填充此字段,Google 不会存储它。
id string 此 ServiceAccountKey 的不透明唯一标识符。由服务器分配。
kind string
publicData string 凭据文件的公钥数据。这是 X.509 证书。如果您使用的是 googleCredentials 密钥类型,则此证书与可通过使用凭据文件中的 X.509 证书网址检索到的证书完全相同。
type string 生成的密钥数据的文件格式。

可接受的值包括:
  • googleCredentials
  • pkcs12

方法

delete
移除服务账号的指定凭据并使其失效 与此企业相关联。调用服务账号必须是 通过调用 Enterprises.GetServiceAccount 检索的 ID, 将其指定为企业服务账号。
insert
为与此关联的服务账号生成新凭据 企业。调用方服务账号必须通过调用 Enterprises.GetServiceAccount,并且必须设置为“enterprises” 服务账号。

资源中只应填充键的类型 已插入。
list
列出与此账号关联的服务账号的所有有效凭据 企业。仅返回 ID 和密钥类型。调用服务 必须先通过调用 Enterprises.GetServiceAccount 检索到 Google 账号 并且必须通过调用 Enterprises.SetAccount。