passwordCredential 资源类型
命名空间:microsoft.graph
表示与应用程序或服务主体关联的密码凭据。 应用程序实体的 passwordCredentials 属性是 passwordCredential 对象的集合。
重要
不支持使用 POST 或 PATCH 设置 passwordCredential 属性。 使用以下 addPassword 和 removePassword 方法更新应用程序或 servicePrincipal 的密码或机密:
属性
属性 | 类型 | 说明 |
---|---|---|
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)"
}
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈