Skip to content

Latest commit

 

History

History
80 lines (70 loc) · 4.99 KB

File metadata and controls

80 lines (70 loc) · 4.99 KB
title driveProtectionUnit resource type
description Represents a protection unit associated with a OneDrive for Business protection policy.
author tushar20
ms.reviewer manikantsinghms
ms.localizationpriority medium
ms.subservice m365-backup-storage
doc_type resourcePageType
ms.date 05/31/2024

driveProtectionUnit resource type

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Represents a protection unit associated with a OneDrive for Business protection policy.

Inherits from protectionUnitBase.

Methods

Method Return type Description
List driveProtectionUnit collection Get a list of the driveProtectionUnit objects and their properties.
Update driveProtectionUnit Update the properties of a driveProtectionUnit object.

Properties

Property Type Description
backupRetentionPeriodInDays Int32 The retention period of the backup, in days. Inherited from protectionUnitBase.
billingPolicyId String The unique identifier of the billing policy assigned to the protection unit for cost allocation. Inherited from protectionUnitBase.
createdBy identitySet The identity of person who created the protection unit. Inherited from protectionUnitBase.
createdDateTime DateTimeOffset The time of creation of the protection unit. Inherited from protectionUnitBase.
directoryObjectId String ID of the directory object.
displayName String Display name of the directory object.
email String Email associated with the directory object.
error publicError Details of the error if the enablement/disablement of the protection unit fails. Inherited from protectionUnitBase.
id String Unique identifier of the protection policy associated with this protection unit.
lastModifiedBy identitySet The identity of person who last modified the protection unit. Inherited from protectionUnitBase.
lastModifiedDateTime DateTimeOffset The time of last modification of the protection unit. Inherited from protectionUnitBase.
policyId String Unique identifier of the protection policy associated with this protection unit. Inherited from protectionUnitBase.
protectionSources protectionSource Indicates the sources by which a protection unit is currently protected. A protection unit protected by multiple sources is indicated by comma-separated values. The possible values are: none, manual, dynamicRule, unknownFutureValue. Inherited from protectionUnitBase.
status protectionUnitStatus The individual enablement/disablement/removal status of the protection unit. Inherited from protectionUnitBase. The possible values are: protectRequested, protected, unprotectRequested, unprotected, removeRequested, unknownFutureValue, offboardRequested, offboarded, and cancelOffboardRequested. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: offboardRequested, offboarded, and cancelOffboardRequested.
offboardRequestedDateTime DateTimeOffset The time when protection unit offboard was requested. Inherited from protectionUnitBase.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.driveProtectionUnit",
  "backupRetentionPeriodInDays": "Int32",
  "billingPolicyId": "String",
  "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)",
  "offboardRequestedDateTime": "String (timestamp)",
  "policyId": "String",
  "protectionSources": "String",
  "status": "String"
}