driveProtectionUnit resource type
Namespace: microsoft.graph
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. |
Properties
Property | Type | Description |
---|---|---|
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. |
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. |
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 . |
protectionUnitStatus values
Member | Description |
---|---|
protectRequested | Protection of the unit was requested. Applies when a policy is activated or new units are added to an active policy. |
protected | Protection was successfully enabled for the unit. |
unprotectRequested | A request was made to deactivate protection for the unit. |
unprotected | Protection was successfully disabled for the unit. |
removeRequested | A user requested removal of the protected unit from the policy. |
unknownFutureValue | Evolvable enumeration sentinel value. Do not use. |
Relationships
None.
JSON representation
The following JSON representation shows the resource type.
{
"@odata.type": "#microsoft.graph.driveProtectionUnit",
"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"
},
"directoryObjectId": "String",
"displayName": "String",
"email": "String"
}