3 Replies Latest reply on Feb 6, 2019 9:57 AM by Dmitry Gudkov

    consistent URL for Rest API for Tableau Online

    . Alansmithee



      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