GET /restoreSessions
Returns a collection of restore sessions performed on all backup servers connected to Veeam Backup Enterprise Manager. Note, the request only returns the sessions that has been created for the last 30 days.
The request is supported for the following platforms:
- VMware vSphere
- VMware Cloud Director
- Microsoft Hyper-V
To get a list of restore sessions, send the GET HTTP request to the URL of the /restoreSessions resource.
GET https://<Enterprise-Manager>:9398/api/restoreSessions |
The request contains the following headers:
Header | Required | Description |
---|
X-RestSvcSessionId | True | The request requires authorization. In the header, the client must send a session ID copied from the server reply to the request creating a new logon session. For details, see Authentication and Security. |
Accept | False | Identifies the format of the response. Possible values: - application/xml — the client can send this value in the header to accept response in the XML format.
- application/json — the client must send this value in the header to accept the request in the JSON format.
If the request does not contain the header, the server will return the response in the XML format. |
None.
The server returns the following response to the client.
A successfully completed operation returns response code 200 OK.
The response to this request contains the following headers. The response may also include additional standard HTTP headers.
Header | Description |
---|
Content-length | The length of the response body. |
Content-type | The media type and syntax of the request body message. Possible values: - application/xml
- application/json
|
In the response body, the REST API returns a representation of the /restoreSessions resource.
The example below returns a resource collection listing all restore sessions performed on all backup servers connected to Veeam Backup Enterprise Manager.
Request: GET https://localhost:9398/api/restoreSessions Request Header: X-RestSvcSessionId NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj Response: 200 OK Response Body: <EntityReferences xmlns="http://www.veeam.com/ent/v1.0"> <Ref Type="RestoreSessionReference" Href="https://localhost:9398/api/restoreSessions/676dc837-f441-4ac1-8470-15be06b4cffc" Name="FLR_[srv04]@2014-10-19 05:59:18" UID="urn:veeam:RestoreSession:676dc837-f441-4ac1-8470-15be06b4cffc"> <Links> <Link Rel="Up" Type="BackupServerReference" Href="https://localhost:9398/api/backupServers/ce15a8c7-aa49-495e-b05b-ee3398c91018" Name="srv02.tech.local" /> <Link Rel="Alternate" Type="RestoreSession" Href="https://localhost:9398/api/restoreSessions/676dc837-f441-4ac1-8470-15be06b4cffc?format=Entity" Name="FLR_[srv04]@2014-10-19 05:59:18" /> </Links> </Ref> <Ref Type="RestoreSessionReference" Href="https://localhost:9398/api/restoreSessions/9e289dec-4c1d-4a76-bae0-2191104cb59d" Name="FLR_[srv04]@2014-10-19 05:57:10" UID="urn:veeam:RestoreSession:9e289dec-4c1d-4a76-bae0-2191104cb59d"> <Links> <Link Rel="Up" Type="BackupServerReference" Href="https://localhost:9398/api/backupServers/ce15a8c7-aa49-495e-b05b-ee3398c91018" Name="srv02.tech.local" /> <Link Rel="Alternate" Type="RestoreSession" Href="https://localhost:9398/api/restoreSessions/9e289dec-4c1d-4a76-bae0-2191104cb59d?format=Entity" Name="FLR_[srv04]@2014-10-19 05:57:10" /> </Links> </Ref> <Ref Type="RestoreSessionReference" Href="https://localhost:9398/api/restoreSessions/6114f06d-143a-45be-9b07-371704f71092" Name="FLR_[srv04]@2014-10-18 15:16:59" UID="urn:veeam:RestoreSession:6114f06d-143a-45be-9b07-371704f71092"> <Links> <Link Rel="Up" Type="BackupServerReference" Href="https://localhost:9398/api/backupServers/ce15a8c7-aa49-495e-b05b-ee3398c91018" Name="srv02.tech.local" /> <Link Rel="Alternate" Type="RestoreSession" Href="https://localhost:9398/api/restoreSessions/6114f06d-143a-45be-9b07-371704f71092?format=Entity" Name="FLR_[srv04]@2014-10-18 15:16:59" /> </Links> </Ref> <Ref Type="RestoreSessionReference" Href="https://localhost:9398/api/restoreSessions/c8fdd529-d4af-48b2-8ea0-5d8b91359929" Name="FLR_[srv04]@2014-10-19 06:00:25" UID="urn:veeam:RestoreSession:c8fdd529-d4af-48b2-8ea0-5d8b91359929"> <Links> <Link Rel="Up" Type="BackupServerReference" Href="https://localhost:9398/api/backupServers/ce15a8c7-aa49-495e-b05b-ee3398c91018" Name="srv02.tech.local" /> <Link Rel="Alternate" Type="RestoreSession" Href="https://localhost:9398/api/restoreSessions/c8fdd529-d4af-48b2-8ea0-5d8b91359929?format=Entity" Name="FLR_[srv04]@2014-10-19 06:00:25" /> </Links> </Ref> <Ref Type="RestoreSessionReference" Href="https://localhost:9398/api/restoreSessions/e8cd647d-9f67-4919-ac7f-5fc014444458" Name="FLR_[srv04]@2014-10-19 07:19:53" UID="urn:veeam:RestoreSession:e8cd647d-9f67-4919-ac7f-5fc014444458"> <Links> <Link Rel="Up" Type="BackupServerReference" Href="https://localhost:9398/api/backupServers/ce15a8c7-aa49-495e-b05b-ee3398c91018" Name="srv02.tech.local" /> <Link Rel="Alternate" Type="RestoreSession" Href="https://localhost:9398/api/restoreSessions/e8cd647d-9f67-4919-ac7f-5fc014444458?format=Entity" Name="FLR_[srv04]@2014-10-19 07:19:53" /> </Links> </Ref> </EntityReferences> |