softlayer-java icon indicating copy to clipboard operation
softlayer-java copied to clipboard

SoftLayer_Network_Monitor service is not exposed

Open rubercuellar opened this issue 10 years ago • 2 comments

I'm trying to use these methods:

getIpAddressesByHardware getIpAddressByVirtualGuest

from

SoftLayer_Network_Monitor service and I cannot instantiate the service.

rubercuellar avatar May 31 '16 15:05 rubercuellar

I tried the following code without any issue (use a hardware or virtual guest object of your own):

Monitor.Service monitorService = Monitor.service(client);
List<IpAddress> ipList = monitorService.getIpAddressesByHardware(hardware, "");
for (IpAddress ip : ipList) {
    System.out.println(ip.getId() + ", " + ip.getIpAddress());
}

Could you provide more detail?

camporter avatar Jun 01 '16 03:06 camporter

I'm really sorry, you are right, my mistake

rubercuellar avatar Jun 01 '16 15:06 rubercuellar