Creating Restore Session for Organization by Organization ID
This section explains how to start a restore session for the specified organization.
Request
POST https://<hostname>:4443/v5/Organizations/{organizationId}/Action |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameters must be posted as URL.
Parameter | Type | Description |
---|---|---|
organizationId | string | An identification number of the organization. |
Request Body
To start a restore session, the request body must contain the explore action property:
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 | sessionType | Specifies the type of the restore session to start:
|
ShowDeleted | boolean | Specifies the restore session will show the deleted items. |
ShowAllVersions | boolean | Specifies the restore session will show all versions of backed-up items. |
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 /Organization/{organizationId} resource inform you when the organization's data was backed up for the first and last times.
Mind the following:
- If you specify the point in time which precedes the organization's 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's 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 201 (Created).
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 representation of the /Organization/{organizationId}/Action resource.
Example
Request: POST https://abc.tech.local:4443/v5/Organizations/3c424478-0811-4920-8aab-01f0bf2a2822/action
Request Header: Authorization: Bearer <Access-Token>
Request Body: { "explore": { "datetime": "2020-10-30T10:54:40.2794046Z", "type": "vet", ShowAllVersions: false, ShowDeleted: false } }
Response: 201 Created
Response body: { "id": "8caccbcb-3e6c-4e55-83b2-d7d196e11cbe", "name": "Teams restore (Entire organization - 10/30/2020 10:29:05 AM)", "organization": "abc.onmicrosoft.com", "type": "Vet", "creationTime": "2020-10-30T14:51:36.0833712Z", "endTime": "2020-10-30T14:51:36.0833712Z", "state": "Working", "result": "Success", "initiatedBy": "EPSILON\\Administrator", "_links": { "self": { "href": "https://abc.tech.local:4443/v5/restoresessions/8caccbcb-3e6c-4e55-83b2-d7d196e11cbe" }, "organization": { "href": "https://abc.tech.local:4443/v5/restoresessions/8caccbcb-3e6c-4e55-83b2-d7d196e11cbe/organization" }, "restoreSessionEvents": { "href": "https://abc.tech.local:4443/v5/restoresessions/8caccbcb-3e6c-4e55-83b2-d7d196e11cbe/events" } } } |