Getting OneDrive

You can get a resource representation of a specific OneDrive to explore and restore data.

Request

GET https://<hostname>:4443/v6/RestoreSessions/{restoreSessionId}/Organization/OneDrives/{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

restoreSessionId

string

Specifies the identification number of the restore session. For more information on how to get this parameter, see Getting Restore Sessions.

oneDriveId

string

Specifies the identification number of OneDrive. For more information on how to get this parameter, see 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

In the response body, the server returns a resource representation of the /RestoreSessions/{restoreSessionId}/Organization/OneDrives/{oneDriveId} resource. The response body contains the following properties:

Property

Type

Description

id

string

Specifies the ID of the backed-up organization OneDrive.

name

string

Specifies the name of the backed-up organization OneDrive.

url

string

Specifies a path to the the backed-up organization OneDrive.

_links

Dictionary of string [key] and Object [value]

Links to related resources (navigation property).

Example

The example returns a resource representation of the backed-up organization OneDrive with the ID 9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5 to explore and restore data.

Request:

GET https://abc.tech.local:4443/v6/RestoreSessions/9bd48e15-5138-4bbc-a030-e053ee2c311e/Organization/OneDrives/9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200 OK

 

Response Body:

{

 "id": "9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5",

 "name": "Administrator",

 "url": "http://server/personal/orgUser",

 "_links": {

   "self": {

     "href": "/v6/restoresessions/9bd48e15-5138-4bbc-a030-e053ee2c311e/organization/onedrives/9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5"

   },

   "folders": {

     "href": "/v6/restoresessions/9bd48e15-5138-4bbc-a030-e053ee2c311e/organization/onedrives/9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5/folders?parentId=null"

   },

   "allfolders": {

     "href": "/v6/restoresessions/9bd48e15-5138-4bbc-a030-e053ee2c311e/organization/onedrives/9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5/folders"

   },

   "documents": {

     "href": "/v6/restoresessions/9bd48e15-5138-4bbc-a030-e053ee2c311e/organization/onedrives/9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5/documents?parentId=null"

   },

   "alldocuments": {

     "href": "/v6/restoresessions/9bd48e15-5138-4bbc-a030-e053ee2c311e/organization/onedrives/9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5/documents"

   }

 }

}