1.2 Pricing Plans

By the method IWsBackup GetBackupPricingTypes you can obtain the list of BackupPricingType object depending on specific regionId. Each BackupPricingType object contains also the list of BackupPricingTypeDescription (for all languages) and the list of BackupResources, indicating the resources / amount of resources for specific Pricing type

Parameter
regionId
Type: int
Region Identifier

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

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
        // call method GetBackupPricingTypes  
        // obtaining a WsResultOfArrayOfBackupPricingType item
        WsResultOfArrayOfBackupPricingType result = client.GetBackupPricingTypes(regionId);

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

            // get Value returned from server
            BackupPricingType[] items = result.Value;

            if (items != null)
            {
                foreach (BackupPricingType item in items)
                {
                    stringBuilder.Append("\nBackupPricingType detail\n");

                    stringBuilder.Append("\n RegionID: ");
                    stringBuilder.Append(item.RegionID);
                    stringBuilder.Append("\n PricingTypeDescriptions: ");
                    stringBuilder.Append(item.PricingTypeDescriptions);
                    stringBuilder.Append("\n CreationDate: ");
                    stringBuilder.Append(item.CreationDate);
                }
            }
        }
        else
        {
            throw new ApplicationException(result.ResultMessage);
        }
    }
    catch (Exception ex)
    {
        // re-run the error
        throw new ApplicationException(ex.Message);
    }

    return stringBuilder.ToString();
}
/// IWsBackupClient.GetBackupPricingTypes   Method (JAVA)
public static String GetBackupPricingTypes(WsBackupClient client,
    int regionId)
{
        //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 GetBackupPricingTypes  
        // obtaining a WsResultOfArrayOfBackupPricingType item
        WsResultOfArrayOfBackupPricingType result = client.GetBackupPricingTypes(regionId);

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

            // get Value returned from server
            BackupPricingType[] items = result.getValue();

            if (items != null)
            {
                for (BackupPricingType item :  items)
                {
                    stringBuilder.append("\nBackupPricingType detail\n");

                    stringBuilder.append("\n RegionID: ");
                    stringBuilder.append(item.getRegionID());
                    stringBuilder.append("\n PricingTypeDescriptions: ");
                    stringBuilder.append(item.getPricingTypeDescriptions());
                    stringBuilder.append("\n CreationDate: ");
                    stringBuilder.append(item.getCreationDate());
                }
            }
        }
        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