Tableau Server Client (TSC)
中views.get
的用法。
用法
views.get(req_options=None, usage=False)
返回站點的視圖項列表。
REST API:Query Views for Site
版本
此端點適用於 REST API 版本 2.0 及更高版本。
參數
名字 | 說明 |
---|---|
req_options |
(可選)您可以將包含附加參數的請求對象傳遞給該方法以過濾請求。例如,如果您正在搜索特定視圖,則可以指定視圖的名稱或其 ID。 |
usage |
(可選)如果為 true (usage=True ),則返回視圖的使用情況統計信息。默認值為 usage=False 。 |
返回
返回所有 ViewItem
對象和 PaginationItem
的列表。使用這些值來迭代結果。
示例
import tableauserverclient as TSC
tableau_auth = TSC.TableauAuth('username', 'password')
server = TSC.Server('https://servername')
with server.auth.sign_in(tableau_auth):
all_views, pagination_item = server.views.get()
print([view.name for view in all_views])
使用尋呼機的示例
您還可以使用提供的 Pager 生成器來獲取站點上的所有視圖,而無需對結果進行分頁。
for view in TSC.Pager(server.views):
print(view.name)
相關用法
- Python Tableau views.get_by_id用法及代碼示例
- Python Tableau views.populate_csv用法及代碼示例
- Python Tableau views.populate_pdf用法及代碼示例
- Python Tableau views.populate_preview_image用法及代碼示例
- Python Tableau views.populate_image用法及代碼示例
- Python statistics variance()用法及代碼示例
- Python venv.EnvBuilder.create用法及代碼示例
- Python vars()用法及代碼示例
- Python cudf.core.column.string.StringMethods.is_vowel用法及代碼示例
- Python torch.distributed.rpc.rpc_async用法及代碼示例
- Python torch.nn.InstanceNorm3d用法及代碼示例
- Python sklearn.cluster.MiniBatchKMeans用法及代碼示例
- Python pandas.arrays.IntervalArray.is_empty用法及代碼示例
- Python tf.compat.v1.distributions.Multinomial.stddev用法及代碼示例
- Python numpy.less()用法及代碼示例
- Python Matplotlib.figure.Figure.add_gridspec()用法及代碼示例
- Python tf.compat.v1.distribute.MirroredStrategy.experimental_distribute_dataset用法及代碼示例
- Python Sympy Permutation.list()用法及代碼示例
- Python dask.dataframe.Series.apply用法及代碼示例
- Python networkx.algorithms.shortest_paths.weighted.all_pairs_dijkstra_path用法及代碼示例
- Python scipy.ndimage.binary_opening用法及代碼示例
- Python pyspark.pandas.Series.dropna用法及代碼示例
- Python torchaudio.transforms.Fade用法及代碼示例
- Python dask.dataframe.to_records用法及代碼示例
- Python arcgis.gis._impl._profile.ProfileManager.save_as用法及代碼示例
注:本文由純淨天空篩選整理自tableau.github.io大神的英文原創作品 views.get。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。