driveProtectionUnit 资源类型

命名空间:microsoft.graph

重要

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

表示与OneDrive for Business保护策略关联的保护单元。

继承自 protectionUnitBase

方法

方法 返回类型 Description
List driveProtectionUnit 集合 获取 driveProtectionUnit 对象及其属性的列表。

属性

属性 类型 说明
createdBy identitySet 创建保护单元的人员的身份。 继承自 protectionUnitBase
createdDateTime DateTimeOffset 创建保护单元的时间。 继承自 protectionUnitBase
directoryObjectId String 目录对象的 ID。
displayName String 目录对象的显示名称。
email String 与目录对象关联的Email。
error publicError 如果保护单元的启用/禁用失败,则显示错误的详细信息。 继承自 protectionUnitBase
id String 与此保护单元关联的保护策略的唯一标识符。
lastModifiedBy identitySet 上次修改保护单元的人员的身份。 继承自 protectionUnitBase
lastModifiedDateTime DateTimeOffset 上次修改保护单元的时间。 继承自 protectionUnitBase
policyId String 与此保护单元关联的保护策略的唯一标识符。 继承自 protectionUnitBase
protectionSources protectionSource 指示当前保护单元所依据的源。 由多个源保护的保护单元由逗号分隔值指示。 可能的值包括 nonemanualdynamicRuleunknownFutureValue。 继承自 protectionUnitBase
status protectionUnitStatus 保护单元的单个启用/禁用/删除状态。 继承自 protectionUnitBase。 可能的值包括 protectRequestedprotectedunprotectRequestedunprotectedremoveRequestedunknownFutureValue

关系

无。

JSON 表示形式

以下 JSON 表示形式显示了资源类型。

{
  "@odata.type": "#microsoft.graph.driveProtectionUnit",
  "createdBy": {"@odata.type": "microsoft.graph.identitySet"},
  "createdDateTime": "String (timestamp)",
  "directoryObjectId": "String",
  "displayName": "String",
  "email": "String",
  "error": {"@odata.type": "microsoft.graph.publicError"},
  "id": "String (identifier)",
  "lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
  "lastModifiedDateTime": "String (timestamp)",
  "policyId": "String",
  "protectionSources": "String",
  "status": "String"
}