Click or drag to resize

IWsMonitoringGetMonitoringIPAddress Method

By the method GetMonitoringIPAddress you can retrieve the list of IP Addresses for the monitoring services
By the method GetMonitoringIPAddress you can retrieve the list of IP Addresses for the monitoring services

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<List<MonitoringIPAddressEntity>> GetMonitoringIPAddress(
	MonitoringIPAddressEntity monitoringIPAddress
)

Parameters

monitoringIPAddress
Type: Aruba.Cloud.Provisioning.Entities.MonitoringSLAMonitoringIPAddressEntity

Return Value

Type: WsResultListMonitoringIPAddressEntity
Examples
By the method GetMonitoringIPAddress you can retrieve the list of IP Addresses for the monitoring services.
/// WsMonitoring.GetMonitoringIPAddress Method (c# .NET)
public static string GetMonitoringIPAddress(WsMonitoringClient client,
    String ip, int regionId)
{
    //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
 MonitoringIPAddressEntity request = new MonitoringIPAddressEntity();
 request.RegionID = regionId;
 request.IP = ip;

 // call method GetMonitoringIPAddress 
 // obtaining a WsResultOfArrayOfMonitoringIPAddressEntity item
 WsResultOfArrayOfMonitoringIPAddressEntity result =
     client.GetMonitoringIPAddress(request);

 // if the call is Success print returned values
 if (result.Success)
 {
     stringBuilder.Append("Operation ends successfully\n");

     // get Value returned from server
     MonitoringIPAddressEntity[] items = result.Value;

     // for each item print the information
     foreach (MonitoringIPAddressEntity item in items)
     {
  stringBuilder.Append("\nRegionID: ");
  stringBuilder.Append(item.RegionID);
  stringBuilder.Append("\nIp: ");
  stringBuilder.Append(item.IP);
     }
 }
 else
 {
     throw new ApplicationException(result.ResultMessage);
 }
    }
    catch (Exception ex)
    {
 // re-run the error
 throw new ApplicationException(ex.Message);
    }

    return stringBuilder.ToString();
}
GetMonitoringIPAddressResponse: {
 GetMonitoringIPAddressResult: {
    ExceptionInfo: [System.String],
    ResultCode: 0,
    ResultMessage: [System.String],
    Success: true,
    Value: {
       MonitoringIPAddressEntity: {
          IP: da 46.37.10.211 a 46.37.10.220,
          RegionID: 1,
          },
       MonitoringIPAddressEntity: {
          IP: da 81.2.232.81 a 81.2.232.90,
          RegionID: 2,
          },
       MonitoringIPAddressEntity: {
          IP: da 185.8.48.51 a 185.8.48.60,
          RegionID: 3,
          },
       MonitoringIPAddressEntity: {
          IP: da 80.211.248.51 a 80.211.248.60,
          RegionID: 7,
          },
          },
          },
          },
          },
          }
See Also