Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Contains details about protection policies applied to Microsoft 365 data in an organization. Protection policies are defined by the Global Admin (or the SharePoint Online Admin or Exchange Online Admin) and include what data to protect, when to protect it, and for what time period to retain the protected data for a single Microsoft 365 service.
Base type for sharePointProtectionPolicy, exchangeProtectionPolicy, and onedriveForBusinessProtectionPolicy.
Methods
Method | Return type | Description |
---|---|---|
List | protectionPolicyBase collection | Get a list of the protectionPolicyBase and their properties. |
Get | protectionPolicyBase | Read the properties and relationships of a protectionPolicyBase. |
Delete | None | Delete a protectionPolicyBase. |
Activate | protectionPolicyBase | Activate an inactive protection policy. |
Deactivate | protectionPolicyBase | Deactivate an active protection policy. |
Properties
Property | Type | Description |
---|---|---|
createdBy | identitySet | The identity of person who created the policy. |
createdDateTime | DateTimeOffset | The date and time when the policy was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z . |
displayName | String | The name of the policy to be created. |
id | String | The unique identifier of the protection rule associated with the policy. |
isEnabled | Boolean | Indicates whether the policy is enabled. |
lastModifiedBy | identitySet | The identity of the person who last modified the policy. |
lastModifiedDateTime | DateTimeOffset | The date and time when the policy was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z . |
protectionPolicyArtifactCount | protectionPolicyArtifactCount | The count of artifacts in the protection policy by status. Returned only on $select . |
retentionSettings | retentionSetting collection | Contains the retention setting details for the policy. |
status | protectionPolicyStatus | The aggregated status of the protection units associated with the policy. The possible values are: inactive , activeWithErrors , updating , active , unknownFutureValue . |
protectionPolicyStatus values
Member | Description |
---|---|
active | All units are protected. |
activeWithErrors | Some units are protected and others are unprotected. |
inactive | All units are unprotected. |
updating | Some or all units are in a protectRequested , unprotectRequested , or removeRequested state. |
unknownFutureValue | Evolvable enumeration sentinel value. Don't use. |
Relationships
None.
JSON representation
The following JSON representation shows the resource type.
{
"@odata.type": "#microsoft.graph.protectionPolicyBase",
"createdBy": {"@odata.type": "microsoft.graph.identitySet"},
"createdDateTime": "String (timestamp)",
"displayName": "String",
"id": "String (identifier)",
"isEnabled": "Boolean",
"lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
"lastModifiedDateTime": "String (timestamp)",
"protectionPolicyArtifactCount": {"@odata.type": "microsoft.graph.protectionPolicyArtifactCount"},
"retentionSettings": [{"@odata.type": "microsoft.graph.retentionSetting"}],
"status": "String"
}