Yes, you can make composite calls using the SDK. For the provided example (POST a server with a VOLUME and a NIC), using the Java SDK, you will have to use this method. The Server object has a field named ServerEntities , that contains cdroms, volumes, and nics. Here is where you can define the volume and the nic you want, and then call the create method. In this way, the SDK will create the attached entitites (if they do not already exist) and there will be no need of making different POST requests.
If you need any more details, just let me know.
• https://github.com/ionos-cloud/sdk-java/blob/master/pom.xml uses
• the dependency
• maven is ok with that
• but Eclipse complains about that:
he type java.time.Duration cannot be resolved. It is indirectly referenced from required .class files and will not work until you set