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
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 · Cumulocity-IoT/cumulocity-microservice-templates · GitHub
Also in the docs you can find an example: Microservice SDK for Java - Cumulocity documentation
@Stefan_Witschel Thanks for helping
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.