passwordCredential 资源类型

命名空间:microsoft.graph

重要

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

表示与应用程序或服务主体关联的密码凭据。 应用程序和servicePrincipal entitites 的 passwordCredentials 属性是 passwordCredential 对象的集合。

重要

不支持使用 POST 或 PATCH 设置 passwordCredential 。 使用以下 addPassword 和 removePassword 方法更新应用程序或 servicePrincipal 的密码或机密:

属性

属性 类型 Description
customKeyIdentifier 二进制 请勿使用。
displayName String 密码的友好名称。 可选。
endDateTime DateTimeOffset 密码过期的日期和时间使用 ISO 8601 格式表示,并且始终以 UTC 时间表示。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 可选。
提示 String 包含密码的前三个字符。 只读。
keyId Guid 密码的唯一标识符。
secretText String 只读;包含由Microsoft Entra ID 生成的强密码,长度为 16-64 个字符。 生成的密码值仅在 向 addPassword 发出初始 POST 请求期间返回。 将来无法检索此密码。
startDateTime DateTimeOffset 密码生效的日期和时间。 时间戳类型表示采用 ISO 8601 格式的日期和时间信息,始终采用 UTC 时区。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 可选。

JSON 表示形式

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

{
  "customKeyIdentifier": "Binary",
  "displayName": "String",
  "endDateTime": "String (timestamp)",
  "hint": "String",
  "keyId": "Guid",
  "secretText": "String",
  "startDateTime": "String (timestamp)"
}