Help Center
Choose product document...
Veeam Backup & Replication 9.5 [Archived]
RESTful API Reference

(GET) /repositories/{ID}

Returns a resource representation of a backup repository having the specified ID. The backup repository is created on the Veeam backup server connected to Veeam Backup Enterprise Manager.

Request

To get a backup repository, you need to send the GET HTTP request to the URL of the /repositories/{ID} resource.

HTTP Request

GET http://<Enterprise-Manager>:9399/api/repositories/{ID}

Request Headers

The request contains the following headers:

Header

Required

Description

X-RestSvcSessionId

True

The request requires authorization. In the header, the client must send a session ID copied from the server reply to the request creating a new logon session. To learn more, see Authentication and Security.

Request Body

None.

Query Parameters

The following parameters can be used in queries.

Parameter

Type

Description

Can Be Used for Filtering

Can Be Used for Sorting

Uid

URN

ID of the backup repository resource, for example: urn: veeam:Repository:b609c947-dd30-4295-8b57-cc880329dbd6.

True

True

Name

String

Name of the backup repository, for example: Backups Vol2.

True

True

FreeSpace

Int64

Free space available on the backup repository.

True

True

Capacity

Int64

Total space available on the backup repository.

True

True

BackupServerUid

URN

ID of the Veeam backup server parent to the backup repository resource, for example: urn:veeam:BackupServer:15942270-fb56-4dcc-96e9-5f80e4725a15.

True

True

BackupServerName

String

Name of the Veeam backup server parent to the backup repository resource. for example: BACKUPSERVER.

True

True

Response

The server returns the following response to the client.

Response Codes

A successfully completed operation returns response code 200 Success.

Response Headers

The response to this request contains the following headers. The response may also include additional standard HTTP headers.

Header

Description

Content-length

The length of the response body.

Content-type

The media type and syntax of the request body message: application/xml.

Response Body

In the response body, Veeam Backup Enterprise Manager returns a representation of the /repositories/{ID} resource.

Example

The example below returns a backup repository having ID bffeb9f5-1bdd-4bbd-9299-6fcb7c37bdf6.

Request:

GET http://localhost:9399/api/repositories/bffeb9f5-1bdd-4bbd-9299-6fcb7c37bdf6

 

Request Header:

X-RestSvcSessionId   NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj

 

Response:

200 Success

 

Response Body:

<Repository xmlns="http://www.veeam.com/ent/v1.0" Type="Repository" Href="http://localhost:9399/api/repositories/bffeb9f5-1bdd-4bbd-9299-6fcb7c37bdf6?format=Entity" Name="Backup Volume 01" UID="urn:veeam:Repository:bffeb9f5-1bdd-4bbd-9299-6fcb7c37bdf6">
 <Links>
   <Link Rel="Up" Type="BackupServerReference" Href="http://localhost:9399/api/backupServers/ce15a8c7-aa49-495e-b05b-ee3398c91018" Name="srv02.veeam.local" />
   <Link Rel="Alternate" Type="RepositoryReference" Href="http://localhost:9399/api/repositories/bffeb9f5-1bdd-4bbd-9299-6fcb7c37bdf6" Name="Backup Volume 01" />
   <Link Rel="Down" Type="BackupReferenceList" Href="http://localhost:9399/api/repositories/bffeb9f5-1bdd-4bbd-9299-6fcb7c37bdf6/backups" />
   <Link Rel="Down" Type="ReplicaReferenceList" Href="http://localhost:9399/api/repositories/bffeb9f5-1bdd-4bbd-9299-6fcb7c37bdf6/replicas" />
 </Links>
 <Capacity>1079639011328</Capacity>
 <FreeSpace>881812750336</FreeSpace>
 <Kind>WindowsLocal</Kind>
</Repository>

 

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Backup Explorers User Guide

Backup and Restore of SQL Server Databases

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide