Sessions

The Sessions section defines paths and operations for managing sessions (except automation sessions) performed on the backup server.

Get All Sessions

The HTTP GET request to the /api/v1/sessions path allows you to get an array of sessions performed on the backup server.

SecurityBearer
Request
query Parameters
skip
integer <int32>

Number of sessions to skip.

limit
integer <int32>

Maximum number of sessions to return.

orderColumn
string (ESessionsFiltersOrderColumn)

Sorts sessions by one of the session parameters.

Enum: "Name" "SessionType" "CreationTime" "EndTime" "State" "Result"
orderAsc
boolean

Sorts sessions in the ascending order by the orderColumn parameter.

nameFilter
string

Filters sessions by the nameFilter pattern. The pattern can match any session parameter. To substitute one or more characters, use the asterisk (*) character at the beginning, at the end or both.

createdAfterFilter
string <date-time>

Returns sessions that are created after the specified date and time.

createdBeforeFilter
string <date-time>

Returns sessions that are created before the specified date and time.

endedAfterFilter
string <date-time>

Returns sessions that are finished after the specified date and time.

endedBeforeFilter
string <date-time>

Returns sessions that are finished before the specified date and time.

typeFilter
string (ESessionType)

Filters sessions by session type.

Enum: "Infrastructure" "Job" "Automation" "ConfigurationBackup" "RepositoryMaintenance" "RepositoryEvacuate" "InfrastructureItemDeletion" "RestoreVm" "InstantRecovery" "FirstClassDiskInstantRestore" "AzureApplianceDeploy" "QuickMigration"
stateFilter
string (ESessionState)

Filters sessions by session state.

Enum: "Stopped" "Starting" "Stopping" "Working" "Pausing" "Resuming" "WaitingTape" "Idle" "Postprocessing" "WaitingRepository" "WaitingSlot"
resultFilter
string (ESessionResult)

Filters sessions by session result.

Enum: "None" "Success" "Warning" "Failed"
jobIdFilter
string <uuid>

Filters sessions by job ID.

header Parameters
x-api-version
required
string
Default: 1.1-rev0

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Responses
200

OK

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

get/api/v1/sessions
Request samples
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Get Session

The HTTP GET request to the /api/v1/sessions/{id} path allows you to get a session that has the specified id.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

ID of the session.

header Parameters
x-api-version
required
string
Default: 1.1-rev0

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Responses
200

OK

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

404

Not found. No object was found with the path parameter specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

get/api/v1/sessions/{id}
Request samples
Response samples
application/json
{
  • "sessionType": "ConfigurationBackup",
  • "state": "Stopped",
  • "id": "f848e90c-7f37-4ff5-9d55-04e33f8a4de3",
  • "name": "Backup Configuration Job",
  • "activityId": "99d1bf3d-e2e0-4bec-b2b3-820c0b87d212",
  • "creationTime": "2021-11-08T10:00:12.56+01:00",
  • "endTime": "2021-11-08T10:00:34.017+01:00",
  • "progressPercent": 100,
  • "result": {
    },
  • "resourceId": null,
  • "resourceReference": null,
  • "parentSessionId": null,
  • "usn": 0
}

Get Session Logs

The HTTP GET request to the /api/v1/sessions/{id}/logs path allows you to get an array of log records of a session that has the specified id.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

ID of the session.

header Parameters
x-api-version
required
string
Default: 1.1-rev0

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Responses
200

OK

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

404

Not found. No object was found with the path parameter specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

get/api/v1/sessions/{id}/logs
Request samples
Response samples
application/json
{
  • "totalRecords": 11,
  • "records": [
    ]
}

Stop Session

The HTTP POST request to the /api/v1/sessions/{id}/stop path allows you to stop a session that has the specified id.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

ID of the session.

header Parameters
x-api-version
required
string
Default: 1.1-rev0

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Responses
200

OK

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

404

Not found. No object was found with the path parameter specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

post/api/v1/sessions/{id}/stop
Request samples
Response samples
application/json
{ }