Getting OneDrives
You can get a resource representation of OneDrives to explore and restore OneDrive data.
Request
GET https://<hostname>:4443/v6/RestoreSessions/{restoreSessionId}/Organization/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 |
---|---|---|
restoreSessionId | string | Specifies the identification number of the restore session. For more information on how to get this parameter, see Getting Restore Sessions. |
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 collection resource.
Example
The example returns a resource representation of the organization OneDrives.
Request: GET https://abc.tech.local:4443/v6/RestoreSessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/Organization/OneDrives
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: { "offset": 0, "limit": 30, "_links": { "self": { "href": "/v6/RestoreSessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/Organization/OneDrives?offset=0&limit=30" } }, "results": [ { "id": "9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5", "name": "Administrator", "url": "http://server/personal/orgUser", "_links": { "self": { "href": "/v6/restoresessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/organization/onedrives/9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5" }, "folders": { "href": "/v6/restoresessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/organization/onedrives/9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5/folders?parentId=null" }, "allfolders": { "href": "/v6/restoresessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/organization/onedrives/9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5/folders" }, "documents": { "href": "/v6/restoresessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/organization/onedrives/9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5/documents?parentId=null" }, "alldocuments": { "href": "/v6/restoresessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/organization/onedrives/9c4a2afc-5e57-4dfa-a7e2-59e092691772ef4221af-9351-41ec-9128-534cf34db1a5/documents" } } }, { "id": "1d3740ca-bd0e-4656-88ed-2e35ce10e1deef4221af-9351-41ec-9128-534cf34db1a5", "name": "CopyTo User", "url": "http://server/personal/orgUser", "_links": { "self": { "href": "/v6/restoresessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/organization/onedrives/1d3740ca-bd0e-4656-88ed-2e35ce10e1deef4221af-9351-41ec-9128-534cf34db1a5" }, "folders": { "href": "/v6/restoresessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/organization/onedrives/1d3740ca-bd0e-4656-88ed-2e35ce10e1deef4221af-9351-41ec-9128-534cf34db1a5/folders?parentId=null" }, "allfolders": { "href": "/v6/restoresessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/organization/onedrives/1d3740ca-bd0e-4656-88ed-2e35ce10e1deef4221af-9351-41ec-9128-534cf34db1a5/folders" }, "documents": { "href": "/v6/restoresessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/organization/onedrives/1d3740ca-bd0e-4656-88ed-2e35ce10e1deef4221af-9351-41ec-9128-534cf34db1a5/documents?parentId=null" }, "alldocuments": { "href": "/v6/restoresessions/fc761213-3bb2-4c10-b7b3-015c89bbc532/organization/onedrives/1d3740ca-bd0e-4656-88ed-2e35ce10e1deef4221af-9351-41ec-9128-534cf34db1a5/documents" } } } ], "setId": "00000000-0000-0000-0000-000000000000" } |