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"

方法

删除
移除与此企业关联的服务帐号的指定凭据,并使其失效。调用服务帐号必须是通过调用 Enterprises.GetServiceAccount 检索到的,并且必须通过调用 Enterprises.SetAccount 设置为企业服务帐号。
insert
为与此企业关联的服务帐号生成新凭据。调用方服务帐号必须通过调用 Enterprises.GetServiceAccount 进行检索,并且必须通过调用 Enterprises.SetAccount 设置为企业服务帐号。

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