REST API knowledge exchange
Post Reply
Captnspdr
Veeam Vanguard
Posts: 27
Liked: 3 times
Joined: Apr 16, 2019 4:50 pm
Full Name: Jonah May
Contact:

Running Quick Migrations API

Post by Captnspdr »

I see a PowerShell API to start a Quick Migration, but there doesn't seem to be a way to query what quick migration tasks are currently running. It would be nice to have an API to be able to track this, that way if I only want to run say 7 concurrent migrations, I could run a script that queries the number of migrations currently running and waits for one to complete before starting the next one.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Running Quick Migrations API

Post by oleg.feoktistov »

Hi Jonah,

Are you asking regarding Powershell API, VBR REST API, EM REST API or all of them?
For powershell there is an unofficial way to get currently running migration sessions:

Code: Select all

$quickMigration = [Veeam.Backup.Core.CBaseSession]::GetRunning() | where {$_.JobType -eq 'QuickMigration'} 
Let me know if this is the question regarding the APIs other than powershell.

Thanks,
Oleg
Captnspdr
Veeam Vanguard
Posts: 27
Liked: 3 times
Joined: Apr 16, 2019 4:50 pm
Full Name: Jonah May
Contact:

Re: Running Quick Migrations API

Post by Captnspdr »

That does help Oleg, thanks. Long term I'd like to see a VBR REST API, as well as one to start Quick Migrations and Instant Recoveries, but for now that should work.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Running Quick Migrations API

Post by oleg.feoktistov »

The first version of VBR REST is still quite limited, but we have plans to enhance it in the next VBR versions of course. So I noted your request. Thanks!
bk@virtualtn.com
Enthusiast
Posts: 38
Liked: 1 time
Joined: Nov 10, 2015 2:13 pm
Full Name: BILKAM
Contact:

Re: Running Quick Migrations API

Post by bk@virtualtn.com »

Hello

If I understood correctly there is no API today to Running Quick Migrations?
Can you please confirm?
Regards
BILKAM
vinception.fr
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Running Quick Migrations API

Post by oleg.feoktistov »

Correct, no REST API for that. The closest API-like way is Powershell. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests