A custom file can be downloaded to any location in your client machine. The downloaded files can be opened, read, updated, or transferred to other systems like a regular file.
You can download a file from your private schema or from the public schema. Before you download, you must know your udfid.
REST API
GET https://<CLUSTER_DOMAIN>/mlengine/udfmanager/api/v1/udfs/{UDFID}?download=true
Example Request
The file will be downloaded to standard output and to users and can be redirected to a zip file in any location.
curl \ -D header.txt \ -kb cookies.txt \ -H "Accept: "application/json" \ -H "Authorization: Bearer <JWT token>" \ -X GET \ "https://<CLUSTER_DOMAIN>/mlengine/udfmanager/api/v1/udfs/e4349670-c7e3-4214- b133-66c5708a1787?download=true" > /home/tmp/output.zip
Or
curl -H "Accept: application/json" \ -D header.txt \ -o mydownload.zip \ -H "Authorization: Bearer <JWT token>" \ -X GET \ "https://<CLUSTER_DOMAIN>/mlengine/udfmanager/api/v1/udfs/e4349670-c7e3-4214- b133-66c5708a1787?download=true"
Example Response
Content-Type: "application/octet/stream" Content-Disposition: 'attachment:filename=output.zip'
<Binary content>