protectionUnitBase resource type

Namespace: microsoft.graph

Represents a site, drive, or mailbox that's protected by a protection policy. All the protection units in a protection policy have same retention period by default.

This resource is an abstract type.

Methods

Method Return type Description
Get protectionUnitBase Read the properties and relationships of a protectionUnitBase object.

Properties

Property Type Description
id String The unique identifier of the protection unit.
policyId String The unique identifier of the protection policy based on which protection unit was created.
createdBy identitySet The identity of person who created the protection unit.
createdDateTime DateTimeOffset The time of creation of the protection unit.
error publicError Contains error details if an error occurred while creating a protection unit.
lastModifiedBy identitySet The identity of person who last modified the protection unit.
lastModifiedDateTime DateTimeOffset Timestamp of the last modification of this protection unit.
status protectionUnitStatus The status of the protection unit. The possible values are: protectRequested, protected, unprotectRequested, unprotected, removeRequested, unknownFutureValue.

protectionUnitStatus values

Member Description
protectRequested Protection of the unit was requested.
protected The protection unit is successfully enabled.
unprotectRequested Disabling protection of the unit was requested.
unprotected The protection unit is successfully disabled.
removeRequested A request to remove the protected unit from the policy was made.
unknownFutureValue Evolvable enumeration sentinel value. Don't use.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

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