Creating Restore Session for Organization by Organization ID
You can start a restore session for the specified organization.
Request
POST https://<hostname>:4443/v6/Organizations/{organizationId}/explore |
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 |
---|---|---|
organizationId | string | Specifies the identification number of the Microsoft 365 organization. For more information on how to get this parameter, see Getting Organizations. |
Request Body
To start a restore session, the request body must contain the following properties:
Property | Type | Description |
---|---|---|
datetime | UTC | Specifies the date and time. You can specify the date and the time in one of the following formats:
|
type | string | Specifies the type of the restore session to start. The following types are available:
|
showDeleted | boolean | Defines whether the restore session will show items that have been removed by the user before the specified date. |
showAllVersions | boolean | Defines whether the restore session will show all versions of items that have been modified by the user before the specified date. |
The request command will start a restore session only for backups that were created at the time you specified. The firstBackuptime and lastBackuptime properties of the /Organizations/{organizationId} resource inform you when the organization data was backed up for the first and last times.
Mind the following:
- If you specify the point in time which precedes the organization first backup time, the restore session will be created with no backup data for explore or restore.
- If you specify the point in time which exceeds the organization last backup time, the restore session will be created with backup data as of the latest restore point.
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 restore session. The response body contains the following properties:
Property | Type | Description |
---|---|---|
id | string | Specifies the restore session ID. |
name | string | Specifies a name of the restore session. |
organization | string | Specifies the name of the Microsoft 365 organization. |
type | string | Specifies the type of the restore session. The following types are available:
|
creationTime | UTC | Specifies date and time when the restore session was started. |
endTime | UTC | Specifies date and time when the restore session ended. |
state | string | Specifies the state of the restore session. The following values are available:
|
result | string | Specifies the restore session result. The following values are available:
|
initiatedBy | string | Specifies the name of the who initiated the restore session. |
details | string | Specifies the restore session details. |
scopeName | string | Specifies a scope of the restore session created using Restore Portal. |
clientHost | string | Specifies a DNS name or an IP address of the Veeam Backup for Microsoft 365 server. |
reason | string | Specifies a reason to perform restore operation. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Example
The example returns a resource representation of the restore session created for the organization with the ID 3c424478-0811-4920-8aab-01f0bf2a2822.
Request: POST https://abc.tech.local:4443/v6/Organizations/3c424478-0811-4920-8aab-01f0bf2a2822/explore
Request Header: Authorization: Bearer <Access-Token>
Request Body: { "datetime": "2022-01-22T14:56:55.862Z", "type": "Vet", "showAllVersions": false, "showDeleted": false }
Response: 200 OK
Response Body: { "id": "8caccbcb-3e6c-4e55-83b2-d7d196e11cbe", "name": "Teams restore (Entire organization - 1/22/2022 2:56:55 PM)", "organization": "abc.onmicrosoft.com", "type": "Vet", "creationTime": "2022-01-21T22:53:13.9685934Z", "endTime": "9999-12-31T23:59:59.9999999Z", "state": "Working", "result": "Success", "initiatedBy": "EPSILON\\Administrator", "scopeName": "", "clientHost": "EPSILON (via: 127.0.0.1)", "_links": { "self": { "href": "/v6/RestoreSessions/8caccbcb-3e6c-4e55-83b2-d7d196e11cbe" }, "organization": { "href": "/v6/RestoreSessions/8caccbcb-3e6c-4e55-83b2-d7d196e11cbe/organization" }, "restoreSessionEvents": { "href": "/v6/RestoreSessions/8caccbcb-3e6c-4e55-83b2-d7d196e11cbe/events" } } } |