softlayer / softlayer-java

SoftLayer API Client for Java
https://softlayer.github.io/softlayer-java/
MIT License
24 stars 26 forks source link

SoftLayer_Network_Monitor service is not exposed #32

Closed rubercuellar closed 8 years ago

rubercuellar commented 8 years ago

I'm trying to use these methods:

getIpAddressesByHardware getIpAddressByVirtualGuest

from

SoftLayer_Network_Monitor service and I cannot instantiate the service.

camporter commented 8 years ago

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?

rubercuellar commented 8 years ago

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