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! Go to Solution.
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...
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.
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.
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.
Thanks for useful info!
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |