keyCredential 资源类型
命名空间:microsoft.graph
包含与应用程序或服务主体关联的密钥凭据。 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 | 唯一标识符 (GUID) 的 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"
}
反馈
提交和查看相关反馈