Get management API endpoint dynamically from APIs or node.js

Is there a way to get the management server URL in an API so that management API calls can be made from node.js or the API itself. This is needed in a private cloud setup where management URL can vary.

0 4 654
4 REPLIES 4

No, I don't know of a way, and also

This is a Bad Idea.

Can you explain why you want to proxy Edge Admin APIs?

If I were doing this, I would store the Mgmt URL in a KVM attached to the organization.

But I probably wouldn't do it.

Because

It's a Bad Idea.

Not applicable

we wanted to proxy mgmt API for invalidating cache. we are thinking of using encrypted KVM for storing mgmt API endpoint and the credentials. The invalidate cache proxy endpoint will be given to the consumer of the proxy which use response cache and needed to clear it when needed. Is there any other way to handle this requirement ?

Can you please Ask a new question, rather than inserting a question into an answer to an old question?

5498-ask-a-question.png

HI

Instead of doing that you can create another conditional flow which can call the Invalidate Cache policy. Having this as a conditional flow, you can make sure that this is secure, not anyone can call, etc. Also you dont have to worry about the mgmt server URL, etc.