sharePointProtectionPolicy resource type

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.

Represents a plan defined by the SharePoint Online admin to protect SharePoint Online, including what data to protect, when to protect it, and for what time period to retain the protected data. Currently, policies are supported only for SharePoint Online sites in the main geolocation only; multi-geo tenants aren't supported.

Inherits from protectionPolicyBase.

Methods

Method Return type Description
Create sharePointProtectionPolicy Create a new sharePointProtectionPolicy.
Update sharePointProtectionPolicy Update the properties of a sharePointProtectionPolicy.

Properties

Property Type Description
id String The unique identifier of the protection rule associated to the policy.
displayName String The name of the policy being created.
createdDateTime DateTimeOffset The time of creation of the policy.
createdBy identitySet The identity of person who created the policy.
lastModifiedBy identitySet The identity of person who modified the policy.
lastModifiedDateTime DateTimeOffset The timestamp of the last modification of the policy.
retentionSettings retentionSetting collection Retention settings for the policy.
status protectionPolicyStatus The status of the policy. The value is an aggregated status of the protection units. The possible values are: inactive, activeWithErrors, updating, active, unknownFutureValue.

protectionPolicyStatus values

Member Description
active All units are protected.
activeWithErrors Some units are protected while 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. Do not use.

Relationships

Relationship Type Description
siteInclusionRules siteProtectionRule collection The rules associated with the SharePoint Protection policy.
siteProtectionUnits siteProtectionUnit collection The protection units (sites) that are protected under the site protection policy.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.sharePointProtectionPolicy",
  "id": "String (identifier)",
  "displayName": "String",
  "status": "String",
  "createdDateTime": "String (timestamp)",
  "createdBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "lastModifiedDateTime": "String (timestamp)",
  "lastModifiedBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "retentionSettings": [
    {
      "@odata.type": "microsoft.graph.retentionSetting"
    }
  ]
}