Data Integration API

Disk publishing gives a target server read-only access to the content of one or more disks from a backup instead of all disks: Veeam Backup & Replication presents the disks to the server over iSCSI for Microsoft Windows servers or over FUSE for Linux and Unix servers, and the server reads the necessary data. You can use disk publishing to analyze backed-up data, for example, to look for specific documents or to perform antivirus scan.

You can start publishing disks from restore points of backups and snapshot replicas, get the mount points of published disks and stop publishing. To get the restore point, see the Restore Points or Replica Restore Points section.

Get All Disk Publishing Mount Points

The HTTP GET request to the /api/v1/dataIntegration endpoint gets an array of mount points for disk publishing operations.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions.

SecurityBearer
Request
query Parameters
skip
integer <int32>

Number of mount points to skip.

limit
integer <int32>
Default: 200

Maximum number of mount points to return.

orderColumn
string (EBackupContentMountsFiltersOrderColumn)

Sorts mount points by one of the mount point parameters.

Value: "State"
orderAsc
boolean

If true, sorts mount points in ascending order by the orderColumn parameter.

stateFilter
string (EBackupContentMountState)

Filters mount points by mount point state.

Enum: "Mounted" "MountFailed" "Mounting" "Unmounted" "UnmountFailed" "Unmounting"
modeFilter
string (EBackupContentDiskPublishMode)

Filters mount points by mount mode.

Enum: "Fuse" "ISCSI"
header Parameters
x-api-version
required
string
Default: 1.3-rev3

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/dataIntegration
Request samples
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Start Disk Publishing

The HTTP POST request to the /api/v1/dataIntegration/publish endpoint starts a disk publishing session.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions. Custom roles can publish disks only to the original host or to a managed server in their scope (OriginalHost and ManagedServer types).

SecurityBearer
Request
header Parameters
x-api-version
required
string
Default: 1.3-rev3

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

Request Body schema: application/json
required
restorePointId
required
string <uuid>

Restore point ID. You can use restore points from backups and snapshot replicas. To get the ID, run the Get All Restore Points or Get All Replica Restore Points request.

type
required
string (EPublishBackupContentModeType)

Disk publishing target and mode.

Enum Value Description
ISCSITarget Automatic iSCSI mode. Use this mode if you want Veeam Backup & Replication to automatically configure the iSCSI initiator, start an iSCSI session and allow the specified target Microsoft Windows server to access disk content.
ISCSIWindowsMount Manual iSCSI mode. Use this mode if you want to manually start an iSCSI session from any Microsoft Windows server that has access to the iSCSI target server (mount server).
FUSELinuxMount FUSE mode. Use this mode to allow the specified target Linux or Unix server to access disk content.
ManagedServer Attach to an existing managed server identified by its ID. Operating system, credentials and transport are resolved on the server side.
OriginalHost Attach back to the original host the backup was taken from. Endpoint, credentials and transport are resolved on the server side. Available only for agent and physical backups.
allowedIps
required
Array of strings

Array of IP addresses of target servers that are allowed to access the iSCSI target server (mount server).

diskNames
Array of strings

Array of disk names.

reason
string

Reason for publishing the backup.

mountHostId
string <uuid>

Mount server ID. To get the ID, run the Get Mount Servers request.

Responses
201

A PublishBackupContentViaMount session has been started to publish disks. To check the progress, track the session state with the Get Session request.

400

Bad request. This error is related to POST and PUT requests. The request body is malformed, incomplete or otherwise invalid.

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/dataIntegration/publish
Request samples
application/json
{
  • "restorePointId": "58d8ce8c-2e04-47c7-8f11-a17875b1eed3",
  • "type": "FUSELinuxMount",
  • "targetServerName": "linbase03",
  • "targetServerCredentialsId": "27f962c5-86d6-4a7c-b450-5faa99b08d03",
  • "credentialsStorageType": "Permanent"
}
Response samples
application/json
{
  • "sessionType": "PublishBackupContentViaMount",
  • "state": "Stopped",
  • "platformName": "VMware",
  • "id": "cc5de5c2-3ce4-4b67-af45-3733c3fc0a1e",
  • "name": "linbase01",
  • "jobId": "2597af5d-0645-401c-ae7c-db663c35597e",
  • "creationTime": "2024-11-15T13:01:29.905514+01:00",
  • "endTime": "2024-11-15T13:05:45.123456+01:00",
  • "progressPercent": 100,
  • "result": {
    },
  • "resourceId": "cc5de5c2-3ce4-4b67-af45-3733c3fc0a1e",
  • "usn": 16087,
  • "platformId": "00000000-0000-0000-0000-000000000000"
}

Get Disk Publishing Mount Point

The HTTP GET request to the /api/v1/dataIntegration/{mountId} endpoint gets a disk publishing mount point that has the specified mountID.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions.

SecurityBearer
Request
path Parameters
mountId
required
string <uuid>

Mount point ID.

header Parameters
x-api-version
required
string
Default: 1.3-rev3

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/dataIntegration/{mountId}
Request samples
Response samples
application/json
{
  • "mountState": "Mounted",
  • "id": "bce89e03-9269-4cb0-aa49-c8b04d4273d5",
  • "initiatorName": "SRV99\\Administrator",
  • "backupId": "bdc74451-8719-4a66-9791-21a4bbd2d048",
  • "backupName": "Backup Job 1 - linbase01",
  • "restorePointId": "170bcae5-f2c4-4547-972e-15349aa04609",
  • "restorePointName": "linbase01",
  • "info": {
    }
}

Stop Disk Publishing

The HTTP POST request to the /api/v1/dataIntegration/{mountId}/unpublish endpoint stops publishing a mount point that has the specified mountID.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions.

SecurityBearer
Request
path Parameters
mountId
required
string <uuid>

Mount point ID.

header Parameters
x-api-version
required
string
Default: 1.3-rev3

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

Responses
200

A PublishBackupContentViaMount session has been started to unpublish disks. To check the progress, track the session state with the Get Session request.

400

Bad request. This error is related to POST and PUT requests. The request body is malformed, incomplete or otherwise invalid.

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/dataIntegration/{mountId}/unpublish
Request samples
Response samples
application/json
{
  • "sessionType": "PublishBackupContentViaMount",
  • "state": "Working",
  • "id": "cc5de5c2-3ce4-4b67-af45-3733c3fc0a1e",
  • "name": "linbase01",
  • "jobId": "2597af5d-0645-401c-ae7c-db663c35597e",
  • "creationTime": "2024-11-15T13:01:29.905514+01:00",
  • "endTime": "2024-11-15T13:10:22.987654+01:00",
  • "progressPercent": 100,
  • "result": {
    },
  • "resourceId": "cc5de5c2-3ce4-4b67-af45-3733c3fc0a1e",
  • "usn": 0
}