passwordCredential 资源类型
命名空间:microsoft.graph
重要
Microsoft Graph版本下的 /beta API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。
表示与应用程序或服务主体关联的密码凭据。 application 和 servicePrincipal 实体的 passwordCredentials 属性是 passwordCredential 对象 的集合。
重要
不支持使用 POST 或 PATCH 设置 passwordCredential 。 使用以下 addPassword 和 removePassword 方法更新应用程序或 servicePrincipal 的密码或密码:
属性
| 属性 | 类型 | 说明 |
|---|---|---|
| customKeyIdentifier | Binary | 请勿使用。 |
| displayName | String | 密码的友好名称。 可选。 |
| endDateTime | DateTimeOffset | 密码过期的日期和时间使用 ISO 8601 格式表示,并且始终处于 UTC 时间。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 可选。 |
| hint | String | 包含密码的前三个字符。 只读。 |
| keyId | Guid | 密码的唯一标识符。 |
| secretText | String | 只读;包含由 Azure AD生成的强密码,长度为 16-64 个字符。 生成的密码值仅在初始 POST 请求 addPassword 期间返回。 将来无法检索此密码。 |
| 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)"
}
反馈
提交和查看相关反馈