当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


Python Tableau auth.switch_site用法及代码示例


Tableau Server Client (TSC)auth.switch_site的用法。

用法

auth.switch_site(site_id)

切换到当前 Tableau Server 上的其他站点。

切换避免了重新验证到同一服务器的需要。 (注意:此方法在 Tableau Online 中不可用。)

REST API:Switch Site

参数

site_item 您要切换到的站点。这应该是从 sites.get()sites.get_by_id()sites.get_by_name{} 检索到的 SiteItem

示例

# find and then switch auth to another site on the same server
site = server.sites.get_by_id('9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d')
server.auth.switch_site(site)



也可以看看
登录和退出
服务器



相关用法


注:本文由纯净天空筛选整理自tableau.github.io大神的英文原创作品 auth.switch_site。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。