Click or drag to resize

IWsBackupSetBackupAccountStatusAsSuspended Method

Note: This API is now obsolete.

Suspends backup account so it is possible to manage existing backup services (servers and backup jobs) which remain active and working, but not possible to add new backup services.

Namespace:  Aruba.Cloud.WsBackup
Assembly:  Aruba.Cloud.WsBackup (in Aruba.Cloud.WsBackup.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
[ObsoleteAttribute]
WsResult SetBackupAccountStatusAsSuspended(
	int backupAccountID
)

Parameters

backupAccountID
Type: SystemInt32
ID of backup account

Return Value

Type: WsResult
Examples
By the method IWsBackup SetBackupAccountStatusAsSuspended you can suspend backup account so it is possible to manage existing backup services /// (servers and jobs) which remain active and working, but not possible to add new backup services.
/// WsBackupClient.SetBackupAccountStatusAsSuspended     Method (c# .NET)
public static string SetBackupAccountStatusAsSuspended(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 WsResult  
        // obtaining a SetBackupAccountStatusAsSuspended  item
        WsResult result = client.SetBackupAccountStatusAsSuspended(backupAccountID);

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