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.
Get a driveRestoreArtifactsBulkAdditionRequest object by its id, associated with a oneDriveForBusinessRestoreSession.
This API is available in the following national cloud deployments.
Global service |
US Government L4 |
US Government L5 (DOD) |
China operated by 21Vianet |
✅ |
❌ |
❌ |
❌ |
Permissions
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 permission |
Higher privileged permissions |
Delegated (work or school account) |
BackupRestore-Restore.Read.All |
Not available. |
Delegated (personal Microsoft account) |
Not supported. |
Not supported. |
Application |
BackupRestore-Restore.Read.All |
Not available. |
HTTP request
GET /solutions/backupRestore/oneDriveForBusinessRestoreSessions/{oneDriveForBusinessRestoreSessionId}/driveRestoreArtifactsBulkAdditionRequests/{driveRestoreArtifactsBulkAdditionRequestId}
Optional query parameters
This method doesn't support the OData query parameters to help customize the response.
Request body
Don't supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and a driveRestoreArtifactsBulkAdditionRequest object in the response body.
For a list of possible error responses, see Backup Storage API error responses.
Examples
Request
The following example shows a request.
GET https://graph.microsoft.com/beta/solutions/backupRestore/oneDriveForBusinessRestoreSessions/493635f0-b8c0-4c7f-bcb7-b20c85d97efe/driveRestoreArtifactsBulkAdditionRequests/e79d0a79-7210-4369-9177-6297f0555242
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Solutions.BackupRestore.OneDriveForBusinessRestoreSessions["{oneDriveForBusinessRestoreSession-id}"].DriveRestoreArtifactsBulkAdditionRequests["{driveRestoreArtifactsBulkAdditionRequest-id}"].GetAsync();
mgc-beta solutions backup-restore one-drive-for-business-restore-sessions drive-restore-artifacts-bulk-addition-requests get --one-drive-for-business-restore-session-id {oneDriveForBusinessRestoreSession-id} --drive-restore-artifacts-bulk-addition-request-id {driveRestoreArtifactsBulkAdditionRequest-id}
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
//other-imports
)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
driveRestoreArtifactsBulkAdditionRequests, err := graphClient.Solutions().BackupRestore().OneDriveForBusinessRestoreSessions().ByOneDriveForBusinessRestoreSessionId("oneDriveForBusinessRestoreSession-id").DriveRestoreArtifactsBulkAdditionRequests().ByDriveRestoreArtifactsBulkAdditionRequestId("driveRestoreArtifactsBulkAdditionRequest-id").Get(context.Background(), nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
DriveRestoreArtifactsBulkAdditionRequest result = graphClient.solutions().backupRestore().oneDriveForBusinessRestoreSessions().byOneDriveForBusinessRestoreSessionId("{oneDriveForBusinessRestoreSession-id}").driveRestoreArtifactsBulkAdditionRequests().byDriveRestoreArtifactsBulkAdditionRequestId("{driveRestoreArtifactsBulkAdditionRequest-id}").get();
const options = {
authProvider,
};
const client = Client.init(options);
let driveRestoreArtifactsBulkAdditionRequest = await client.api('/solutions/backupRestore/oneDriveForBusinessRestoreSessions/493635f0-b8c0-4c7f-bcb7-b20c85d97efe/driveRestoreArtifactsBulkAdditionRequests/e79d0a79-7210-4369-9177-6297f0555242')
.version('beta')
.get();
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$result = $graphServiceClient->solutions()->backupRestore()->oneDriveForBusinessRestoreSessions()->byOneDriveForBusinessRestoreSessionId('oneDriveForBusinessRestoreSession-id')->driveRestoreArtifactsBulkAdditionRequests()->byDriveRestoreArtifactsBulkAdditionRequestId('driveRestoreArtifactsBulkAdditionRequest-id')->get()->wait();
Import-Module Microsoft.Graph.Beta.BackupRestore
Get-MgBetaSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest -OneDriveForBusinessRestoreSessionId $oneDriveForBusinessRestoreSessionId -DriveRestoreArtifactsBulkAdditionRequestId $driveRestoreArtifactsBulkAdditionRequestId
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.solutions.backup_restore.one_drive_for_business_restore_sessions.by_one_drive_for_business_restore_session_id('oneDriveForBusinessRestoreSession-id').drive_restore_artifacts_bulk_addition_requests.by_drive_restore_artifacts_bulk_addition_request_id('driveRestoreArtifactsBulkAdditionRequest-id').get()
Response
The following example shows the response.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.driveRestoreArtifactsBulkAdditionRequest",
"drives": [],
"id": "e79d0a79-7210-4369-9177-6297f0555242",
"destinationType": "new",
"tags": "fastRestore",
"restorePointPreference": "latest",
"displayName": "ODB-BulkRestoreArtifacts",
"status": "active",
"createdDateTime": "2024-12-04T07:51:58.9045003Z",
"lastModifiedDateTime": "2024-12-04T07:51:58.9045003Z",
"protectionTimePeriod": {
"startDateTime": "2024-01-01T00:00:00Z",
"endDateTime": "2024-01-08T00:00:00Z"
},
"createdBy": {
"user": {
"identity": "6f707fc8-0250-4fd5-89b5-c0312bea7460"
}
},
"lastModifiedBy": {
"user": {
"identity": "6f707fc8-0250-4fd5-89b5-c0312bea7460"
}
}
}