Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create datasource from scratch #172

Open
msaguin opened this issue Jan 29, 2020 · 5 comments
Open

Create datasource from scratch #172

msaguin opened this issue Jan 29, 2020 · 5 comments

Comments

@msaguin
Copy link

msaguin commented Jan 29, 2020

Hi,

It's not an issue but more a question :).
I would like to create a datasource from scratch using python TSC, with only the following information:

  • table name of the database
  • server name
  • host
  • username
  • password

Do you have any idea?

I would like to avoid the creation of a tds/tdsx file first. Then I have not issue to publish.

new_datasource = TSC.DatasourceItem(project_id,name=datasource_name)
server.datasources.publish(new_datasource, file_path, 'CreateNew',connection_credentials=None)

Thank you,

Mathilde

@erathinam
Copy link

Hi,
i do not think there is a way to create a data source with connection information programmatically atleast using the python library as of now from my experience. You can update an existing datasource connection provided that datasource was published with connection at first. Which means your first publish should be either using tableau desktop or downloading tdsx/tds file from tableau desktop and using TSC publish method.

@yzukerman
Copy link

You can use the Tableau Server REST API to create/append/overwrite/delete data sources.

@sagarjhaa
Copy link

Did not find a way to create datasource through REST API, it only points to Publish, update metadata, delete, or refresh the extract of a data source of a site

@jacalata
Copy link
Contributor

TSC is a client written for the REST API.

I don't think this is possible right now, but I'm not certain.

@jacalata
Copy link
Contributor

This isn't currently supported in any way, but it is an interesting idea. I'm not sure this would be the place we would implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants