Getting OneDrives
You can get a resource representation of OneDrives whose backed-up data was retrieved from an archive by a retrieval job with the specified ID.
Request
GET https://<hostname>:4443/v6/DataRetrievals/{dataRetrievalId}/onedrives |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameter must be specified in the URL of the request:
Parameter | Type | Description |
---|---|---|
dataRetrievalId | string | Specifies the identification number of the retrieval job. For more information on how to get this parameter, see Getting Retrieval Jobs. |
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 /DataRetrievals/{dataRetrievalId}/onedrives resource. The response body contains the following properties:
Property | Type | Description |
---|---|---|
siteId | string | Specifies the site collection ID. |
webId | string | Specifies the OneDrive ID. |
title | string | Specifies the OneDrive title. |
url | string | Specifies the OneDrive path. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Example
The example returns a resource representation of OneDrives whose backed-up data was retrieved from an archive by the retrieval job with the ID 3136489d-4290-4e88-a013-d0f36f4ffe72.
Request: GET https://abc.tech.local:4443/v6/DataRetrievals/3136489d-4290-4e88-a013-d0f36f4ffe72/onedrives
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: [ { "siteId": "18113f79-5344-43bf-962c-44dfdd4160db", "webId": "70e7bee3-08ea-48ac-ba1a-16863f06e1e2", "title": "User 4", "url": "https://abc-my.sharepoint.com/personal/user4_abc_onmicrosoft_com", "_links": { "dataRetrieval": { "href": "/v6/dataRetrievals/3136489d-4290-4e88-a013-d0f36f4ffe72" } } }, { "siteId": "2bba7ec6-4711-4ad8-8c43-335abee74d31", "webId": "3a8f02b1-4f00-4123-9067-3fb7e71177b4", "title": "User 5", "url": "https://abc-my.sharepoint.com/personal/user5_abc_onmicrosoft_com", "_links": { "dataRetrieval": { "href": "/v6/dataRetrievals/3136489d-4290-4e88-a013-d0f36f4ffe72" } } } ] |