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

One environment and 2 different target endpoints for the same api proxy end point

In our case, there is only one environment for one organization

like:

org : company

env : common,

but our cloud foundry has 2 spaces where there are 2 instances of a service for example,

target endpoint url : http://applicationservice-localqa.company.com ( deployed in cf space 'localqa')

target endpoint url : http://applicationservice-autoqa.company.com ( deployed in cf space 'autoqa')

can I configure for one environment for one organization these 2 different target endpoint urls for same proxy endpoint?

Now, since I have only one 'common' environment for my organization 'company' , I have created a proxy endpoint like this

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProxyEndpoint name="drugsservice">
    <Description/>
    <FaultRules/>
    <PreFlow name="PreFlow">
        <Request/>
        <Response/>
    </PreFlow>
    <PostFlow name="PostFlow">
        <Request/>
        <Response/>
    </PostFlow>
    <Flows/>
    <HTTPProxyConnection>
        <BasePath>/drugcompany/v1/drugs</BasePath>
        <Properties/>
        <VirtualHost>default</VirtualHost>
    </HTTPProxyConnection>
    <RouteRule name="drugsservice">
        <TargetEndpoint>drugsservice</TargetEndpoint>
    </RouteRule>
</ProxyEndpoint>

Now for the target endpoints I have 2

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TargetEndpoint name="submissionservice">
    <Description/>
    <FaultRules/>
    <PreFlow name="PreFlow">
        <Request/>
        <Response/>
    </PreFlow>
    <PostFlow name="PostFlow">
        <Request/>
        <Response/>
    </PostFlow>
    <Flows/>
    <HTTPTargetConnection>
        <Properties/>
        <URL>http://drugservice.localqa.company.net/api/v1/drugs</URL> 
 -----> <URL>http://drugservice.autoqa.company.net/api/v1/drugs</URL>
( can this be possible)
    </HTTPTargetConnection>
</TargetEndpoint>

can this be possible?

Looking forward for some help.

Thanks in advance

Aditya Chava

0 5 495
5 REPLIES 5
Top Solution Authors