Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Get TargetServer info at runtime

Not applicable

Is there a way to get the info associated with a TargetServer configuration at runtime. For instance if I have configured "cnn" as the key to "http://www.cnn.com" in the Target Servers, I want to use the key cnn to get the host, port, enabled entries associated with it.

The only way I know right now is to call the REST API but I don't want to do that within my proxy for performance reasons. Is this info somehow exposed?

We already have a KVM with various clients that could use different servers, but multiple clients can use the same server, so instead of repeating the info in our KVM we want to just use the target server definition. We could have yet another KVM for this but this functionality already exists in Apigee so we want to leverage that.

Example:

Client1 -> server1

Client2 -> server2

Client3 -> server1

Client4 -> server3

etc.

server1, 2, 3 all defined in Target servers. I read the key from my KVM and lookup the Target server definition, then construct and set the appropriate target.

0 4 768
4 REPLIES 4