Getting OneDrive Data by Repository and OneDrive ID

You can get a backed-up or archived OneDrive with the specified ID whose data is stored in a backup repository with the specified ID.

Request

GET https://<hostname>:4443/v6/BackupRepositories/{repositoryId}/OneDriveData/{oneDriveId}

Request Headers

The request header must contain an authorization token of the current session.

Request Parameters

The following parameters must be specified in the URL of the request:

Parameter

Type

Description

repositoryId

string

Specifies the identification number of the backup repository. For more information on how to get this parameter, see Getting Backup Repositories.

oneDriveId

string

Specifies the identification number of OneDrive. For more information on how to get this parameter, see Getting OneDrive Data by Repository ID or Getting OneDrives.

Request Body

None.

Response

The server returns the following response to the client.

Response Codes

A successfully completed operation returns a response code 200 OK.

Response Headers

The response to this request contains the following headers. The response may also include additional standard HTTPS headers.

Header

Description

Content-length

The length of the response body.

Content-type

The media type and syntax of the response body message: application/json; charset=utf-8

Response Body

The response body contains the following properties:

Property

Type

Description

id

string

Specifies the OneDrive ID.

title

string

Specifies the OneDrive title.

url

string

Specifies the OneDrive path.

backedUpTime

UTC

Specifies date and time when the OneDrive was backed up.

organizationId

string

Specifies the backed-up organization ID.

_links

Dictionary of string [key] and Object [value]

Links to related resources (navigation property).

Example

The example returns a resource representation of the OneDrive with the ID 18113f79-5344-43bf-962c-44dfdd4160db70e7bee3-08ea-48ac-ba1a-16863f06e1e2.

Request:

GET https://abc.tech.local:4443/v6/BackupRepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265/OneDriveData/18113f79-5344-43bf-962c-44dfdd4160db70e7bee3-08ea-48ac-ba1a-16863f06e1e2

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200 OK

 

Response Body:

{

 "id": "18113f79-5344-43bf-962c-44dfdd4160db70e7bee3-08ea-48ac-ba1a-16863f06e1e2",

 "title": "User 1",

 "url": "https://abc-my.sharepoint.com/personal/user1_abc_onmicrosoft_com",

 "backedUpTime": "2022-01-28T16:05:31.4907255Z",

 "organizationId": "abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000",

 "_links": {

   "self": {

     "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265/onedrivedata/18113f79-5344-43bf-962c-44dfdd4160db70e7bee3-08ea-48ac-ba1a-16863f06e1e2"

   },

   "organization": {

     "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265/organizationdata/abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000"

   },

   "backupRepository": {

     "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265"

   }

 }

}