1.3 The accounts

By the method IWsBackup GetBackupAccount you can get backup account object by the ID

Parameter
backupAccountID
Type: int
the backup Account Identifier

/// WsBackupClient.GetBackupAccount    Method (c# .NET)
public static string GetBackupAccount(WsBackupClient client,
    int backupAccountID)
{
    //specify the account login details 
    client.ClientCredentials.UserName.UserName = "ARU-0000";
    client.ClientCredentials.UserName.Password = "0123456789";

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
        // call method GetBackupAccount  
        // obtaining a WsResultOfArrayOfBackupAccount item
        WsResultOfBackupAccount result = client.GetBackupAccount(backupAccountID);

        // if the call is Success print returned values
        if (result.Success)
        {
            stringBuilder.Append("Operation ends successfully\n");

            // get Value returned from server
            BackupAccount item = result.Value;
                 
            stringBuilder.Append("\n BackupAccount detail\n");
            stringBuilder.Append("\n RegionID: ");
            stringBuilder.Append(item.RegionID);
            stringBuilder.Append("\n BackupAccountID: ");
            stringBuilder.Append(item.BackupAccountID);
            stringBuilder.Append("\n BackupAccountStatus: ");
            stringBuilder.Append(item.BackupAccountStatus);
            stringBuilder.Append("\n BackupPricingType: ");
            stringBuilder.Append(item.BackupPricingType);

        }
        else
        {
            throw new ApplicationException(result.ResultMessage);
        }
    }
    catch (Exception ex)
    {
        // re-run the error
        throw new ApplicationException(ex.Message);
    }

    return stringBuilder.ToString();
}
/// IWsBackupClient.GetBackupAccount Method (JAVA)
public static String GetBackupAccount(WsBackupClient client,
    int backupAccountID)
{
    //specify the account login details 
    ((BindingProvider) client).getRequestContext()
        .put(BindingProvider.USERNAME_PROPERTY, "ARU-0000");
    ((BindingProvider) client).getRequestContext()
        .put(BindingProvider.PASSWORD_PROPERTY, "0123456789");

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
        // call method GetBackupAccount  
        // obtaining a WsResultOfArrayOfBackupAccount item
        WsResultOfBackupAccount result = client.GetBackupAccount(backupAccountID);

        // if the call is Success print returned values
        if (result.isSuccess())
        {
            stringBuilder.append("Operation ends successfully\n");

            // get Value returned from server
            BackupAccount item = result.getValue();
                 
            stringBuilder.append("\n BackupAccount detail\n");
            stringBuilder.append("\n RegionID: ");
            stringBuilder.append(item.getRegionID());
            stringBuilder.append("\n BackupAccountID: ");
            stringBuilder.append(item.getBackupAccountID());
            stringBuilder.append("\n BackupAccountStatus: ");
            stringBuilder.append(item.getBackupAccountStatus());
            stringBuilder.append("\n BackupPricingType: ");
            stringBuilder.append(item.getBackupPricingType());

        }
        else
        {
            throw new Exception(result.getResultMessage());
        }
    }
    catch (Exception ex)
    {
            System.out.println(ex);
    }

    return stringBuilder.toString();
}
Version
API: v2.8 URL:https://api.services.cloud.it/wsBackup/v2.8/WsBackup.svc?wsdl