C# REST API wrapper for Veeam Backup for Microsoft Office 365
Veeam Backup for Microsoft Office 365
- Library is under construction...
var options = new VeeamO365ClientOptions(
new Uri("https://server:4443"),
@"DOMAIN\username",
"password".ToSecureString(),
TimeSpan.FromMinutes(20)); //HTTP call timeout. If you want to download large backup files, set this attribute to high value.
using var client = VeeamO365Client.CreateAuthenticatedClient(options);
var organizations = await client.Organizations.GetOrganizations();
var jobs = await organizations.First().GetJobsAsync();
var sampleJob = jobs.First();
//you can always manipulate with objects by calling client
await client.Jobs.StartJobAsync(sampleJob.Id);
//sometimes you can achieve the same thing by calling method on given object
await sampleJob.StartJobAsync();