RESTful 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: 1171
Liked: 397 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: 1171
Liked: 397 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!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests