Download Custom Files from ML Engine | Teradata Vantage - Downloading Custom Files - Teradata Vantage

Machine Learning Engine User Guide

Product
Teradata Vantage
Release Number
9.02
9.2.4
9.2.3
2.3.2
1.3
Published
May 2022
Language
English (United States)
Last Update
2022-05-04
dita:mapPath
kaz1597341649653.ditamap
dita:ditavalPath
ehs1594682156756.ditaval
dita:id
B700-4004
lifecycle
previous
Product Category
Teradata Vantageā„¢

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>