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

It's not possible to set init parameters for SoftLayer_Hardware_Server service

Open rubercuellar opened this issue 10 years ago • 2 comments

I tried the following code:


import com.softlayer.api.service.hardware.Server;
...
        // Define the hardware
        Long hardwareId = new Long(92862);

        // Create client
        ApiClient client = new RestApiClient().withCredentials(username, apiKey);

        // Define SoftLayer_Hardware_Server service
        Server.Service serverService = Server.service(client, hardwareId);

I was not able to set init parameters

rubercuellar avatar May 31 '16 15:05 rubercuellar

This is a duplicate of https://github.com/softlayer/softlayer-java/issues/21. Please try the latest master and compile the sources via maven again. You'll then have the correct service type in the example given.

camporter avatar Jun 01 '16 03:06 camporter

My apologies, I tried with the latest master and it works fine. Thanks a lot.

rubercuellar avatar Jun 01 '16 15:06 rubercuellar