0 Replies Latest reply on Oct 17, 2018 10:29 AM by . Alansmithee

    consistent URL for Rest API for Tableau Online

    . Alansmithee

      Hello,

       

      Long time listener, first time caller.

       

      I note that if I use the python tableauserverclient and example helloworld like:

       

      import tableauserverclient as TSC
      tableau_auth = TSC.TableauAuth('USERNAME', 'PASSWORD')
      server = TSC.Server('https://online.tableau.com')
      with server.auth.sign_in(tableau_auth):
         all_datasources, pagination_item = server.datasources.get()
         print("\nThere are {} datasources on site: ".format(pagination_item.total_available))
         print([datasource.name for datasource in all_datasources])

       

      it fails with a (cryptic but expected) "no GET method" error, but when I connect to "https://10az.online.tableau.com/" using same code as above, it works.

       

      My question is: what is the known good URL for tableau online. Is 10az the correct choice here?

       

      @tableau support