Is there an API exposed by Apigee which can be invoked to change the target end point? If is that I can run a script to change endpoint. Note: The request cannot have any changes to suggest change in target endpoint. ,Usecase: Dynamically change target endpoint.
Answer by Christian King · Feb 17 at 08:34 AM
You could:
a) Configure your proxy to use a target server, then update the target server definition: https://apidocs.apigee.com/docs/targetservers/1/routes/organizations/%7Borg_name%7D/environments/%7Benv_name%7D/targetservers/%7Btargetserver_name%7D/put
b) Read the target url from KVM and set it with target.url ( https://docs.apigee.com/api-platform/reference/variables-reference#target ) then change the KVM contents with your script using the KVM API https://apidocs.apigee.com/docs/key-value-maps/1/routes/organizations/%7Borg_name%7D/keyvaluemaps/%7Bmap_name%7D/entries/%7Bentry_name%7D/post
Answer by Priyadarshi Ajitav Jena · Feb 17 at 09:51 AM
Modifing target endpoint can be done dynamically using loadbalancer variable.
You can use management api call to update the target configured in loadbalancer variable.
If you want to do inside a proxy then use target.url get updated in your script or assign message policy with your condition you want.
I didn't understand question in edge developer Bootcamp course exercise? 0 Answers
How to create a proxy endpoint using management API? 1 Answer
Increase timeout on public cloud to resolve 504 Gateway timeout error 1 Answer
API Proxy update (ADD/UPDATE/DELETE) via Administative APIs 4 Answers
Concurrent rate limit to send 429 http status by using a property 1 Answer