Step 3. Get a List of Backup Servers
To get a list of all backup servers, you need to retrieve a resource representation of the /backupServers resource. This resource contains a collection of backup servers connected to Veeam Backup Enterprise Manager.
- In the resource representation of the logon session created at the previous step, find a link to the /backupServers resource. The Rel attribute within the link component has the Down value and the Type attribute is set to BackupServerReferenceList or BackupServerList:
<Link Rel="Down" Type="BackupServerReferenceList" Href="https://localhost:9398/api/backupServers> |
- Get the URL for the backup servers collection. The URL is provided in the Href attribute of the link component:
https://localhost:9398/api/backupServers |
- Send the GET HTTP request to the retrieved URL. Veeam Backup Enterprise Manager will return a representation of all connected backup servers:
Request: GET https://localhost:9398/api/backupServers
Response: 200 OK
Response Body: <EntityReferences xmlns="http://www.veeam.com/ent/v1.0"> |