Search code examples
oracle-cloud-infrastructureoci-java-sdk

REST API or Java SDK, Which is preferable for monitoring Oracle Cloud Compute VM?


Which one makes process easier, minimum lines to code and easy to use.


Solution

  • The Java SDK will be easier, assuming you are used to coding in Java. With using the REST API directly, you have to managing the signing logic yourself, as well as be familiar with HTTP semantics like URI, path, query params, headers, body, etc. The Java SDK (and the other OCI SDKs) abstract that all away for you.