High Availability (HA) Cluster

A High Availability (HA) cluster joins two backup servers to ensure continuous availability and minimize downtime of the backup server: the primary node handles all backup and replication tasks, and the secondary node stands by to take over if needed, with continuous replication of the configuration database between the nodes. You can get the cluster configuration, create, edit and delete the cluster. To switch the role of the primary node to the secondary node, you can start switchover or failover. Start switchover when both nodes are operational and synchronized, for example, before hardware maintenance of the primary node. Start failover when the primary node is unavailable due to an unexpected outage; after failover, the cluster consists of a single node.

Get High Availability Cluster

The HTTP GET request to the /api/v1/highAvailabilityCluster endpoint gets the High Availability cluster configuration record.

Available to: Backup Administrator.

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>.

Responses
200

OK

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.

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/highAvailabilityCluster
Request samples
Response samples
application/json
{
  • "id": "1f7c2d90-4ab8-4e21-9d3c-7b5e8a0f6c14",
  • "primaryNode": {
    },
  • "secondaryNode": {
    },
  • "name": "ha-cluster-01",
  • "clusterEndpoint": "172.24.29.165",
  • "clusterDnsName": "ha-cluster-01.tech.local",
  • "isCrossSubnetMode": false,
  • "states": {
    }
}

Create High Availability Cluster

The HTTP POST request to the /api/v1/highAvailabilityCluster endpoint creates a High Availability cluster.

Available to: Backup Administrator.

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
primaryNodeIpAddress
required
string

Primary node IP address.

secondaryNodeIpAddress
required
string

Secondary node IP address.

secondaryNodeCredentialsId
required
string <uuid>

Secondary node credentials ID. To get the ID, run the Get All Credentials request.

clusterDnsName
required
string

Cluster DNS name.

required
object (HaCertificateUploadSpec)

PEM certificate settings for the HA cluster.

clusterEndpoint
string

Cluster IP address. Required if isCrossSubnetMode is not true. If isCrossSubnetMode is true, do not specify the address.

isCrossSubnetMode
boolean

If true, the cluster is created in cross-subnet mode.

primaryNodeExternalEndpoint
string

External endpoint of the primary node. Required if isCrossSubnetMode is true. Otherwise, do not specify the endpoint.

secondaryNodeExternalEndpoint
string

External endpoint of the secondary node. Required if isCrossSubnetMode is true. Otherwise, do not specify the endpoint.

Responses
200

An Infrastructure session has been created to create the High Availability cluster. To check the progress, track the session state with the Get Session request.

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.

post/api/v1/highAvailabilityCluster
Request samples
application/json
{
  • "primaryNodeIpAddress": "172.24.29.163",
  • "secondaryNodeIpAddress": "172.24.29.164",
  • "secondaryNodeCredentialsId": "0a3b8d5f-1c24-4f9e-9b71-2e6c4d8a1f30",
  • "clusterEndpoint": "172.24.29.165",
  • "clusterDnsName": "ha-cluster-01.tech.local",
  • "certificate": {
    },
  • "isCrossSubnetMode": false,
  • "primaryNodeExternalEndpoint": "172.24.29.163:9419",
  • "secondaryNodeExternalEndpoint": "172.24.29.164:9419"
}
Response samples
application/json
{
  • "sessionType": "Infrastructure",
  • "state": "Working",
  • "id": "5b2e4c61-8d39-4f72-a1b5-6e7c0d3f8a29",
  • "name": "Infrastructure Item Saving",
  • "jobId": "5b2e4c61-8d39-4f72-a1b5-6e7c0d3f8a29",
  • "creationTime": "2026-07-03T12:00:12+02:00",
  • "progressPercent": 0,
  • "result": {
    },
  • "usn": 2260,
  • "initiatedBy": "veeamadmin",
  • "originalSessionId": "5b2e4c61-8d39-4f72-a1b5-6e7c0d3f8a29"
}

Delete High Availability Cluster

The HTTP DELETE request to the /api/v1/highAvailabilityCluster endpoint removes the High Availability cluster configuration. This is an asynchronous operation that returns a session for tracking progress.

Available to: Backup Administrator.

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>.

Responses
200

An InfrastructureItemDeletion session has been created to delete the High Availability cluster. 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.

500

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

delete/api/v1/highAvailabilityCluster
Request samples
Response samples
application/json
{
  • "sessionType": "InfrastructureItemDeletion",
  • "state": "Working",
  • "id": "7d4f6a82-9e51-4b83-92d6-8f0a1e5b9c37",
  • "name": "Infrastructure Item Deletion",
  • "jobId": "00000000-0000-0000-0000-000000000000",
  • "creationTime": "2026-07-03T12:10:45+02:00",
  • "progressPercent": 0,
  • "result": {
    },
  • "usn": 2295,
  • "initiatedBy": "veeamadmin",
  • "originalSessionId": "7d4f6a82-9e51-4b83-92d6-8f0a1e5b9c37"
}

Edit High Availability Cluster Settings

The HTTP POST request to the /api/v1/highAvailabilityCluster/changeCluster endpoint edits a High Availability cluster. This is an asynchronous operation that returns a session for tracking progress.

Available to: Backup Administrator.

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
clusterEndpoint
string

Cluster IP address. You cannot specify the cluster IP address for a cluster in cross-subnet mode.

clusterDnsName
string

Cluster DNS name.

primaryNodeExternalEndpoint
string

External endpoint of the primary node. You can specify the endpoint only for a cluster in cross-subnet mode.

secondaryNodeExternalEndpoint
string

External endpoint of the secondary node. You can specify the endpoint only for a cluster in cross-subnet mode.

Responses
200

A HaClusterEdit session has been created to edit the High Availability cluster settings. 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.

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/highAvailabilityCluster/changeCluster
Request samples
application/json
{
  • "clusterEndpoint": "172.24.29.165",
  • "clusterDnsName": "ha-cluster-01.tech.local",
  • "primaryNodeExternalEndpoint": "172.24.29.163:9419",
  • "secondaryNodeExternalEndpoint": "172.24.29.164:9419"
}
Response samples
application/json
{
  • "sessionType": "HaClusterEdit",
  • "state": "Working",
  • "id": "4a3dba50-fb5d-427e-af56-3534b866daaa",
  • "name": "HaClusterEditing",
  • "jobId": "4a3dba50-fb5d-427e-af56-3534b866daaa",
  • "creationTime": "2026-07-03T12:00:54+02:00",
  • "progressPercent": 0,
  • "result": {
    },
  • "usn": 2273,
  • "initiatedBy": "veeamadmin",
  • "originalSessionId": "4a3dba50-fb5d-427e-af56-3534b866daaa"
}

Start High Availability Cluster Switchover

The HTTP POST request to the /api/v1/highAvailabilityCluster/switchover endpoint starts a switchover operation that swaps primary and secondary node roles in the High Availability cluster.

Available to: Backup Administrator.

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
optional

Switchover confirmation. If the secondary node has replication lag and you omit the request body or set ignoreLag to false, the switchover does not start, and the response contains the replication lag.

ignoreLag
boolean
Default: false

If true, you confirm the switchover and accept potential data loss. If false, the switchover does not start if the secondary node has replication lag, if the cluster state is unavailable or if split-brain recovery is pending.

Responses
200

A HaSwitchover session has been started to switch over the High Availability cluster. 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.

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/highAvailabilityCluster/switchover
Request samples
application/json
{
  • "ignoreLag": false
}
Response samples
application/json
{
  • "sessionType": "HaSwitchover",
  • "state": "Working",
  • "id": "6c1d3e50-7f28-4a91-b2c4-5d8e0f3a7b16",
  • "name": "HaSwitchover",
  • "jobId": "6c1d3e50-7f28-4a91-b2c4-5d8e0f3a7b16",
  • "creationTime": "2026-07-03T12:05:20+02:00",
  • "progressPercent": 0,
  • "result": {
    },
  • "usn": 2287,
  • "initiatedBy": "veeamadmin",
  • "originalSessionId": "6c1d3e50-7f28-4a91-b2c4-5d8e0f3a7b16"
}

Start High Availability Cluster Failover

The HTTP POST request to the /api/v1/highAvailabilityCluster/failover endpoint starts a failover operation that promotes a secondary node to the primary role in the High Availability cluster.

Available to: Backup Administrator.

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
optional

Failover confirmation. If you omit the request body or set ignoreLag to false, the failover does not start, and the response contains the state of the primary node, the time when the primary node stopped responding and the replication lag.

ignoreLag
boolean
Default: false

If true, you confirm the failover and accept potential data loss. The secondary node knows only the replication lag that was last replicated from the primary node, and this value may be outdated. That is why the failover does not start without this confirmation, even if no lag is reported.

Responses
202

Failover operation has been started.

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.

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/highAvailabilityCluster/failover
Request samples
application/json
{
  • "ignoreLag": true
}
Response samples
application/json
{
  • "message": "string"
}