Posted on 05-08-2018 12:18 AM
Hello All,
I'd like to upload a file to the cloud distribution point(Jamf Cloud Distribution Service) with CUI(Command line User Interface).
I tried uploading a file by executing the following API.
curl -u username:password --tlsv1 --header Accept:application/zip --header Content-Type:application/zip --header FILE_TYPE: 0 --header FILE_NAME:zip_test.zip --header DESTINATION: 1 --header OBJECT_ID: 113 --data @/Users/username/Desktop/test/zip_test.zip --request POST https://mydomain/dbfileupload
And then, When I checked the package in Jamf Admin Application,
"Filename" and "Chekcsum" are displayed, but "Type" is "Missing" and the package file can not be downloaded.
Is the API parameter incorrect?
I would like some information.
Solved! Go to Solution.
Posted on 05-09-2018 11:57 PM
I was able to upload a package to the cloud distribution point(Jamf Cloud Distribution Service) by doing the following.
curl -u username:password -X POST https://mydomain/dbfileupload -H 'DESTINATION: 0' -H 'OBJECT_ID: -1' -H 'FILE_TYPE: 0' -H 'FILE_NAME: test.pkg' -T '/Users/username/test.pkg'
Posted on 05-08-2018 09:09 AM
Hi. This was already discussed briefly on this thread from a few weeks ago. I suggest checking there.
The short answer is, it doesn't look like it's possible to upload a package to the JCDS via the API.
Posted on 05-09-2018 12:42 AM
Thanks! @mm2270 I would like to confirm the thread that answered.
Posted on 05-09-2018 11:57 PM
I was able to upload a package to the cloud distribution point(Jamf Cloud Distribution Service) by doing the following.
curl -u username:password -X POST https://mydomain/dbfileupload -H 'DESTINATION: 0' -H 'OBJECT_ID: -1' -H 'FILE_TYPE: 0' -H 'FILE_NAME: test.pkg' -T '/Users/username/test.pkg'