GET /externalRepositories/{ID}/backups
Returns a resource representation of a collection of all backups on backup servers connected to Veeam Backup Enterprise Manager filtered by an external repository with a specified ID as a target repository. The backups are also represented in the /backups resource collection.
To get a list of backups, send the GET HTTP request to the URL of the /externalRepositories/{ID}/backups resource.
GET https://<Enterprise-Manager>:9398/api/externalRepositories/{ID}/backups |
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. For details, see Authentication and Security. |
Accept | False | Identifies the format of the response. Possible values: - application/xml — the client can send this value in the header to accept response in the XML format.
- application/json — the client must send this value in the header to accept the request in the JSON format.
If the request does not contain the header, the server will return the response in the XML format. |
None.
The server returns the following response to the client.
A successfully completed operation returns response code 200 OK.
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. Possible values: - application/xml
- application/json
|
In the response body, the REST API returns a representation of the /externalRepositories/{ID}/backups resource collection.
The example below returns a list of all backups from an external repository having the specified ID.
Request: GET https://localhost:9398/api/externalRepositories/{ID}/backups Request Header: X-RestSvcSessionId NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj Response: 200 OK Response Body: <EntityReferences xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Ref UID="urn:veeam:Backup:752b210a-0b35-4db8-b864-62c742aaa7b8" Name="AborWin2012r2_i-0e274c7b93d261e28 Backup (AborCPM25_07)" Href="http://local.host:9399/api/backups/752b210a-0b35-4db8-b864-62c742aaa7b8" Type="BackupReference"> <Links> <Link Href="http://local.host:9399/api/backupServers/3e1e451a-4718-4475-836b-9547ccae6872" Name="local.host" Type="BackupServerReference" Rel="Up"/> <Link Href="http://local.host:9399/api/externalRepositories/06ff6c99-f457-4fd3-87da-4d00291d3eae" Name="External repository" Type="ExternalRepositoryReference" Rel="Up"/> <Link Href="http://local.host:9399/api/backups/752b210a-0b35-4db8-b864-62c742aaa7b8?format=Entity" Name="AborWin2012r2_i-0e274c7b93d261e28 Backup (AborCPM25_07)" Type="Backup" Rel="Alternate"/> <Link Href="http://local.host:9399/api/backups/752b210a-0b35-4db8-b864-62c742aaa7b8/restorePoints" Type="RestorePointReferenceList" Rel="Down"/> <Link Href="http://local.host:9399/api/backups/50b010e6-4522-492a-a18e-d430c1bd4384" Name="Parent Backup" Type="BackupReference" Rel="Up"/> </Links> </Ref> <Ref UID="urn:veeam:Backup:50b010e6-4522-492a-a18e-d430c1bd4384" Name="AborCPM25_07" Href="http://local.host:9399/api/backups/50b010e6-4522-492a-a18e-d430c1bd4384" Type="BackupReference"> <Links> <Link Href="http://local.host:9399/api/backupServers/3e1e451a-4718-4475-836b-9547ccae6872" Name="local.host" Type="BackupServerReference" Rel="Up"/> <Link Href="http://local.host:9399/api/externalRepositories/06ff6c99-f457-4fd3-87da-4d00291d3eae" Name="External repository" Type="ExternalRepositoryReference" Rel="Up"/> <Link Href="http://local.host:9399/api/backups/50b010e6-4522-492a-a18e-d430c1bd4384?format=Entity" Name="AborCPM25_07" Type="Backup" Rel="Alternate"/> <Link Href="http://local.host:9399/api/backups/50b010e6-4522-492a-a18e-d430c1bd4384/childbackups" Type="BackupReferenceList" Rel="Up"/> </Links> </Ref> </EntityReferences> |