Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update <HTTPTargetConnection> in Apigee Edge Proxy Dynamically or Runtime? #214

Open
gg-gg-v1 opened this issue Aug 4, 2021 · 0 comments

Comments

@gg-gg-v1
Copy link

gg-gg-v1 commented Aug 4, 2021

I am deploying some service called MyService on Ec2 and got the ip or url let's say https://myservice.com

Now I want to use this url https://myservice.com in apigee edge runtime,

Let's say, Below is Apigee Edge Proxy Project Structure.

apiproxy
  - policies
    - somepolicy
  - proxies
    - default.xml
  - targets
    - default.xml
  apiproxy.xml

In below xml file from targets/default.xml, I want to replace https://example.com url Dynamically or Runtime with the url (https://myservice.com) which I got when I deployed the Service called MyService on ec2.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TargetEndpoint name="default">
  <PreFlow name="PreFlow">
    <Request/>
    <Response/>
  </PreFlow>
  <Flows/>
  <PostFlow name="PostFlow">
    <Request/>
    <Response/>
  </PostFlow>
  <HTTPTargetConnection>
    <URL>https://example.com</URL>
  </HTTPTargetConnection>
</TargetEndpoint>

Main reason behind updating this url runtime is:

In my network, we are updating urls on daily basis of the services which are deployed on ec2, here for example, it is MyService on ec2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant