On v13 of the API, I am trying to associate each VM that Veeam B&R is aware of with its last backup instant. For many of the VMs, this is possible by getting the VM name, then looking through the list of RestorePoints and finding the latest one for the VM name.
However, for Protection Groups, this method doesn't seem to be working. I am getting the list of Protection Groups:
`/api/v1/agents/protectionGroups`
And then for each `id` there, I look up the details of their discovered entities:
`/api/v1/agents/protectionGroups/{id}/discoveredEntities`
That gives me a list of VMs, including `name` and `ipAddresses`.
The `name`s of those VMs don't appear to be in the results from `/api/v1/restorePoints`. Does anyone know if those VM names should appear in `restorePoints` if they have been backed up? I am running against a test instance of Veeam that may not be the most data-rich, so I'm also not sure if it's just something in my setup and none of those VMs are actually backed up in my instance.
-
eric.staats
- Lurker
- Posts: 2
- Liked: never
- Joined: Jun 05, 2026 6:37 pm
- Full Name: Eric Staats
- Contact:
-
david.domask
- Product Manager
- Posts: 3684
- Liked: 896 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Getting last backup instant for Discovered Entity in Protection Group?
Hi eric.staats,
You're trying to get restore points for Veeam Agent for Windows backups?
Doesn't api/v1/restorePoints?limit=200&platformNameFilter=WindowsPhysical work for you? You will need to have done a backup naturally (managed by backup server I believe), and you should get result like this:
You're trying to get restore points for Veeam Agent for Windows backups?
Doesn't api/v1/restorePoints?limit=200&platformNameFilter=WindowsPhysical work for you? You will need to have done a backup naturally (managed by backup server I believe), and you should get result like this:
Code: Select all
{
"data": [
{
"platformName": "WindowsPhysical",
"type": "Increment",
"malwareStatus": "Clean",
"guestOsFamily": "Windows",
"id": "fc59bfab-a44b-42c2-96bb-2aab91d7bcc7",
"name": "HK-mgnt-Win11.lab.intern",
"platformId": "00000000-0000-0000-0000-000000000000",
"creationTime": "2026-06-09T22:05:19+02:00",
"backupId": "de50b96e-aee2-44c7-ae40-d13c881ce7c4",
"parentBackupId": "9bec96ba-7185-4fbc-8052-eaa2eff26efa",
"sessionId": "00000000-0000-0000-0000-000000000000",
"allowedOperations": [
"StartFlrRestore"
],
"backupFileId": "2635f639-854c-44f4-b841-2d1dc0b31dab",
"originalSize": 102692388864
},
Can you explain a bit more on your setup? Have you actually run any Veeam Agent for Windows backups yet?David Domask | Product Management: Principal Analyst
-
eric.staats
- Lurker
- Posts: 2
- Liked: never
- Joined: Jun 05, 2026 6:37 pm
- Full Name: Eric Staats
- Contact:
Re: Getting last backup instant for Discovered Entity in Protection Group?
I'm working on an application that uses the Veeam API to get data, so I'm less familiar with the day to day operation of Veeam itself and don't actually manage the server I'm testing against personally. My ultimate goal is associate a "last backup time" with a MAC address or IP address for the machines that Veeam is backing up. The restorePoint endpoint has the backup creation time, but it doesn't have a MAC/IP address, which is why I'm going through the protectionGroups endpoint too.
I'll see if I can actually get this scenario replicated in the test environment I'm using, but someone else on my team who looked at this earlier didn't think the "name" property on the discoveredEntities results was matching up with any of the "name" properties on the restorePoints results, so I was just wondering if that was expected or not.
I'll see if I can actually get this scenario replicated in the test environment I'm using, but someone else on my team who looked at this earlier didn't think the "name" property on the discoveredEntities results was matching up with any of the "name" properties on the restorePoints results, so I was just wondering if that was expected or not.
-
david.domask
- Product Manager
- Posts: 3684
- Liked: 896 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Getting last backup instant for Discovered Entity in Protection Group?
If you can share some examples (redacting confidential info as needed), we can better advise, as I do not see such a discrepancy in my lab regarding names. IP / MAC is not returned by the restorePoint endpoints, so this is expected.
David Domask | Product Management: Principal Analyst
Who is online
Users browsing this forum: No registered users and 8 guests