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]
[RBACAttribute("put", "Aruba.Backup", "backupAccounts/{backupAccountID}")]
WsResult SetChangeBackupAccountOverLimitBehavior(
int backupAccountID,
EnumsOverLimitBehavior overLimitBehavior
)<OperationContractAttribute>
<RBACAttribute("put", "Aruba.Backup", "backupAccounts/{backupAccountID}")>
Function SetChangeBackupAccountOverLimitBehavior (
backupAccountID As Integer,
overLimitBehavior As EnumsOverLimitBehavior
) As WsResult[OperationContractAttribute]
[RBACAttribute(L"put", L"Aruba.Backup", L"backupAccounts/{backupAccountID}")]
WsResult^ SetChangeBackupAccountOverLimitBehavior(
int backupAccountID,
EnumsOverLimitBehavior overLimitBehavior
)[<OperationContractAttribute>]
[<RBACAttribute("put", "Aruba.Backup", "backupAccounts/{backupAccountID}")>]
abstract SetChangeBackupAccountOverLimitBehavior :
backupAccountID : int *
overLimitBehavior : EnumsOverLimitBehavior -> WsResult
function SetChangeBackupAccountOverLimitBehavior(
backupAccountID : int,
overLimitBehavior : EnumsOverLimitBehavior
) : WsResult
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.
public static string SetChangeBackupAccountOverLimitBehavior(WsBackupClient client,
int backupAccountID, Enums.OverLimitBehavior overLimitBehavior)
{
client.ClientCredentials.UserName.UserName = "ARU-0000";
client.ClientCredentials.UserName.Password = "0123456789";
StringBuilder stringBuilder = new StringBuilder();
try
{
WsResult result = client.SetChangeBackupAccountOverLimitBehavior(backupAccountID,overLimitBehavior);
if (result.Success)
{
stringBuilder.Append("Operation ends successfully\n");
}
else
{
throw new ApplicationException(result.ResultMessage);
}
}
catch (Exception ex)
{
throw new ApplicationException(ex.Message);
}
return stringBuilder.ToString();
}
See Also