Is it possible to Dynamically change target endpoint?

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.

Solved Solved
0 4 1,477
2 ACCEPTED SOLUTIONS

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/%7B...

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/%7...

View solution in original post

Not applicable

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.

View solution in original post

4 REPLIES 4

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/%7B...

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/%7...

Thanks Christian.

Not applicable

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.

Not applicable

Thanks for useful info!