Is there an easy way to get a managed object of the microservice application with Java SDK? Or how do I get application id using JavaSDK?
Use case:
My microservice reacts to operations. As the operation deviceId id I use the managed object of the microservice application (every micro service gets one). In order to read out all of the pending operations, I need to know the id of this managed object.
With REST API one would get the application ID of the microservice and then use it to query for the managed object representation as follows:
{{url}}/inventory/managedObjects?type=c8y_Application_33175