This is an archive version of the document. To get the most up-to-date information, see the current version.

Exporting Sessions List

This section explains how to export a list with sessions.

Request

POST https://<hostname>/api/v1/jobSessions/export

Request Headers

The request header must contain an authorization token of the current session.

Request Parameters

None.

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

Property

Type

Description

offset

integer

Shows the offset value.

limit

integer

Shows the offset limit.

totalCount

integer

Shows the number of records in the results array.

results

Results Object

Contains the result object.

_links

Dictionary of string [key] and Object [value]

Links to related resources (navigation property).

Results Object

Property

Type

Description

id

string

Shows the identification number of the backup policy session.

type

string

Shows the type of the backup policy session.

localizedType

string

 

executionStartTime

string

Shows the time when the backup policy session started.

executionStopTime

string

Shows the time when the backup policy session stopped.

executionDuration

string

Shows the duration of the session.

status

string

Shows status of the backup policy session.

usn

integer

 

backupJobInfo

BackupJobInfo Object

 

restoreJobInfo

RestoreJobInfo Object

 

fileLevelRestoreJobInfo

FileLevelRestoreJobInfo Object

 

repositoryJobInfo

RepositoryJobInfo Object

Shows info about repository.

_links

Dictionary of string [key] and Object [value]

Links to related resources (navigation property).

BackupJobInfo Object

Property

Type

Description

policyId

string

Shows the identification number of the backup policy.

policyName

string

Shows the name of the backup policy.

protectedInstancesCount

integer

Shows the number of protected VMs.

policyRemoved

boolean

Shows if a backup policy is removed.

RestoreJobInfo Object

Property

Type

Description

reason

string

Shows the reason of the restore (if any).

items

RecoveryItem

Shows recovery items.

FileLevelRestoreJobInfo Object

Property

Type

Description

reason

string

Shows the reason of the restore (if any).

flrLink

FlrLink Object

Contains the URL to access the File-Level Recovery Browser and a thumbprint.

vmId

string

Shows the identification number of the VM..

RepositoryJobInfo Object

Property

Type

Description

repositoryId

integer

Shows the identification number of the backup repository.

repositoryName

string

Shows the name of the backup repository.

repositoryRemoved

boolean

Shows if a backup policy is removed.

Example

Request:

POST https://abc.ukwest.cloudapp.azure.com/api/v1/jobSessions/export

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200 OK

 

Response Body:

{

  "offset": 0,

  "limit": -1,

  "totalCount": 6,

  "results":    [

           {

        "id": "6",

        "type": "ManualSnapshot",

        "localizedType": "Manual Snapshot",

        "executionStartTime": "2020-02-07T08:43:30.892836Z",

        "executionStopTime": "2020-02-07T08:44:41.08057Z",

        "executionDuration": "00:01:10.1877340",

        "status": "Success",

        "usn": 44,

        "_links":          {

           "self": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/jobSessions/6"},

           "log": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/jobSessions/6/log"}

        }

     },

           {

        "id": "4",

        "type": "PolicyBackup",

        "localizedType": "Policy Backup",

        "executionStartTime": "2020-02-07T08:07:02.906363Z",

        "executionStopTime": "2020-02-07T08:23:28.858646Z",

        "executionDuration": "00:16:25.9522830",

        "status": "Success",

        "usn": 37,

        "backupJobInfo":          {

           "policyId": "4e096ba7-8125-4d5d-804b-581f4e6c8440",

           "policyName": "Backup Policy",

           "protectedInstancesCount": 1,

           "policyRemoved": false

        },

        "_links":          {

           "self": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/jobSessions/4"},

           "log": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/jobSessions/4/log"}

        }

     },

           {

        "id": "3",

        "type": "RepositoryCreation",

        "localizedType": "Create Repository",

        "executionStartTime": "2020-02-07T08:04:29.825504Z",

        "executionStopTime": "2020-02-07T08:05:05.293101Z",

        "executionDuration": "00:00:35.4675970",

        "status": "Success",

        "usn": 19,

        "repositoryJobInfo":          {

           "repositoryId": 1,

           "repositoryName": "Backup Repository",

           "repositoryRemoved": true

  ],

  "_links": {"self": {"href": "https://abc.ukwest.cloudapp.azure.com:443/api/v1/jobSessions?offset=0&limit=-1&display=Full"}}

}

I want to report a typo

There is a misspelling right here:

 

I want to let the Veeam Documentation Team know about that.