Click or drag to resize

IWsBackupGetBackupAccountStatistics Method

Get bachkup account Statistics

Namespace:  Aruba.Cloud.WsBackup
Assembly:  Aruba.Cloud.WsBackup (in Aruba.Cloud.WsBackup.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult<List<BackupStatistics>> GetBackupAccountStatistics(
	GetBackupAccountStatisticsRequest getBackupAccountStatisticsRequest
)

Parameters

getBackupAccountStatisticsRequest
Type: Aruba.Cloud.WsBackup.EntitiesGetBackupAccountStatisticsRequest

Return Value

Type: WsResultListBackupStatistics
Examples
The method returns the list of bakcup account usage history
/// WsBackupClient.GetBackupAccountStatistics     Method (c# .NET)
public static string GetBackupAccountStatistics(WsBackupClient client, int backupAccountID, DateTime BeginDate,BackupResourceType resourceType)
{
//specify the account login details
client.ClientCredentials.UserName.UserName = "ARU-0000";
client.ClientCredentials.UserName.Password = "0123456789";

StringBuilder stringBuilder = new StringBuilder();

try
{
// call method WsResult
// obtaining a
WsResult result = client.GetBackupAccountStatistics(backupAccountID,begindDate,ResourceType);

// if the call is Success print returned values
if (result.Success)
{
stringBuilder.Append("Operation ends successfully\n");
}
else
{
throw new ApplicationException(result.ResultMessage);
}
}
catch (Exception ex)
{
// re-run the error
throw new ApplicationException(ex.Message);
}

return stringBuilder.ToString();
}
See Also