How to: Import a dar package using the REST API with curl

Solution

Uploading a package to XLD server that is not in importablePackages is possible using the POST /package/upload/{file:.*?} REST call.

curl -u<username>:<password> -X POST -H "content-type:multipart/form-data" http://<xl-deploy-
server>:<xl-deploy-port>/deployit/package/upload/Test.dar -F fileData=@/tmp/test1-1.0.dar
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.