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 检索,并且必须通过调用 Enterprises.SetAccount 设置为企业服务帐号。
插入
为与此企业关联的服务帐号生成新凭据。调用服务帐号必须通过调用 Enterprises.GetServiceAccount 检索,并且必须通过调用 Enterprises.SetAccount 设置为企业服务帐号。

只有要插入的资源中的键类型才会填充。
list
列出与此企业关联的服务帐号的所有有效凭据。系统仅会返回 ID 和密钥类型。调用服务帐号必须已通过调用 Enterprises.GetServiceAccount 检索,并且必须通过调用 Enterprises.SetAccount 设置为企业服务帐号。