Getting Information on Operations by Session ID
This section explains how to get information about the operations performed during the backup job session.
Request
GET https://<hostname>:4443/v5/JobSessions/{jobSessionsId}/LogItems |
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 |
---|---|---|
jobSessionsId | string | An identification number of the backup session. |
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 representation of the /JobSessions/{sessionId}/LogItems resource.
Example
The example below returns an entity representation of the operations that were performed during the backup job run.
Request: GET https://abc.tech.local:4443/v5/JobSessions/be376069-2865-4156-a9bc-825cef7d687e/LogItems
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: [ { "id": "e7668151-524f-4fa5-a30a-c647bf7ca8c5", "usn": 1, "title": "[Success] Job started at 4/4/2017 12:07:21 AM", "creationTime": "2017-04-04T00:07:21.3664166-07:00", "endTime": "2017-04-04T00:07:21.3664166-07:00", "_links": { "jobsessions": { "href": "https://abc.tech.local:4443/v5/JobSessions/be376069-2865-4156-a9bc-825cef7d687e" } } }, { "id": "a6c7a35c-20e1-4cf9-931e-c1e060172b43", "usn": 2, "title": "[Success] Connected to organization", "creationTime": "2017-04-04T00:07:21.3674143-07:00", "endTime": "2017-04-04T00:07:25.3952173-07:00", "_links": { "jobsessions": { "href": "https://abc.tech.local:4443/v5/JobSessions/be376069-2865-4156-a9bc-825cef7d687e" } } }, { "id": "8bbea7df-f870-40c1-89a0-64dca53c1e03", "usn": 3, "title": "[Success] Mailboxes enumerated", "creationTime": "2017-04-04T00:07:21.3674143-07:00", "endTime": "2017-04-04T00:07:28.4514886-07:00", "_links": { "jobsessions": { "href": "https://abc.tech.local:4443/v5/JobSessions/be376069-2865-4156-a9bc-825cef7d687e" } } }, { "id": "45342637-79ab-4247-900e-c33c1cfb1274", "usn": 4, "title": "[Success] 3 mailboxes found", "creationTime": "2017-04-04T00:07:21.3674143-07:00", "endTime": "2017-04-04T00:07:28.454487-07:00", "_links": { "jobsessions": { "href": "https://abc.tech.local:4443/v5/JobSessions/be376069-2865-4156-a9bc-825cef7d687e" } } }, { "id": "a4d40d0e-cea8-40fa-93d9-202bffad855e", "usn": 5, "title": "[Success] Processing mailbox: petep@eastsupport.onmicrosoft.com", "creationTime": "2017-04-04T00:07:25.3972468-07:00", "endTime": "2017-04-04T00:07:37.191867-07:00", "_links": { "jobsessions": { "href": "https://abc.tech.local:4443/v5/JobSessions/be376069-2865-4156-a9bc-825cef7d687e" } } }, ..] |