http://<paxata_host>/rest/datasource/exports/dataSourceId/dataFileId[/version][?itemPath=itemPath]
@bstephens
Thanks a lot.
I used below command given by you and was able to get the dataset data displayed.
1)
curl -sS -f -u ":<REST_TOKEN>" -X POST "http://<paxata_host>/rest/datasource/exports/local/aadd13cf65744606ad5842f1b7a22767?pretty=true" -F "format=separator" -F "tenantId=<tenantId>"
Above command displayed output in git bash window.
curl -sS -f -u ":<REST_TOKEN>" -X POST "https://<paxata_host>/rest/datasource/exports/2da34c162ed8439aa404ba1abfe7e33e/0fd2937a105449e4ac03e37d5083ea96?itemPath=/tmp/exported-text.xml" -F "format=xml" -F "tenantId=<tenantId>"
Above command threw error as "The requested URL returned error: 403 FATAL: You do not have the required permissions: ExportDataSource"
Can you please guide which permission we need to take for exporting?
Regards,
Abhijeet
@abhijeetmkhambe
Here is a more complete version. I didn't clearly indicate that you need to use your dataSourceId, dataFileId and ExportItemPath:
curl -sS -f -u ":<REST_TOKEN>" -X POST "https://<paxata_host>/rest/datasource/exports/<dataSourceId>/<dataFileId>?itemPath=<exportItemPath>" -F "format=xml" -F "tenantId=<tenantId>"
"The requested URL returned error: 403 FATAL: You do not have the required permissions: ExportDataSource"
The account that you are using does not have the necessary permission to perform and export of the datafile
Below syntax worked correctly and xml file was saved at location specified with all the data from dataset.
curl -sS -f -u ":<REST_TOKEN>" -X POST "http://<paxata_host>/rest/datasource/exports/local/aadd13cf65744606ad5842f1b7a22767?format=xml">C:/Users/PP66525/Documents/foo.xml
We specified path directly without itemPath and it worked. This is ok for lower region.
But actually we want to specify specific path of a shared drive from where other application will pick up the dataset/asnwerset. So, what needs to be done for this?
Regards,
Abhijeet