Tableau Server Client (TSC)
中datasources.get
的用法。
用法
datasources.get(req_options=None)
返回站點的所有數據源。
要獲取每個數據源的連接信息,您必須首先填充DatasourceItem
使用連接信息populate_connections(datasource_item
)方法。有關詳細信息,請參閱填充連接和視圖
REST API:Query Datasources
參數
名字 | 說明 |
---|---|
req_options |
(可選)您可以將包含附加參數的請求對象傳遞給該方法以過濾請求。例如,如果您正在搜索特定的數據源,您可以指定項目的名稱或其 ID。 |
返回
返回DatasourceItem
對象和PaginationItem
對象的列表。使用這些值來迭代結果。
示例
import tableauserverclient as TSC
tableau_auth = TSC.TableauAuth('USERNAME', 'PASSWORD')
server = TSC.Server('https://SERVERURL')
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])
相關用法
- Python Tableau datasources.get_by_id用法及代碼示例
- Python Tableau datasources.publish用法及代碼示例
- Python Tableau datasources.refresh用法及代碼示例
- Python Tableau datasources.populate_connections用法及代碼示例
- Python Tableau datasources.download用法及代碼示例
- Python Tableau datasources.update用法及代碼示例
- Python dataclasses.asdict用法及代碼示例
- Python dataclasses.dataclass用法及代碼示例
- Python dataclasses.astuple用法及代碼示例
- Python dataclasses.KW_ONLY用法及代碼示例
- Python dataclasses.field用法及代碼示例
- Python dataclasses.make_dataclass用法及代碼示例
- Python datetime timetuple()用法及代碼示例
- Python datetime astimezone()用法及代碼示例
- Python datetime.time.fromisoformat用法及代碼示例
- Python datetime timetz()用法及代碼示例
- Python datetime.utcoffset()用法及代碼示例
- Python date isoformat()用法及代碼示例
- Python datetime.datetime.fromisoformat用法及代碼示例
- Python datetime isocalendar()用法及代碼示例
- Python date toordinal()用法及代碼示例
- Python datetime轉date用法及代碼示例
- Python datetime.tzinfo()用法及代碼示例
- Python date strftime()用法及代碼示例
- Python datetime date()用法及代碼示例
注:本文由純淨天空篩選整理自tableau.github.io大神的英文原創作品 datasources.get。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。