keyCredential 资源类型

命名空间:microsoft.graph

重要

Microsoft Graph版本下的 /beta API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。

包含与应用程序或服务主体关联的密钥凭据。 application 和 servicePrincipal 实体的 keyCredentials 属性是 keyCredential 的集合

属性

属性 类型 说明
customKeyIdentifier Binary 自定义密钥标识符
displayName String 密钥的友好名称。 可选。
endDateTime DateTimeOffset 凭据过期的日期和时间。 DateTimeOffset 表示使用 ISO 8601 格式的日期和时间信息,并且始终处于 UTC 时间。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z
key 二进制 密钥凭据的值。 应为 Base64 编码的值。 仅对 $select 单个对象( GET applications/{applicationId}?$select=keyCredentials 即 或 GET servicePrincipals/{servicePrincipalId}?$select=keyCredentials)返回 ;否则,始终为 null
keyId GUID 密钥的唯一标识符。
startDateTime DateTimeOffset 凭据生效的日期和时间。时间戳类型表示使用 ISO 8601 格式的日期和时间信息,并且始终采用 UTC 时间。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z
type 字符串 密钥凭据的类型;例如,。 Symmetric``AsymmetricX509Cert
usage String 一个描述密钥的用途的字符串;例如, Verify

JSON 表示形式

下面是资源的 JSON 表示形式。

{
  "@odata.type": "#microsoft.graph.keyCredential",
  "customKeyIdentifier": "Binary",
  "displayName": "String",
  "endDateTime": "String (timestamp)",
  "key": "Binary",
  "keyId": "GUID",
  "startDateTime": "String (timestamp)",
  "type": "String",
  "usage": "String"
}