Events
Mar 17, 11 PM - Mar 21, 11 PM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
Delete and unprotect all the artifacts protected by a dynamic rule. This action is only applicable to dynamic rules.
The following points apply when deleting a dynamic rule and unprotecting all artifacts it protects.
deleteRequested
status when this action is performed on a dynamic rule.dynamicRule
protection source. If the artifact is also protected by another protection source, it's only protected by that source afterward.deleteRequested
state.Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | BackupRestore-Configuration.ReadWrite.All | Not available. |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | BackupRestore-Configuration.ReadWrite.All | Not available. |
POST /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules/{driveProtectionRuleId}/deleteAndUnprotect
POST /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules/{mailboxProtectionRuleId}/deleteAndUnprotect
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this action returns a 202 Accepted
response code and a protectionRuleBase in the response body.
The following example shows how to delete a driveInclusionRule associated with a onedriveForBusinessProtectionPolicy and unprotect the units it protects.
The following example shows a request.
POST https://graph.microsoft.com/beta/solutions/backupRestore/oneDriveForBusinessProtectionPolicies/71633878-8321-4950-bfaf-ed285bdd1461/driveInclusionRules/61633878-8321-4950-bfaf-ed285bdd1461/deleteAndUnprotect
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": {
"@odata.type": "https://graph.microsoft.com/beta/$metadata#microsoft.graph.protectionRuleBase",
"id": "61633878-8321-4950-bfaf-ed285bdd1461",
"status": "deleteRequested",
"createdDateTime": "2025-01-15T15:07:44.3043505Z",
"lastModifiedDateTime": "2025-01-15T14:42:12.6779064Z",
"isAutoApplyEnabled": true,
"driveExpression": "(memberOf -any (group.id -in ['4e8e9b15-bfc8-40a2-aed0-3f65a22e2bd4']))",
"createdBy": {
"user": {
"identity": "8aaaaec3-5dcb-4b47-9ef9-0dda3e95b9f4"
}
},
"lastModifiedBy": {}
}
}
The following example shows how to delete a mailboxInclusionRule associated with an exchangeProtectionPolicy.
The following example shows a request.
POST https://graph.microsoft.com/beta/solutions/backupRestore/exchangeProtectionPolicies/6b0991b9-e7d4-4794-86fa-2a3f2a4e3177/mailboxInclusionRules/52147fb9-2682-47bc-a8f6-6c38c1ff498d/deleteAndUnprotect
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": {
"@odata.type": "https://graph.microsoft.com/beta/$metadata#microsoft.graph.protectionRuleBase",
"id": "52147fb9-2682-47bc-a8f6-6c38c1ff498d",
"status": "deleteRequested",
"createdDateTime": "2025-01-15T15:07:44.3043505Z",
"lastModifiedDateTime": "2025-01-15T14:42:12.6779064Z",
"isAutoApplyEnabled": true,
"driveExpression": "(memberOf -any (group.id -in ['4e8e9b15-bfc8-40a2-aed0-3f65a22e2bd4']))",
"createdBy": {
"user": {
"identity": "8aaaaec3-5dcb-4b47-9ef9-0dda3e95b9f4"
}
},
"lastModifiedBy": {},
"error": {}
}
}
Events
Mar 17, 11 PM - Mar 21, 11 PM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now