Click or drag to resize

IWsBackupSetChangeBackupAccountOverLimitBehavior Method

Change over-limit behavior for the backup account. Over-limit behavior controls backup account state when one of the resources exceeds the limit of the current pricing plan.

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 SetChangeBackupAccountOverLimitBehavior(
	int backupAccountID,
	EnumsOverLimitBehavior overLimitBehavior
)

Parameters

backupAccountID
Type: SystemInt32
ID of backup account
overLimitBehavior
Type: Aruba.Cloud.WsBackup.EntitiesEnumsOverLimitBehavior
Over-limit behavior to set

Return Value

Type: WsResult
Examples
By the method IWsBackup SetChangeBackupAccountOverLimitBehavior you can Change over-limit behavior for the backup account. Over-limit behavior controls backup account state when one of the resources exceeds the limit of the current pricing plan.
/// WsBackupClient.SetChangeBackupAccountOverLimitBehavior     Method (c# .NET)
public static string SetChangeBackupAccountOverLimitBehavior(WsBackupClient client,
int backupAccountID, Enums.OverLimitBehavior overLimitBehavior)
{
//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 SetChangeBackupAccountOverLimitBehavior  item
WsResult result = client.SetChangeBackupAccountOverLimitBehavior(backupAccountID,overLimitBehavior);

// 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