Encryption

Veeam Backup & Replication encrypts backup files with data encryption keys and protects these keys either with a secret key based on an encryption password or with a Key Management System (KMS) key. KMS keys are based on an asymmetric key encryption algorithm and are managed and rotated by an external KMS server: Veeam Backup & Replication stores the public key in the configuration database and uses it for data encryption, and the KMS server stores the private key and uses it for data decryption.

You can add, change, verify and remove encryption passwords, and edit the password hints. You can also add, edit and remove KMS servers, and change the certificate of a KMS server.

Backup jobs can use both encryption passwords and KMS servers for data encryption. Encryption passwords also protect configuration backups, the capacity tier and archive tier of scale-out backup repositories, and encrypted external repositories. For details, see the Jobs, Configuration Backup, Repositories and External Repositories sections.

Get All Encryption Passwords

The HTTP GET request to the /api/v1/encryptionPasswords endpoint gets an array of all passwords that are used for data encryption.

Available to: Backup Administrator, Backup Operator, Security Administrator. Also available to custom roles that have backup permissions.

SecurityBearer
Request
query Parameters
skip
integer <int32>

Number of passwords to skip.

limit
integer <int32>
Default: 200

Maximum number of passwords to return.

orderColumn
string (EEncryptionPasswordsFiltersOrderColumn)

Sorts passwords by one of the password parameters.

Enum: "Hint" "ModificationTime"
orderAsc
boolean

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

hintFilter
string

Filters encryption passwords by the hintFilter pattern. To substitute one or more characters, use the asterisk (*) character at the beginning, at the end or both.

object (ResourceTagQuery)

Filters passwords by a tag query. The response contains only passwords that match all conditions of the query. Each condition matches the tag key exactly. The match property of the condition defines how the tag value is matched: Equals, StartsWith or Any (the value is ignored). Pass the query as a URL-encoded JSON object, for example, resourceTagQuery={"conditions":[{"key":"env","match":"Equals","value":"prod"}]}.

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.

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

Add Encryption Password

The HTTP POST request to the /api/v1/encryptionPasswords endpoint adds an encryption password.

Available to: Backup Administrator, Security 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
hint
required
string

Hint for the encryption password. Provide a meaningful hint that will help you recall the password.

password
required
string

Password for data encryption. If you lose the password, you will not be able to restore it.

uniqueId
string

Unique ID for the encryption password.

isImported
boolean

If true, the password is imported.

Responses
201

Password has been added.

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/encryptionPasswords
Request samples
application/json
{
  • "password": "passsw3wrsdf2d44",
  • "hint": "Pet name",
  • "uniqueId": "vcenter01"
}
Response samples
application/json
{
  • "id": "86e99ee0-3673-48d6-bf6a-9a8058d4de96",
  • "hint": "Pet name",
  • "modificationTime": "2023-02-13T11:22:40.801982+01:00",
  • "uniqueId": "vcenter01"
}

Get Encryption Password

The HTTP GET request to the /api/v1/encryptionPasswords/{id} endpoint gets an encryption password that has the specified id.

Available to: Backup Administrator, Backup Operator, Security Administrator. Also available to custom roles that have backup permissions.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

Encryption password ID. To get the ID, run the Get All Encryption Passwords 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

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/encryptionPasswords/{id}
Request samples
Response samples
application/json
{
  • "id": "86e99ee0-3673-48d6-bf6a-9a8058d4de96",
  • "hint": "Pet name",
  • "modificationTime": "2023-02-13T11:22:40.801982+01:00",
  • "uniqueId": "vcenter01"
}

Edit Encryption Password Hint

The HTTP PUT request to the /api/v1/encryptionPasswords/{id} endpoint edits the hint for an encryption password that has the specified id.

Available to: Backup Administrator, Security Administrator.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

Encryption password ID. To get the ID, run the Get All Encryption Passwords 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
hint
required
string

Hint for the encryption password.

id
required
string <uuid>

ID of the encryption password.

modificationTime
string <date-time>

Date and time when the password was last modified.

uniqueId
string

Unique ID for the encryption password.

isImported
boolean

If true, the password is imported.

Responses
200

Password has been updated.

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.

put/api/v1/encryptionPasswords/{id}
Request samples
application/json
{
  • "id": "86e99ee0-3673-48d6-bf6a-9a8058d4de96",
  • "hint": "Pet name",
  • "modificationTime": "2023-02-13T11:22:40.801982+01:00",
  • "uniqueId": "vcenter01"
}
Response samples
application/json
{
  • "id": "86e99ee0-3673-48d6-bf6a-9a8058d4de96",
  • "hint": "Pet name",
  • "modificationTime": "2023-02-13T11:22:40.801982+01:00",
  • "uniqueId": "vcenter01"
}

Remove Encryption Password

The HTTP DELETE request to the /api/v1/encryptionPasswords/{id} endpoint removes an encryption password that has the specified id.

Available to: Backup Administrator, Security Administrator.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

Encryption password ID. To get the ID, run the Get All Encryption Passwords 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
204

Password has been removed.

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.

delete/api/v1/encryptionPasswords/{id}
Request samples
Response samples
application/json
{
  • "errorCode": "AccessDenied",
  • "message": "Unauthorized. Get bearer JWT token at /api/login"
}

Change Encryption Password

The HTTP POST request to the /api/v1/encryptionPasswords/{id}/changepassword endpoint changes an encryption password that has the specified id.

Available to: Backup Administrator, Security Administrator.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

Encryption password ID. To get the ID, run the Get All Encryption Passwords 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
hint
required
string

Hint for the encryption password.

password
required
string

New password.

Responses
200

Password has been changed.

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/encryptionPasswords/{id}/changepassword
Request samples
application/json
{
  • "hint": "Pet name",
  • "password": "passsw3wrsdf2d44"
}
Response samples
application/json
{ }

Verify Encryption Password

The HTTP POST request to the /api/v1/encryptionPasswords/{id}/verify endpoint verifies an encryption password that has the specified id.

Available to: Backup Administrator, Backup Operator, Security Administrator. Also available to custom roles that have backup permissions.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

ID of the encryption password.

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

Password to be verified.

Responses
200

Password has been verified.

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/encryptionPasswords/{id}/verify
Request samples
application/json
{
  • "password": "Ent3rP@ssw0rd"
}
Response samples
application/json
{
  • "isSuccessful": true,
  • "message": "The provided password matches the saved password."
}

Get All KMS Servers

The HTTP GET request to the /api/v1/kmsServers endpoint gets an array of all KMS servers that are added to the backup infrastructure.

Available to: Backup Administrator, Security Administrator.

SecurityBearer
Request
query Parameters
skip
integer <int32>

Number of KMS servers to skip.

limit
integer <int32>
Default: 200

Maximum number of KMS servers to return.

orderColumn
string (EKMSFiltersOrderColumn)

Sorts KMS servers by one of the KMS server parameters.

Enum: "Name" "Type" "Description"
orderAsc
boolean

If true, sorts KMS servers in ascending order by the orderColumn parameter.

nameFilter
string

Filters KMS servers by the nameFilter pattern. The pattern can match any KMS server parameter. To substitute one or more characters, use the asterisk (*) character at the beginning, at the end or both.

typeFilter
string (EKeyManagementServerType)

Filters KMS servers by KMS server type.

Value: "KMS"
object (ResourceTagQuery)

Filters KMS servers by a tag query. The response contains only KMS servers that match all conditions of the query. Each condition matches the tag key exactly. The match property of the condition defines how the tag value is matched: Equals, StartsWith or Any (the value is ignored). Pass the query as a URL-encoded JSON object, for example, resourceTagQuery={"conditions":[{"key":"env","match":"Equals","value":"prod"}]}.

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.

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

Add KMS Server

The HTTP POST request to the /api/v1/kmsServers endpoint adds a KMS server to the backup infrastructure.

Available to: Backup Administrator, Security 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
name
required
string

Full DNS name or IP address of the KMS server.

type
required
string (EKeyManagementServerType)

KMS server type.

port
required
integer

KMIP port on the backup server. You must open the port manually.

required
object (CertificateUploadSpec)

Certificate settings.

required
object (CertificateUploadSpec)

Certificate settings.

description
string

KMS server description.

Responses
201

KMS server has been added.

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/kmsServers
Request samples
application/json
{
  • "name": "kms01.tech.local",
  • "description": "Primary KMS server",
  • "type": "KMS",
  • "port": 5696,
  • "serverCertificate": {
    },
  • "clientCertificate": {
    }
}
Response samples
application/json
{
  • "id": "2b3c4d5e-6f70-4182-93a4-b5c6d7e8f901",
  • "name": "kms01.tech.local",
  • "description": "Primary KMS server",
  • "type": "KMS",
  • "port": 5696,
  • "serverCertificateThumbprint": "86F1769B6E0544E16A6EA1E9E9BC0BB71A8DE900",
  • "clientCertificateThumbprint": "7EA755F585E9A7179B6E0544E16A6EA1E9E9BC0B"
}

Get KMS Server

The HTTP GET request to the /api/v1/kmsServers/{id} endpoint gets a KMS server that has the specified id.

Available to: Backup Administrator, Security Administrator.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

KMS server ID. To get the ID, run the Get All KMS Servers 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

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/kmsServers/{id}
Request samples
Response samples
application/json
{
  • "id": "2b3c4d5e-6f70-4182-93a4-b5c6d7e8f901",
  • "name": "kms01.tech.local",
  • "description": "Primary KMS server",
  • "type": "KMS",
  • "port": 5696,
  • "serverCertificateThumbprint": "86F1769B6E0544E16A6EA1E9E9BC0BB71A8DE900",
  • "clientCertificateThumbprint": "7EA755F585E9A7179B6E0544E16A6EA1E9E9BC0B"
}

Edit KMS Server

The HTTP PUT request to the /api/v1/kmsServers/{id} endpoint edits a KMS server that has the specified id.

Available to: Backup Administrator, Security Administrator.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

KMS server ID. To get the ID, run the Get All KMS Servers 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
id
required
string <uuid>

ID of the KMS server.

name
required
string

Full DNS name or IP address of the KMS server.

type
required
string (EKeyManagementServerType)

KMS server type.

port
required
integer <int32>

KMIP port on the backup server.

description
string

KMS server description.

serverCertificateThumbprint
string

Thumbprint of the KMS server certificate.

clientCertificateThumbprint
string

Thumbprint of the client certificate created on the KMS server.

Responses
200

KMS server has been updated.

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.

put/api/v1/kmsServers/{id}
Request samples
application/json
{
  • "id": "2b3c4d5e-6f70-4182-93a4-b5c6d7e8f901",
  • "name": "kms01.tech.local",
  • "description": "Primary KMS server",
  • "type": "KMS",
  • "port": 5696,
  • "serverCertificateThumbprint": "86F1769B6E0544E16A6EA1E9E9BC0BB71A8DE900",
  • "clientCertificateThumbprint": "7EA755F585E9A7179B6E0544E16A6EA1E9E9BC0B"
}
Response samples
application/json
{
  • "id": "2b3c4d5e-6f70-4182-93a4-b5c6d7e8f901",
  • "name": "kms01.tech.local",
  • "description": "Primary KMS server",
  • "type": "KMS",
  • "port": 5696,
  • "serverCertificateThumbprint": "86F1769B6E0544E16A6EA1E9E9BC0BB71A8DE900",
  • "clientCertificateThumbprint": "7EA755F585E9A7179B6E0544E16A6EA1E9E9BC0B"
}

Remove KMS Server

The HTTP DELETE request to the /api/v1/kmsServers/{id} endpoint removes a KMS server that has the specified id.

Available to: Backup Administrator, Security Administrator.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

KMS server ID. To get the ID, run the Get All KMS Servers 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
204

KMS server has been removed.

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.

delete/api/v1/kmsServers/{id}
Request samples
Response samples
application/json
{
  • "errorCode": "UnexpectedContent",
  • "message": "One or more request parameters are not valid."
}

Change KMS Server Certificate

The HTTP POST request to the /api/v1/kmsServers/{id}/changeCertificate endpoint changes a certificate of a KMS server that has the specified id.

Available to: Backup Administrator, Security Administrator.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

KMS server ID. To get the ID, run the Get All KMS Servers 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 (EKMSCertificateType)

Certificate type.

Enum: "Client" "Server"
required
object (CertificateUploadSpec)

Certificate settings.

Responses
204

KMS server certificate has been changed.

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/kmsServers/{id}/changeCertificate
Request samples
application/json
{
  • "type": "Client",
  • "certificate": {
    }
}
Response samples
application/json
{
  • "errorCode": "UnexpectedContent",
  • "message": "One or more request parameters are not valid."
}