External Repositories

An external repository is a read-only repository that stores backups created by Veeam Backup for AWS, Veeam Backup for Microsoft Azure and Veeam Backup for Google Cloud, including backups stored in Veeam Data Cloud Vault. After you connect to an external repository, you can use Veeam Backup & Replication to copy, import and restore the backups of cloud VMs that it stores, for example, to migrate workloads between cloud, on-premises and virtual infrastructures. The REST API supports both the standard and archive storage tiers of each cloud provider.

You can add, edit and remove external repositories and get their states, which include the used space and status of each repository. To synchronize a repository with the object storage and fetch newly created restore points, rescan the repository; you cannot rescan an external repository of the archive tier. If the components on the servers that serve an external repository are out of date, upgrade the repository: Veeam Backup & Replication upgrades the components on its host, mount servers and gateway servers.

Get All External Repositories

The HTTP GET request to the /api/v1/backupInfrastructure/externalRepositories endpoint gets an array of all external repositories that are added to the backup infrastructure.

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

SecurityBearer
Request
query Parameters
skip
integer <int32> >= 0

Number of external repositories to skip.

limit
integer <int32> >= 1
Default: 200

Maximum number of external repositories to return.

orderColumn
string (EExternalRepositoriesFiltersOrderColumn)

Sorts external repositories by one of the repository parameters.

Enum: "Name" "Type" "Path"
orderAsc
boolean

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

nameFilter
string

Filters external repositories by the nameFilter pattern. The pattern can match the repository name. To substitute one or more characters, use the asterisk (*) character at the beginning, at the end or both.

typeFilter
Array of strings (ERepositoryType)

Filters external repositories by repository type.

Items Enum: "WinLocal" "LinuxLocal" "Smb" "Nfs" "AzureBlob" "AzureDataBox" "AzureArchive" "AmazonS3" "AmazonSnowballEdge" "AmazonS3Glacier" "S3Compatible" "GoogleCloud" "IBMCloud" "ExtendableRepository" "DellDataDomain" "ExaGrid" "HPEStoreOnce" "QuantumDXi" "WasabiCloud" "LinuxHardened" "Infinidat" "Fujitsu" "VeeamDataCloudVault" "S3GlacierCompatible" "S3Integrated" "Cloud" "Foreign" "SanSnapshotOnly" "Tape" "AmazonS3External" "AzureStorageExternal" "PlatformServiceExternal" "GoogleCloudStorageExternal" "PlatformServiceVmbApi" "AmazonS3GlacierExternal" "GoogleArchiveStorageExternal" "AzureArchiveStorageExternal" "HPEStoreOnceCloudBank" "VeeamVault" "ElevenElevenS3" "AbrVirtual" "VeeamDataCloudVaultArchive" "VeeamDataCloudVaultAwsExternal" "VeeamDataCloudVaultAzureExternal"
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/backupInfrastructure/externalRepositories
Request samples
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Add External Repository

The HTTP POST request to the /api/v1/backupInfrastructure/externalRepositories endpoint adds an external repository to the backup infrastructure. The backup appliance specified in the request creates the repository in the cloud storage, and then Veeam Backup & Replication adds the repository to the backup server.

The type property defines the cloud storage. One schema of each cloud provider covers both the standard and archive storage tiers: Amazon S3 and Amazon S3 Glacier, Azure Blob and Azure Archive, Google Cloud Storage and Google Cloud Archive. For a Veeam Data Cloud Vault repository, use the VeeamDataCloudVaultAwsExternal or VeeamDataCloudVaultAzureExternal type. In this case, Veeam Backup & Replication takes the storage settings from the vault and creates the credentials for the vault.

Veeam Backup & Replication detects whether immutability is enabled for the bucket or container and ignores the immutabilityEnabled values in the request.

Available to: Backup Administrator.

SecurityBearer
Request
query Parameters
overwriteOwner
boolean

If true, Veeam Backup & Replication overwrites the owner of the external repository. For Azure Blob, Azure Archive, Google Cloud Storage and Google Cloud Archive repositories, the request fails if the value is true.

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

External repository name.

type
required
string (ERepositoryType)

Repository type.

required
object (AmazonS3ExternalRepositoryAccountSpec)

Account settings of the Amazon S3 external repository.

required
object (AmazonS3ExternalRepositoryBucketModel)

Bucket settings of the Amazon S3 external repository.

description
string

External repository description.

object (AmazonS3ExternalRepositoryEncryptionModel)

Encryption settings of the Amazon S3 external repository.

object (MountServersSettingsModel)

Mount server settings.

Responses
201

An Infrastructure session has been created to add the external repository. 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/backupInfrastructure/externalRepositories
Request samples
application/json
{
  • "name": "AWS External Repository",
  • "description": "Backups created by Veeam Backup for AWS",
  • "type": "AmazonS3External",
  • "account": {
    },
  • "bucket": {
    },
  • "encryption": {
    },
  • "mountServer": {
    }
}
Response samples
application/json
{
  • "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  • "name": "Infrastructure Item Saving",
  • "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  • "sessionType": "Infrastructure",
  • "creationTime": "2026-10-19T09:12:44.318+02:00",
  • "state": "Starting",
  • "progressPercent": 0,
  • "result": {
    },
  • "usn": 512340,
  • "initiatedBy": "veeamadmin",
  • "originalSessionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Get All External Repository States

The HTTP GET request to the /api/v1/backupInfrastructure/externalRepositories/states endpoint gets an array of all external repository states. The states include the used space and status of each repository.

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

SecurityBearer
Request
query Parameters
skip
integer <int32> >= 0

Number of external repository states to skip.

limit
integer <int32> >= 1
Default: 200

Maximum number of external repository states to return.

orderColumn
string (EExternalRepositoriesFiltersOrderColumn)

Sorts external repository states by one of the state parameters.

Enum: "Name" "Type" "Path"
orderAsc
boolean

If true, sorts external repository states in ascending order by the orderColumn parameter.

nameFilter
string

Filters external repository states by the nameFilter pattern. The pattern can match the repository name. To substitute one or more characters, use the asterisk (*) character at the beginning, at the end or both.

typeFilter
Array of strings (ERepositoryType)

Filters external repository states by repository type. Multiple values may be specified to match any of them.

Items Enum: "WinLocal" "LinuxLocal" "Smb" "Nfs" "AzureBlob" "AzureDataBox" "AzureArchive" "AmazonS3" "AmazonSnowballEdge" "AmazonS3Glacier" "S3Compatible" "GoogleCloud" "IBMCloud" "ExtendableRepository" "DellDataDomain" "ExaGrid" "HPEStoreOnce" "QuantumDXi" "WasabiCloud" "LinuxHardened" "Infinidat" "Fujitsu" "VeeamDataCloudVault" "S3GlacierCompatible" "S3Integrated" "Cloud" "Foreign" "SanSnapshotOnly" "Tape" "AmazonS3External" "AzureStorageExternal" "PlatformServiceExternal" "GoogleCloudStorageExternal" "PlatformServiceVmbApi" "AmazonS3GlacierExternal" "GoogleArchiveStorageExternal" "AzureArchiveStorageExternal" "HPEStoreOnceCloudBank" "VeeamVault" "ElevenElevenS3" "AbrVirtual" "VeeamDataCloudVaultArchive" "VeeamDataCloudVaultAwsExternal" "VeeamDataCloudVaultAzureExternal"
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/backupInfrastructure/externalRepositories/states
Request samples
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Get External Repository

The HTTP GET request to the /api/v1/backupInfrastructure/externalRepositories/{id} endpoint gets an external repository that has the specified id.

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

SecurityBearer
Request
path Parameters
id
required
string <uuid>

External repository ID. To get the ID, run the Get All External Repositories 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/backupInfrastructure/externalRepositories/{id}
Request samples
Response samples
application/json
{
  • "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  • "name": "AWS External Repository",
  • "description": "Backups created by Veeam Backup for AWS",
  • "type": "AmazonS3External",
  • "path": "amazonS3://veeam-bucket/Veeam/Backup/veeam-aws-backups",
  • "account": {
    },
  • "bucket": {
    },
  • "encryption": {
    },
  • "mountServer": {
    }
}

Edit External Repository

The HTTP PUT request to the /api/v1/backupInfrastructure/externalRepositories/{id} endpoint edits an external repository that has the specified id. The type property must match the type of the repository. You cannot change the location of the repository: the regionId, bucketName, containerName and folderName properties, the account.regionType property of Amazon S3 repositories and the account.vaultId property of Veeam Data Cloud Vault repositories.

Available to: Backup Administrator.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

External repository ID. To get the ID, run the Get All External Repositories request.

query Parameters
overwriteOwner
boolean

If true, Veeam Backup & Replication overwrites the owner of the external repository if another backup server owns it. The owner is overwritten only if the request changes the credentials. For a Veeam Data Cloud Vault repository, the owner is overwritten only if the repository has no credentials. For a Veeam Data Cloud Vault repository on Amazon S3, true also overwrites the owner of the storage vault if another backup appliance owns it, even if the repository has credentials. The ownership of the vault passes to the backup appliance associated with the repository, and backup policies of the previous owner start failing.

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

External repository name.

type
required
string (ERepositoryType)

Repository type.

required
object (AmazonS3ExternalRepositoryAccountSpec)

Account settings of the Amazon S3 external repository.

required
object (AmazonS3ExternalRepositoryBucketModel)

Bucket settings of the Amazon S3 external repository.

description
string

External repository description.

object (AmazonS3ExternalRepositoryEncryptionModel)

Encryption settings of the Amazon S3 external repository.

object (MountServersSettingsModel)

Mount server settings.

Responses
201

An Infrastructure session has been created to edit the external repository. 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.

put/api/v1/backupInfrastructure/externalRepositories/{id}
Request samples
application/json
{
  • "name": "AWS External Repository",
  • "description": "Backups created by Veeam Backup for AWS",
  • "type": "AmazonS3External",
  • "account": {
    },
  • "bucket": {
    },
  • "encryption": {
    },
  • "mountServer": {
    }
}
Response samples
application/json
{
  • "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  • "name": "Infrastructure Item Saving",
  • "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  • "sessionType": "Infrastructure",
  • "creationTime": "2026-10-19T09:40:05.102+02:00",
  • "state": "Starting",
  • "progressPercent": 0,
  • "result": {
    },
  • "usn": 512397,
  • "initiatedBy": "veeamadmin",
  • "originalSessionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Remove External Repository

The HTTP DELETE request to the /api/v1/backupInfrastructure/externalRepositories/{id} endpoint removes an external repository that has the specified id from the backup infrastructure. You cannot remove the repository while its backups are used by backup copy jobs or Instant Recovery sessions.

Available to: Backup Administrator.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

External repository ID. To get the ID, run the Get All External Repositories 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
201

An InfrastructureItemDeletion session has been created to remove the external repository. To check the progress, track the session state with the Get Session request.

202

Accepted. Four-eyes authorization is enabled: the operation is not performed, an approval request is created instead. Request details are available in the approval requests list.

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/backupInfrastructure/externalRepositories/{id}
Request samples
Response samples
application/json
{
  • "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  • "name": "Infrastructure Item Deletion",
  • "jobId": "3f2b8c71-4d5e-4a96-b1c7-8e0d2a6f5b94",
  • "sessionType": "InfrastructureItemDeletion",
  • "creationTime": "2026-10-20T11:03:27.655+02:00",
  • "state": "Starting",
  • "progressPercent": 0,
  • "result": {
    },
  • "usn": 513012,
  • "initiatedBy": "veeamadmin",
  • "originalSessionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Rescan External Repository

The HTTP POST request to the /api/v1/backupInfrastructure/externalRepositories/{id}/rescan endpoint rescans an external repository that has the specified id. During the rescan, Veeam Backup & Replication synchronizes the state of the repository with the state of the object storage and fetches newly created restore points. You cannot rescan an external repository of the archive tier or a repository whose access credentials are missing or not available. The Veeam plug-in that serves the repository (Veeam Plug-in for AWS, Veeam Plug-in for Microsoft Azure or Veeam Plug-in for Google Cloud) must be installed on the backup server.

Available to: Backup Administrator.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

External repository ID. To get the ID, run the Get All External Repositories 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
201

A ConfigurationResynchronize session has been created to rescan the external repository. 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/backupInfrastructure/externalRepositories/{id}/rescan
Request samples
Response samples
application/json
{
  • "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  • "name": "Configuration Database Resynchronize",
  • "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  • "sessionType": "ConfigurationResynchronize",
  • "creationTime": "2026-10-20T11:21:48.94+02:00",
  • "state": "Starting",
  • "progressPercent": 0,
  • "result": {
    },
  • "usn": 513058,
  • "initiatedBy": "veeamadmin",
  • "originalSessionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Upgrade External Repository

The HTTP POST request to the /api/v1/backupInfrastructure/externalRepositories/{id}/upgrade endpoint upgrades the components on the servers that serve an out-of-date external repository that has the specified id: its host, mount servers and gateway servers. Servers shared with other repositories are upgraded as well. If the components are already up to date, the request fails. The Veeam plug-in that serves the repository (Veeam Plug-in for AWS, Veeam Plug-in for Microsoft Azure or Veeam Plug-in for Google Cloud) must be installed on the backup server.

The request creates a HostComponentsUpdate session.

Available to: Backup Administrator.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

External repository ID. To get the ID, run the Get All External Repositories 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
201

A HostComponentsUpdate session has been created to upgrade the external repository. 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/backupInfrastructure/externalRepositories/{id}/upgrade
Request samples
Response samples
application/json
{
  • "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  • "name": "Host Upgrade",
  • "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  • "sessionType": "HostComponentsUpdate",
  • "creationTime": "2026-10-20T14:07:16.233+02:00",
  • "state": "Starting",
  • "progressPercent": 0,
  • "result": {
    },
  • "usn": 513421,
  • "initiatedBy": "veeamadmin",
  • "originalSessionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}