IWsMonitoringGetMonitoringCheckType Method |
Namespace: Aruba.Cloud.WsMonitoring
[OperationContractAttribute] WsResult<List<MonitoringCheckTypeEntity>> GetMonitoringCheckType()
/// WsMonitoring.GetMonitoringCheckTypes Method (c# .NET) public static string GetMonitoringCheckTypes(WsMonitoringClient client) { //specify the account login details client.ClientCredentials.UserName.UserName = "ARU-0000"; client.ClientCredentials.UserName.Password = "0123456789"; StringBuilder stringBuilder = new StringBuilder(); try { // call method GetMonitoringCheckType // obtaining a WsResultOfArrayOfMonitoringCheckTypeEntity item WsResultOfArrayOfMonitoringCheckTypeEntity result = client.GetMonitoringCheckType(); // if the call is Success print returned values if (result.Success) { stringBuilder.Append("Operation ends successfully\n"); // get Value returned from server MonitoringCheckTypeEntity[] items = result.Value; // for each item print the information foreach (MonitoringCheckTypeEntity item in items) { stringBuilder.Append("\nMonitoringCheckTypeID: "); stringBuilder.Append(item.MonitoringCheckTypeID); stringBuilder.Append("\nDescription: "); stringBuilder.Append(item.Description); } } else { throw new ApplicationException(result.ResultMessage); } } catch (Exception ex) { // re-run the error throw new ApplicationException(ex.Message); } return stringBuilder.ToString(); }
GetMonitoringCheckTypeResponse: { GetMonitoringCheckTypeResult: { ExceptionInfo: [System.String], ResultCode: 0, ResultMessage: [System.String], Success: true, Value: { MonitoringCheckTypeEntity: { Description: DNS, MonitoringCheckTypeID: 2, }, MonitoringCheckTypeEntity: { Description: FTP, MonitoringCheckTypeID: 3, }, MonitoringCheckTypeEntity: { Description: HTTP, MonitoringCheckTypeID: 4, }, MonitoringCheckTypeEntity: { Description: HTTPS, MonitoringCheckTypeID: 5, }, MonitoringCheckTypeEntity: { Description: IMAP, MonitoringCheckTypeID: 6, }, MonitoringCheckTypeEntity: { Description: MySQL, MonitoringCheckTypeID: 7, }, MonitoringCheckTypeEntity: { Description: Microsoft SQL Server, MonitoringCheckTypeID: 8, }, MonitoringCheckTypeEntity: { Description: Oracle, MonitoringCheckTypeID: 9, }, MonitoringCheckTypeEntity: { Description: PING, MonitoringCheckTypeID: 10, }, MonitoringCheckTypeEntity: { Description: POP3, MonitoringCheckTypeID: 11, }, MonitoringCheckTypeEntity: { Description: PostgreSQL, MonitoringCheckTypeID: 12, }, MonitoringCheckTypeEntity: { Description: SMTP, MonitoringCheckTypeID: 13, }, MonitoringCheckTypeEntity: { Description: SSH, MonitoringCheckTypeID: 14, }, MonitoringCheckTypeEntity: { Description: TCP, MonitoringCheckTypeID: 15, }, MonitoringCheckTypeEntity: { Description: Telnet, MonitoringCheckTypeID: 16, }, MonitoringCheckTypeEntity: { Description: Certificate SSL, MonitoringCheckTypeID: 17, }, }, }, }, }, }