Skip to content

Commit 6164cc5

Browse files
authored
Merge pull request #26247 from microsoftgraph/users/vidula-verma/UpdatingBulkRestoreDoc
Udating documentation of bulk Restore with
2 parents 2b7c172 + 6fe2653 commit 6164cc5

12 files changed

+117
-4
lines changed

api-reference/beta/api/driverestoreartifactsbulkadditionrequest-delete.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Don't supply a request body for this method.
5353

5454
If successful, this method returns a `204 No Content` response code.
5555

56+
For a list of possible error responses, see [Backup Storage API error responses](/graph/backup-storage-error-codes).
57+
5658
## Examples
5759

5860
### Request

api-reference/beta/api/driverestoreartifactsbulkadditionrequest-get.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Don't supply a request body for this method.
5757

5858
If successful, this method returns a `200 OK` response code and a [driveRestoreArtifactsBulkAdditionRequest](../resources/driverestoreartifactsbulkadditionrequest.md) object in the response body.
5959

60+
For a list of possible error responses, see [Backup Storage API error responses](/graph/backup-storage-error-codes).
61+
6062
## Examples
6163

6264
### Request

api-reference/beta/api/exchangerestoresession-post-mailboxrestoreartifactsbulkadditionrequests.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ Namespace: microsoft.graph
1616

1717
Create a new [mailboxRestoreArtifactsBulkAdditionRequest](../resources/mailboxrestoreartifactsbulkadditionrequest.md) object associated with an [exchangeRestoreSession](../resources/exchangerestoresession.md).
1818

19-
The initial status upon creation of the restore session is `active`. When all the mailboxes are added to the corresponding Exchange restore session and the restore session is activated, the status becomes `completed`. If any failures are encountered during resource resolution, the status of the restore session becomes `completedWithErrors`.
19+
The following steps describe how to create and manage an **exchangeRestoreSession** with bulk artifact additions:
20+
21+
1. Create a new [exchangeRestoreSession](../resources/exchangerestoresession.md) with empty payload.
22+
1. Create a new [mailboxRestoreArtifactsBulkAdditionRequest](../resources/mailboxrestoreartifactsbulkadditionrequest.md) object associated with an [exchangeRestoreSession](../resources/exchangerestoresession.md).
23+
1. Get the status of the [mailboxRestoreArtifactsBulkAdditionRequest](../resources/mailboxrestoreartifactsbulkadditionrequest.md) for the Exchange restore session. The initial status upon creation is `active` and remains in this state until the [exchangeRestoreSession](../resources/exchangerestoresession.md) is activated.
24+
1. Activate the [exchangeRestoreSession](../resources/exchangerestoresession.md) created in the first step.
25+
1. Monitor the status of the [mailboxRestoreArtifactsBulkAdditionRequest](../resources/mailboxrestoreartifactsbulkadditionrequest.md). When all the emails are added to the corresponding [exchangeRestoreSession](../resources/exchangerestoresession.md), the status of the [mailboxRestoreArtifactsBulkAdditionRequest](../resources/mailboxrestoreartifactsbulkadditionrequest.md) changes to `completed`. If any failures occur during resource resolution, the status changes to `completedWithErrors`.
2026

2127
[!INCLUDE [national-cloud-support](../../includes/global-only.md)]
2228

@@ -52,10 +58,19 @@ POST /solutions/backupRestore/exchangeRestoreSessions/{exchangeRestoreSessionId}
5258

5359
In the request body, supply a JSON representation of the [mailboxRestoreArtifactsBulkAdditionRequest](../resources/mailboxrestoreartifactsbulkadditionrequest.md) object.
5460

61+
You can specify the following properties when you create a **mailboxRestoreArtifactsBulkAdditionRequest** object.
62+
63+
|Property|Type|Description|
64+
|:---|:---|:---|
65+
|directoryObjectIds|String collection|The list of directory object IDs. Optional.|
66+
|mailboxes|String collection|The list of email addresses. Optional.|
67+
5568
## Response
5669

5770
If successful, this method returns a `201 Created` response code and a [mailboxRestoreArtifactsBulkAdditionRequest](../resources/mailboxrestoreartifactsbulkadditionrequest.md) object in the response body.
5871

72+
For a list of possible error responses, see [Backup Storage API error responses](/graph/backup-storage-error-codes).
73+
5974
## Examples
6075

6176
### Request

api-reference/beta/api/mailboxrestoreartifactsbulkadditionrequest-delete.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Don't supply a request body for this method.
5353

5454
If successful, this method returns a `204 No Content` response code.
5555

56+
For a list of possible error responses, see [Backup Storage API error responses](/graph/backup-storage-error-codes).
57+
5658
## Examples
5759

5860
### Request

api-reference/beta/api/mailboxrestoreartifactsbulkadditionrequest-get.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Don't supply a request body for this method.
5757

5858
If successful, this method returns a `200 OK` response code and a [mailboxRestoreArtifactsBulkAdditionRequest](../resources/mailboxrestoreartifactsbulkadditionrequest.md) object in the response body.
5959

60+
For a list of possible error responses, see [Backup Storage API error responses](/graph/backup-storage-error-codes).
61+
6062
## Examples
6163

6264
### Request

api-reference/beta/api/onedriveforbusinessrestoresession-post-driverestoreartifactsbulkadditionrequests.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ Namespace: microsoft.graph
1616

1717
Create a [driveRestoreArtifactsBulkAdditionRequest](../resources/driverestoreartifactsbulkadditionrequest.md) object associated with a [oneDriveForBusinessRestoreSession](../resources/onedriveforbusinessrestoresession.md).
1818

19-
The initial status upon creation of the restore session is `active`. When all the drives are added to the corresponding OneDrive restore session and the restore session is activated, the status becomes `completed`. If any failures are encountered during resource resolution, the status of the restore session becomes `completedWithErrors`.
19+
The following steps describe how to create and manage a **oneDriveForBusinessRestoreSession** with bulk artifact additions.
20+
21+
1. Create a new [oneDriveForBusinessRestoreSession](../resources/onedriveforbusinessrestoresession.md) with empty payload.
22+
1. Create a new [driveRestoreArtifactsBulkAdditionRequest](../resources/driverestoreartifactsbulkadditionrequest.md) object associated with a [oneDriveForBusinessRestoreSession](../resources/onedriveforbusinessrestoresession.md).
23+
1. Get the status of the [driveRestoreArtifactsBulkAdditionRequest](../resources/driverestoreartifactsbulkadditionrequest.md) for the OneDrive for work or school restore session. The initial status upon creation is `active` and remains in this state until the [oneDriveForBusinessRestoreSession](../resources/onedriveforbusinessrestoresession.md) is activated.
24+
1. Activate the [oneDriveForBusinessRestoreSession](../resources/onedriveforbusinessrestoresession.md) created in the first step.
25+
1. Monitor the status of the [driveRestoreArtifactsBulkAdditionRequest](../resources/driverestoreartifactsbulkadditionrequest.md). When all the drives are added to the corresponding [oneDriveForBusinessRestoreSession](../resources/onedriveforbusinessrestoresession.md), the status of the [driveRestoreArtifactsBulkAdditionRequest](../resources/driverestoreartifactsbulkadditionrequest.md) changes to `completed`. If any failures occur during resource resolution, the status changes to `completedWithErrors`.
2026

2127
[!INCLUDE [national-cloud-support](../../includes/global-only.md)]
2228

@@ -52,10 +58,19 @@ POST /solutions/backupRestore/oneDriveForBusinessRestoreSessions/{oneDriveForBus
5258

5359
In the request body, supply a JSON representation of the [driveRestoreArtifactsBulkAdditionRequest](../resources/driverestoreartifactsbulkadditionrequest.md) object.
5460

61+
You can specify the following properties when you create a **driveRestoreArtifactsBulkAdditionRequest** object.
62+
63+
|Property|Type|Description|
64+
|:---|:---|:---|
65+
|directoryObjectIds|String collection|The list of directory object IDs. Optional.|
66+
|drives|String collection|The list of OneDrive for work or school email addresses. Optional.|
67+
5568
## Response
5669

5770
If successful, this method returns a `201 Created` response code and a [driveRestoreArtifactsBulkAdditionRequest](../resources/driverestoreartifactsbulkadditionrequest.md) object in the response body.
5871

72+
For a list of possible error responses, see [Backup Storage API error responses](/graph/backup-storage-error-codes).
73+
5974
## Examples
6075

6176
### Request

api-reference/beta/api/sharepointrestoresession-post-siterestoreartifactsbulkadditionrequests.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ Namespace: microsoft.graph
1616

1717
Create a new [siteRestoreArtifactsBulkAdditionRequest](../resources/siterestoreartifactsbulkadditionrequest.md) object associated with a [sharePointRestoreSession](../resources/sharepointrestoresession.md).
1818

19-
The initial status upon creation of the restore session is `active`. When all the sites are added to the corresponding SharePoint restore session and the restore session is activated, the status becomes `completed`. If any failures are encountered during resource resolution, the status of the restore session becomes `completedWithErrors`.
19+
The following steps describe how to create and manage a **sharePointRestoreSession** with bulk artifact additions:
20+
21+
1. Create a new [sharePointRestoreSession](../resources/sharepointrestoresession.md) with empty payload.
22+
1. Create a new [siteRestoreArtifactsBulkAdditionRequest](../resources/siterestoreartifactsbulkadditionrequest.md) object associated with a [sharePointRestoreSession](../resources/sharepointrestoresession.md).
23+
1. Get the status of the [siteRestoreArtifactsBulkAdditionRequest](../resources/siterestoreartifactsbulkadditionrequest.md) for the SharePoint restore session. The initial status upon creation is `active` and remains in this state until the [sharePointRestoreSession](../resources/sharepointrestoresession.md) is activated.
24+
1. Activate the [sharePointRestoreSession](../resources/sharepointrestoresession.md) created in the first step.
25+
1. Monitor the status of the [siteRestoreArtifactsBulkAdditionRequest](../resources/siterestoreartifactsbulkadditionrequest.md). When all the sites are added to the corresponding [sharePointRestoreSession](../resources/sharepointrestoresession.md), the status of the [siteRestoreArtifactsBulkAdditionRequest](../resources/siterestoreartifactsbulkadditionrequest.md) changes to `completed`. If any failures occur during resource resolution, the status changes to `completedWithErrors`.
2026

2127
[!INCLUDE [national-cloud-support](../../includes/global-only.md)]
2228

@@ -52,10 +58,19 @@ POST /solutions/backupRestore/sharePointRestoreSessions/{sharePointRestoreSessio
5258

5359
In the request body, supply a JSON representation of the [siteRestoreArtifactsBulkAdditionRequest](../resources/siterestoreartifactsbulkadditionrequest.md) object.
5460

61+
You can specify the following properties when you create a **siteRestoreArtifactsBulkAdditionRequest** object.
62+
63+
|Property|Type|Description|
64+
|:---|:---|:---|
65+
|siteIds|String collection|The list of SharePoint site IDs. Optional.|
66+
|siteWebUrls|String collection|The list of SharePoint site URLs. Optional.|
67+
5568
## Response
5669

5770
If successful, this method returns a `201 Created` response code and a [siteRestoreArtifactsBulkAdditionRequest](../resources/siterestoreartifactsbulkadditionrequest.md) object in the response body.
5871

72+
For a list of possible error responses, see [Backup Storage API error responses](/graph/backup-storage-error-codes).
73+
5974
## Examples
6075

6176
### Request

api-reference/beta/api/siterestoreartifactsbulkadditionrequest-delete.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Don't supply a request body for this method.
5353

5454
If successful, this method returns a `204 No Content` response code.
5555

56+
For a list of possible error responses, see [Backup Storage API error responses](/graph/backup-storage-error-codes).
57+
5658
## Examples
5759

5860
### Request

api-reference/beta/api/siterestoreartifactsbulkadditionrequest-get.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Don't supply a request body for this method.
5757

5858
If successful, this method returns a `200 OK` response code and a [siteRestoreArtifactsBulkAdditionRequest](../resources/siterestoreartifactsbulkadditionrequest.md) object in the response body.
5959

60+
For a list of possible error responses, see [Backup Storage API error responses](/graph/backup-storage-error-codes).
61+
6062
## Examples
6163

6264
### Request
@@ -148,7 +150,7 @@ Content-Type: application/json
148150
},
149151
"error": {
150152
"code": "BulkRestoreArtifactsNotFound",
151-
"message": "Errors while resolving restore artifacts",
153+
"message": "Bulk Restore Artifacts not found",
152154
"details": [
153155
{
154156
"code": "SiteUrlNotFound",

api-reference/beta/resources/restoreartifactsbulkrequestbase.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ An abstract type that represents a bulk request associated with one of the resto
1919

2020
Base type for [siteRestoreArtifactsBulkAdditionRequests](../resources/siterestoreartifactsbulkadditionrequest.md), [mailboxRestoreArtifactsBulkAdditionRequests](../resources/mailboxrestoreartifactsbulkadditionrequest.md), and [driveRestoreArtifactsBulkAdditionRequests](../resources/driverestoreartifactsbulkadditionrequest.md).
2121

22+
The following points apply to bulk addition requests for restoring artifacts:
23+
24+
- Currently, only one bulk addition job can be processed per restore session.
25+
- The limit for the number of sites or users in a bulk request is 10,000.
26+
- Patch operations aren't supported for bulk restore sessions.
27+
- In a single restore session, you can't add restore artifacts using both manual and bulk addition methods simultaneously.
28+
2229
Inherits from [entity](../resources/entity.md).
2330

2431
## Properties

0 commit comments

Comments
 (0)