API: 1.1-rev1
Hi,
It does not seem to be possible to see VM names that are included in the tag based backup or replication job unless I look up a combination of tags included in the job then connect to vcenter and get a list of VMs with the tags from the job.
Looking for suggestions to get VM names by feeding a job name to an API call and getting all VMs included in the job returned.
What requests could be used in my case and is it really possible to get VM names returned for the tag based job via API?
Thanks
-
- Expert
- Posts: 140
- Liked: 18 times
- Joined: Feb 08, 2018 3:47 am
- Full Name: Kazz Beck
- Contact:
-
- Veeam Software
- Posts: 1980
- Liked: 656 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: get VMs from a combination of TAGs
Hi Kazz,
Yes, it's indeed not possible to get VMs included in jobs if they weren't added directly - tags, folders or other containers were added as sources instead. But it's not an API limitation, it's how VBR core logic works. As soon as an entity is added to a job, it's treated as a job object (non-infrastructural) with its own id.
However, if your tags have already been backed up, you can query the list of vms in a backup since processing happens on VM level:
1. Get a backup by job id: GET /api/v1/backups?jobIdFilter=<jobId>.
2. Get a list of vms included in a backup: GET /api/v1/backups/{id}/objects.
Best regards,
Oleg
Yes, it's indeed not possible to get VMs included in jobs if they weren't added directly - tags, folders or other containers were added as sources instead. But it's not an API limitation, it's how VBR core logic works. As soon as an entity is added to a job, it's treated as a job object (non-infrastructural) with its own id.
However, if your tags have already been backed up, you can query the list of vms in a backup since processing happens on VM level:
1. Get a backup by job id: GET /api/v1/backups?jobIdFilter=<jobId>.
2. Get a list of vms included in a backup: GET /api/v1/backups/{id}/objects.
Best regards,
Oleg
-
- Expert
- Posts: 140
- Liked: 18 times
- Joined: Feb 08, 2018 3:47 am
- Full Name: Kazz Beck
- Contact:
Re: get VMs from a combination of TAGs
Got it, so Veeam does not store VM names for the TAG based backups, but builds a list of VMs to process dynamically as the job starts.
-
- Lurker
- Posts: 1
- Liked: never
- Joined: Mar 19, 2024 8:53 pm
- Full Name: Dean Phelps
- Contact:
Re: get VMs from a combination of TAGs
I believe you can reestablish the Backup Job to Backup Object relationship via the following path: Backup Object => Restore Points, Restore Points => Backup, Backup => Backup Job
Who is online
Users browsing this forum: No registered users and 31 guests