Hello all,
I have a use case, where I will get a list of all target urls. I have to create apigee proxies in front of those target urls.
Im thinking of writing a script, which will read all the target urls one by one, and for every target url read, i will create a folder structure as follows:
screenshot-from-2017-11-24-10-59-43.png
The proxies folder has the deafult.xml file and the target folder has another default.xml file for target.
then i will use apigeetool to deploy the apiproxy folder structure created. I will use the below command.
apigeetool deployproxy -u "xyz" -p "********" -o xyz -n FirstProxy -e test
Is this the right approach? Are there any simpler methods of doing it?
style="margin-left: 40px;">
I would have a template proxy (probably hosted at some git provider) then for every target urls I will issue a couple of sed commands on a fresh copy of the template as to replace the proxy base path at api xml file along with apiproxy/proxies/default.xml and target url at apiproxy/targets/default.xml
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |