Getting Mailboxes
You can get a resource representation of organization mailboxes to explore and restore data.
Request
GET https://<hostname>:4443/v6/RestoreSessions/{restoreSessionId}/organization/mailboxes |
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/mailboxes resource.
Example
The example returns a resource representation of the organization mailboxes.
Request: GET https://abc.tech.local:4443/v6/RestoreSessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: { "offset": 0, "limit": 30, "_links": { "self": { "href": "/v6/RestoreSessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes?offset=0&limit=30" } }, "results": [ { "id": "062fd52a-c781-4bac-a2a6-dce34f20bfe8", "name": "In-Place Archive - Admin", "email": "admin@abc.onmicrosoft.com", "isArchive": true, "isPublic": false, "_links": { "self": { "href": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/062fd52a-c781-4bac-a2a6-dce34f20bfe8" }, "folders": { "href": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/062fd52a-c781-4bac-a2a6-dce34f20bfe8/folders?parentId=null" }, "allfolders": { "href": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/062fd52a-c781-4bac-a2a6-dce34f20bfe8/folders" }, "items": { "href": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/062fd52a-c781-4bac-a2a6-dce34f20bfe8/items" } }, "_actions": { "restoreToOriginalLocation": { "uri": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/062fd52a-c781-4bac-a2a6-dce34f20bfe8/restore", "method": "POST" }, "restoreTo": { "uri": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/062fd52a-c781-4bac-a2a6-dce34f20bfe8/restoreTo", "method": "POST" }, "exportToPst": { "uri": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/062fd52a-c781-4bac-a2a6-dce34f20bfe8/exportToPst", "method": "POST" }, "search": { "uri": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/062fd52a-c781-4bac-a2a6-dce34f20bfe8/search", "method": "POST" } } }, { "id": "5be33e70-d221-4883-a8f7-1608c8dae27a", "name": "User1", "email": "user1@abc.onmicrosoft.com", "isArchive": false, "isPublic": false, "_links": { "self": { "href": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/5be33e70-d221-4883-a8f7-1608c8dae27a" }, "folders": { "href": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/5be33e70-d221-4883-a8f7-1608c8dae27a/folders?parentId=null" }, "allfolders": { "href": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/5be33e70-d221-4883-a8f7-1608c8dae27a/folders" }, "items": { "href": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/5be33e70-d221-4883-a8f7-1608c8dae27a/items" } }, "_actions": { "restoreToOriginalLocation": { "uri": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/5be33e70-d221-4883-a8f7-1608c8dae27a/restore", "method": "POST" }, "restoreTo": { "uri": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/5be33e70-d221-4883-a8f7-1608c8dae27a/restoreTo", "method": "POST" }, "exportToPst": { "uri": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/5be33e70-d221-4883-a8f7-1608c8dae27a/exportToPst", "method": "POST" }, "search": { "uri": "v6/restoresessions/c834a119-171c-48db-b062-b83a18a1b2f7/organization/mailboxes/5be33e70-d221-4883-a8f7-1608c8dae27a/search", "method": "POST" } } }, ... ], "setId": "00000000-0000-0000-0000-000000000000" } |