I'm trying to deploy a proxy with apigeetool but I got "Error: Invalid target reference default in...". Can you help me to solve it?
* config tree
└── deploy-proxy-example └── apiproxy ├── deploy-proxy-example.xml ├── policies ├── proxies │ └── default.xml └── resources └── default.xml
* deploy-proxy-example.xml
<APIProxy name="deploy-proxy-example"> <Description>Deploy Simple Proxy Example</Description> </APIProxy>
* proxies/default.xml
<ProxyEndpoint name="default"> <PreFlow> </PreFlow> <HTTPProxyConnection> <BasePath>/mocktarget_key</BasePath> <VirtualHost>default</VirtualHost> <VirtualHost>secure</VirtualHost> </HTTPProxyConnection> <RouteRule name="default"> <TargetEndpoint>default</TargetEndpoint> </RouteRule> </ProxyEndpoint>
* resources/default.xml
<TargetEndpoint name="default"> <HTTPTargetConnection> <URL>http://mocktarget.apigee.net/</URL> </HTTPTargetConnection> </TargetEndpoint>
* apigeetool command
$ cd deploy-proxy-example $ apigeetool deployproxy -u 'xxx' -p 'xxx' -o 'xxx-eval' -e 'test' -n 'deploy-proxy-example' -d . Error: Invalid target reference default in route default in proxy endpoint default in revision 1 of APIProxy deploy-proxy-example in organization xxx-eval
Solved! Go to Solution.
I found the answer. targets directory was needed instead of resources directory.
└── apiproxy ├── deploy-proxy-example.xml ├── policies ├── proxies │ └── default.xml └── targets └── default.xml
I found the answer. targets directory was needed instead of resources directory.
└── apiproxy ├── deploy-proxy-example.xml ├── policies ├── proxies │ └── default.xml └── targets └── default.xml
Good catch @zono. Please accept this answer so that its useful to others too
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |