Click or drag to resize

IWsMonitoringSetEnqueueDeleteMonitoringService Method

By the method SetEnqueueDeleteMonitoringService you can delete a Monitoring Service
By the method SetEnqueueDeleteMonitoringService you can delete a Monitoring Service

Namespace:  Aruba.Cloud.WsMonitoring
Assembly:  Aruba.Cloud.WsMonitoring (in Aruba.Cloud.WsMonitoring.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult SetEnqueueDeleteMonitoringService(
	DeleteMonitoringServiceEntity deleteMonitoringService
)

Parameters

deleteMonitoringService
Type: Aruba.Cloud.Provisioning.Entities.MonitoringSLADeleteMonitoringServiceEntity

Return Value

Type: WsResult
Examples
By the method SetEnqueueDeleteMonitoringService you can delete a Monitoring Service.
/// WsMonitoring.SetEnqueueDeleteMonitoringService Method (c# .NET)
public static string SetEnqueueDeleteMonitoringService(WsMonitoringClient client,
   int monitoringServiceID)
{
    //specify the account login details 
    client.ClientCredentials.UserName.UserName = "ARU-0000";
    client.ClientCredentials.UserName.Password = "0123456789";

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
 // create the request object
 DeleteMonitoringServiceEntity request = new DeleteMonitoringServiceEntity();
 request.MonitoringServiceID = monitoringServiceID;

 // call method SetEnqueueDeleteMonitoringService 
 // obtaining a WsResult item
 WsResult result = client.SetEnqueueDeleteMonitoringService(request);

 //if the call is Success print value
 if (result.Success)
 {
     // get Value returned from server
     stringBuilder.Append(" Operation successfully. Result Code : ");
     stringBuilder.Append(result.ResultCode);
 }
 else
 {
     throw new ApplicationException(result.ResultMessage);
 }
    }
    catch (Exception ex)
    {
 // re-run the error
 throw new ApplicationException(ex.Message);
    }

    return stringBuilder.ToString();
}
See Also