UrBackup Client API .Net
______ _ __
/ ____/___ __________(_)___ _ _____ _____/ /_
/ / / __ \/ ___/ ___/ / __ \ | / / _ \/ ___/ __/
/ /___/ /_/ / / (__ ) / / / / |/ / __(__ ) /_
\____/\____/_/ /____/_/_/ /_/|___/\___/____/\__/
Corsinvest for UrBackup Api Client (Made in Italy)
Copyright: Corsinvest Srl For licensing details please visit LICENSE.md
This software is part of a suite of tools called cv4pve-tools. If you want commercial support, visit the site
- Easy to learn
- Method named
- Return result
- Request
- Response
- Status
- Method direct access
- Get
- DownloadFile
- Login return bool if access
- Return Result class more information
The result is class Result and contain properties:
- Response returned from UrBackup (data,errors,...) Class or dynamic ExpandoObject
- StatusCode (System.Net.HttpStatusCode): Status code of the HTTP response.
- ReasonPhrase (string): The reason phrase which typically is sent by servers together with the status code.
- IsSuccessStatusCode (bool) : Gets a value that indicates if the HTTP response was successful.
var client = new UrBackupClient(false, "10.92.90.96", 55414);
if (client.Login("test", "test"))
{
//list client last backup
foreach (var item in client.Backups.Get().Response.Clients)
{
Console.Out.WriteLine(item.Name);
}
}