Description
#162 introduced the Get command for a datasource.
The url for a datasource download is unclear and as described in https://kb.tableau.com/articles/howto/downloading-a-published-extract-using-tabcmd not visible in the url.
I use following command to retrieve datasources with tabcmd:
tabcmd get "datasources/$DSNAME.tdsx" --no-certcheck -f "$DS_NAME.tdsx"
Often the url will be the same as the datasource name, but:
Note: If there are other files with the same name the command replaces the file without notification. To avoid this issue specify the path for the downloaded resource.
Below example shows a datasource that is renamed by tableau (due to a rename):
{
"result": {
"name": "xxxxxxOMSTEN_VERZEKERINGEN_PER_BEGUNSTIGDE_0002",
xxxxx
"isFileBased": false,
"isHierarchical": false,
"description": "",
"dataQualityIndicators": [],
"connectionOAuth": false,
"refreshMode": "Server",
"connectionTypeEditable": true,
"usingRemoteQueryAgent": false,
"askDataIndexing": "MANUAL",
"tags": [],
xxxx
"createdAt": "2022-01-05T13:45:38.537Z",
"updatedAt": "2023-03-28T07:09:03.822Z",
"repositoryUrl": "xxxxxxOMSTEN_VERZEKERINGEN_PER_BEGUNSTIGDE_16257521569490",
xxxxx
How can we use tabcmd to find the original datasource url based on the name?
Tabcmd list
only returns a uid that cannot be used?
<Datasource d9d03f74-928a-4d74-b72f-198b951a3a6d 'CIVL_PRODUCTOVEREENKOMSTEN_VERZEKERINGEN_PER_BEGUNSTIGDE_0002' (No Description parent=ecbeab9e-0ecf-42f2-863c-3d205cab072f >