Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.02 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.02 KB

Mirecad.Veeam.O365.Sharp

C# REST API wrapper for Veeam Backup for Microsoft Office 365

Veeam Backup for Microsoft Office 365

Rest API doc

- Library is under construction...

How to use

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();