bernard li
bernard li4w ago

How to obtain the configuration of the Secret Generator in the default setting

https://$CUSTOM-DOMAIN/admin/v1/secretgenerators/:generatorType How to call this interface in the zitadel typescript project? I can't find the corresponding interface information
10 Replies
Rajat
Rajat4w ago
hey @bernard li van you please describe your question a bit more https://discord.com/channels/927474939156643850/1309166758699208785 thanks
bernard li
bernard liOP4w ago
Use-case: Company needs Environment: Zitadel Cloud Version: v2 Stack: I need to obtain the relevant configuration of Zitadel's secret generator in the default settings interface,how to obtain this configuration in the zitadel typescript project; What went wrong: I don't know how to call this interface in the zitadel typescript project; Attachments:The first image is the configuration information I hope to obtain through the interface,The second picture shows me finding relevant code about SecretGenerator in the zitadel typescript project, but there is no code block for GenService. So, how can I call it。
No description
No description
Rajat
Rajat4w ago
hey @bernard li thanks , will get bacl to you now, th aks for being super detailed
bernard li
bernard liOP4w ago
hey @Rajat any news?
Rajat
Rajat4w ago
hey @bernard li good morning, I will check with my team and get back to you on this
bernard li
bernard liOP4w ago
thanks
Rajat
Rajat3w ago
hey @bernard li I am no ts guru in any fashion 😄 and seems like my engineers are busy so did some more findings and rthe methods do exist,the reason you didn’t see them before is because your repo alone doesn’t ship the generated proto files anymore. They come from the @zitadel/proto npm package once you run pnpm install. The methods you need are: ListSecretGenerators GetSecretGenerator UpdateSecretGenerator So in your TS project you just import from @zitadel/proto and call through AdminService.
No description
Rajat
Rajat3w ago
lmk if this is what you were looking for
bernard li
bernard liOP3w ago
Thank you very much for your answer. This is exactly what I wanted
Rajat
Rajat3w ago
hey @bernard li awesome 🙂 pls mark my answer with ✅ and it will auto close this thread, glad it woekd out

Did you find this page helpful?