GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Create datasource from scratch · Issue #172 · tableau/document-api-python

Create datasource from scratch #172

New issue
Copy link
New issue
Copy link
Open
Open
Create datasource from scratch#172
Copy link
Labels
connectorRequestenhancementquestion

Description

@msaguin
msaguin
opened on Jan 29, 2020
Issue body actions

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

Reacted by Jon Michaelchuck, Pavlo, bjamshid, Burak Emre Kabakcı, njrogers, Daniel Hegenbarth and Tom

Activity

  1. erathinam commented on May 2, 2020

    @erathinam
    erathinam
    on May 2, 2020
    More actions

    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.

  2. yzukerman commented on Aug 6, 2020

    @yzukerman
    yzukerman
    on Aug 6, 2020
    More actions

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

  3. sagarjhaa commented on Sep 16, 2020

    @sagarjhaa
    sagarjhaa
    on Sep 16, 2020
    More actions

    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

  4. jacalata
    added
    question
    on May 29, 2021
  5. jacalata commented on May 29, 2021

    @jacalata
    jacalata
    on May 29, 2021
    Contributor
    More actions

    TSC is a client written for the REST API.

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

  6. jacalata
    added
    enhancement
    on May 29, 2021
  7. jacalata
    added
    connectorRequest
    on Oct 17, 2021
  8. jacalata commented on Oct 17, 2021

    @jacalata
    jacalata
    on Oct 17, 2021
    Contributor
    More actions

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    connectorRequestenhancementquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.