Connection

To connect to a server securely, Veeam Backup & Replication verifies the server identity with the TLS certificate of the server or, for a Linux server, with its SSH key fingerprint. Before you add a server to the backup infrastructure, you request its certificate or fingerprint, and then specify the certificate thumbprint or the fingerprint in the server settings.

You can request the TLS certificate or SSH fingerprint of one host, or of multiple hosts in one request. In this version, you can request TLS certificates of VMware vSphere, VMware Cloud Director, VMware Cloud Foundation Automation, Red Hat OpenStack and Virtuozzo servers, and SSH fingerprints of Linux servers. For a Red Hat OpenStack or Virtuozzo server, you can also request the TLS certificates of the Keystone endpoint and the regional service endpoints. To add servers, see the Managed Servers section.

Request TLS Certificate or SSH Fingerprint

The HTTP POST request to the /api/v1/connectionCertificate endpoint gets a TLS certificate or SSH fingerprint of the specified host.

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

Full DNS name or IP address of the server. For Red Hat OpenStack and Virtuozzo servers, specify the Keystone endpoint URL.

type
required
string (EManagedServerType)

Type of the server.

Enum: "WindowsHost" "LinuxHost" "ViHost" "CloudDirectorHost" "HvServer" "HvCluster" "SCVMM" "SmbV3Cluster" "SmbV3StandaloneHost" "NutanixCluster" "PrismCentral" "ProxmoxNode" "ProxmoxCluster" "HpeVmeCluster" "HpeVmeManager" "XcpNgPool" "XenServerPool" "OVirtKvmManager" "ScaleComputingCluster" "SangforHciCluster" "SangforHciManager" "KubeVirtCluster" "OpenNebulaManager" "Platform9Manager" "VergeIoManager" "VcfAutomation" "RedHatOpenStackServer" "VirtuozzoServer" "VbForAws" "VbForAzure" "VbForGcp"
credentialsStorageType
string (ECredentialsStorageType)

Credentials type used to connect to the server.

Enum: "Permanent" "SingleUse" "Certificate"
credentialsId
string <uuid>

ID of a credentials record used to connect to the server.

Required for Red Hat OpenStack and Virtuozzo servers. To get the ID, run the Get All Credentials request.

object (LinuxCredentialsSpec)

Settings for single-use credentials.

port
integer

Port used to communicate with the server.

Red Hat OpenStack and Virtuozzo servers do not support this property. For these servers, specify the port in the Keystone endpoint URL.

Responses
201

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.

post/api/v1/connectionCertificate
Request samples
application/json
{
  • "serverName": "vcenter01.tech.local",
  • "credentialsId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  • "type": "ViHost",
  • "port": 443
}
Response samples
application/json
{
  • "certificate": {
    },
  • "certificateUpload": {
    }
}

Request Regional Service Endpoint Certificates

The HTTP POST request to the /api/v1/serviceEndpointCertificates endpoint gets TLS certificates of the service endpoints of the specified OpenStack-based server: the Keystone endpoint and the regional endpoints. To get the certificate of the Keystone endpoint, first run the Request TLS Certificate or SSH Fingerprint request. Then pass the thumbprint of the certificate in the certificateThumbprint property. If the Keystone certificate is not trusted and the thumbprint is missing or does not match it, the request fails and Veeam Backup & Replication does not send the credentials. The response contains the certificates of all endpoints. The isTrusted property shows whether a certificate is already trusted. To trust the certificates, pass the thumbprints of the untrusted ones and the Keystone thumbprint in the certificateThumbprints array when you add the server.

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
type
required
string (EManagedServerType)

Type of the server.

Enum: "WindowsHost" "LinuxHost" "ViHost" "CloudDirectorHost" "HvServer" "HvCluster" "SCVMM" "SmbV3Cluster" "SmbV3StandaloneHost" "NutanixCluster" "PrismCentral" "ProxmoxNode" "ProxmoxCluster" "HpeVmeCluster" "HpeVmeManager" "XcpNgPool" "XenServerPool" "OVirtKvmManager" "ScaleComputingCluster" "SangforHciCluster" "SangforHciManager" "KubeVirtCluster" "OpenNebulaManager" "Platform9Manager" "VergeIoManager" "VcfAutomation" "RedHatOpenStackServer" "VirtuozzoServer" "VbForAws" "VbForAzure" "VbForGcp"
name
required
string

Keystone endpoint URL or full DNS name or IP address of the OpenStack server.

credentialsId
required
string <uuid>

ID of the credentials record used to connect to the OpenStack server. To get the ID, run the Get All Credentials request.

certificateThumbprint
string

Thumbprint of the Keystone endpoint certificate that you trust. Required if Veeam Backup & Replication does not trust the certificate yet. To get the certificate, run the Request TLS Certificate or SSH Fingerprint request. Veeam Backup & Replication sends the credentials only to the endpoints that use this certificate.

Responses
201

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.

post/api/v1/serviceEndpointCertificates
Request samples
application/json
{
  • "type": "RedHatOpenStackServer",
  • "credentialsId": "8f2e6fa5-4757-4312-a4b2-73b9325df6a4",
  • "certificateThumbprint": "9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B"
}
Response samples
application/json
{
  • "certificates": [
    ]
}

Request TLS Certificates or SSH Fingerprints for Multiple Hosts

The HTTP POST request to the /api/v1/connectionCertificate/batch endpoint gets TLS certificates or SSH fingerprints of the specified hosts in one call. The response contains one result for each host in the request order. If Veeam Backup & Replication cannot get the certificate of one host, the whole request does not fail: the error is returned in the errorMessage property of the result for that host.

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
required
Array of objects (HostConnectionSpec) [ 1 .. 100 ] items

Array of per-host connection settings.

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.

post/api/v1/connectionCertificate/batch
Request samples
application/json
{
  • "hosts": [
    ]
}
Response samples
application/json
{
  • "results": [
    ]
}