Loading tenant option in microservice

c8y_backend version:
1020.73.0

Problem statement:
when the Microservice is restarted, I want to use a specific Tenant Option to load the configured authentication

Hi,

could you explain a bit more what you want to achieve and why? Is it that you have an existing tenant option and you just want to read/query it? Which programming language are you using?

I am doing a poc, in which there are existing tenant options available in the tenant I want to load a specific tenant eg having category:“xyz-API” in the App.java file. I don’t have any idea how it can be done.

Programming Language: Java

REST call from the microservice?

This from the documentation…

“Moreover, the options can be fetched via REST using the options endpoint at microservice runtime.”

yes, but how do I load it at microservice runtime

Here is an example how this can be done: cumulocity-microservice-templates/secret at main · SoftwareAG/cumulocity-microservice-templates · GitHub

Also in the docs you can find an example: Microservice SDK for Java - Cumulocity IoT documentation

@Stefan_Witschel Thanks for helping