Help Center
Choose product document...
Veeam Backup & Replication 9.5 [Archived]
RESTful API Reference

(GET) /replicaSessions/{ID}

Returns a resource representation of a replication job session having the specified ID.

Request

To get a job session, you need to send the GET HTTP request to the URL of the /replicaSessions/{ID} resource.

HTTP Request

GET http://<Enterprise-Manager>:9399/api/replicaSessions/{ID}

Request Headers

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. To learn more, see Authentication and Security.

Request Body

None.

Query Parameters

The following parameters can be used in queries.

Parameter

Type

Description

Can Be Used for Filtering

Can Be Used for Sorting

Uid

URN

ID of the replication job session resource, for example: 88b395e2-81ff-439c-558c-188d97274c15.

True

True

Name

String

Name of the replication job session resource, for example: exch@2013-08-26 22:28:51.

True

True

JobType

String

Type of the replication job session. Possible values: Replica.

True

True

JobUid

URN

ID of the replication job parent to the replication job session resource, for example: urn:veeam:Job:dce85686-59c8-42c4-8766-f1c00a5b8067.

True

True

JobName

String

Name of the replication job parent to the replication job session resource, for example: SQL Replica.

True

True

CreationTime

DateTime

Date and time when the replication job session was started. The parameter accepts only UTC-formatted DateTime values.

True

True

EndTime

DateTime

Date and time when the replication job session was ended. The parameter accepts only UTC-formatted DateTime values

True

True

State

String

State of the replication job session. Possible values:

  • Starting
  • Stopping
  • Working
  • Pausing
  • Resuming
  • Stopped

True

True

Result

String

Result of the replication job session. Possible values:

  • Success
  • Warning
  • Failed

True

True

IsRetry

Boolean

Defines whether the replication job session has been retried or not. Possible values:

  • True
  • False

True

True

BackupServerUid

URN

ID of the Veeam backup server parent to the replication job session resource.

True

True

BackupServerName

String

Name of the Veeam backup server parent to the replication session resource.

True

True

Response

The server returns the following response to the client.

Response Codes

A successfully completed operation returns response code 200 Success.

Response Headers

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: application/xml.

Response Body

In the response body, Veeam Backup Enterprise Manager returns a representation of the /replicaSessions/{ID} resource.

Example

A sample request below returns an entity representation of the replica job session resource having ID 0bcf5a1e-866c-4b40-8bc3-ce64753b9a6b.

Request:

GET http://localhost:9399/api/replicaSessions/0bcf5a1e-866c-4b40-8bc3-ce64753b9a6b?format=Entity

 

Request Header:

X-RestSvcSessionId   NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj

 

Response:

200 Success

 

Response Body:

<ReplicaJobSession xmlns="http://www.veeam.com/ent/v1.0" Type="ReplicaJobSession" Href="http://localhost:9399/api/replicaSessions/0bcf5a1e-866c-4b40-8bc3-ce64753b9a6b?format=Entity" Name="Fileserver02 Replication@2014-10-19 06:46:31" UID="urn:veeam:ReplicaJobSession:0bcf5a1e-866c-4b40-8bc3-ce64753b9a6b">
 <Links>
   <Link Rel="Up" Type="BackupServerReference" Href="http://localhost:9399/api/backupServers/ce15a8c7-aa49-495e-b05b-ee3398c91018" Name="srv02.veeam.local" />
   <Link Rel="Up" Type="JobReference" Href="http://localhost:9399/api/jobs/2c49a44e-1e59-4527-a6bc-6b2f9b579ee1" Name="Fileserver02 Replication" />
   <Link Rel="Alternate" Type="ReplicaJobSessionReference" Href="http://localhost:9399/api/replicaSessions/0bcf5a1e-866c-4b40-8bc3-ce64753b9a6b" Name="Fileserver02 Replication@2014-10-19 06:46:31" />
   <Link Rel="Down" Type="ReplicaTaskSessionReferenceList" Href="http://localhost:9399/api/replicaSessions/0bcf5a1e-866c-4b40-8bc3-ce64753b9a6b/repicaTaskSessions" />
 </Links>
 <JobUid>urn:veeam:Job:2c49a44e-1e59-4527-a6bc-6b2f9b579ee1</JobUid>
 <JobName>Fileserver02 Replication</JobName>
 <JobType>Replica</JobType>
 <CreationTimeUTC>2014-10-19T06:46:31Z</CreationTimeUTC>
 <EndTimeUTC>2014-10-19T07:02:35Z</EndTimeUTC>
 <State>Stopped</State>
 <Result>Success</Result>
 <Progress>100</Progress>
 <IsRetry>false</IsRetry>
</ReplicaJobSession>

 

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Backup Explorers User Guide

Backup and Restore of SQL Server Databases

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide