not able to upload proxy to private cloud using curl,Bundle is invalid. Empty bundle

shamhm
New Member

I have used curl command to upload proxy to private cloud.

Command used:

curl -X POST -u XXXXXXXXXXXXXX -F "file=@TestDev.zip" "https://XXXXXXXXXXXXXXXX?action=import&name=TestDev"

Error;

{ "code" : "messaging.config.beans.InvalidBundle", "message" : "Bundle is invalid. Empty bundle", "contexts" : [ ] }

Please let me know how to create/modify the proxy to private cloud using any Curl/apigee tool or any other

0 1 217
1 REPLY 1

Not applicable

can you share the bundle structure?

it should be like

apiproxy -> policies
	    proxies
	    targets
	    proxy.xml

then zip the apiproxy. directory. then can use the apigeetool and curl to upload the bundle and deploy it.