You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/api-ref.md
+75-19Lines changed: 75 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -3,17 +3,32 @@ title: API reference
3
3
layout: docs
4
4
---
5
5
6
-
<divclass="alert alert-info">
6
+
<!---<div class="alert alert-info">
7
7
<b>Important:</b> More coming soon! This section is under active construction and might not reflect all the available functionality of the TSC library.
8
8
Until this reference is completed, we have noted the source files in the TSC library where you can get more information for individual endpoints.
9
-
</div>
9
+
</div> -->
10
+
11
+
12
+
13
+
The Tableau Server Client (TSC) is a Python library for the Tableau Server REST API. Using the TSC library, you can manage and change many of the Tableau Server and Tableau Online resources programmatically. You can use this library to create your own custom applications.
14
+
15
+
The TSC API reference is organized by resource. The TSC library is modeled after the REST API. The methods, for example, `workbooks.get()`, correspond to the endpoints for resources, such as [workbooks](#workbooks), [users](#users), [views](#views), and [data sources](#data-sources). The model classes (for example, the [WorkbookItem class](#workbookitem-class) have attributes that represent the fields (`name`, `id`, `owner_id`) that are in the REST API request and response packages, or payloads.
16
+
17
+
|:--- |
18
+
|**Note:** Some methods and features provided in the REST API might not be currently available in the TSC library. In addition, the same limitations apply to the TSC library that apply to the REST API with respect to resources on Tableau Server and Tableau Online. For more information, see the [Tableau Server REST API Reference](http://onlinehelp.tableau.com/current/api/rest_api/en-us/help.htm#REST/rest_api_ref.htm#API_Reference%3FTocPath%3DAPI%2520Reference%7C_____0){:target="_blank"}.|
19
+
20
+
10
21
11
22
* TOC
12
23
{:toc }
13
24
<!-- {:toc ::options toc_levels="1,2"} -->
14
25
15
26
<!-- {::toc_levels(1,2,3)} -->
16
27
28
+
<br>
29
+
<br>
30
+
31
+
17
32
## Authentication
18
33
19
34
You can use the TSC library to manage authentication, so you can sign in and sign out of Tableau Server and Tableau Online. The authentication resources for Tableau Server are defined in the `TableauAuth` class and they correspond to the authentication attributes you can access using the Tableau Server REST API.
@@ -269,7 +284,9 @@ Name | Description
269
284
270
285
**Exceptions**
271
286
272
-
`Datasource ID undefined` : Raises an exception if a valid `datasource_id` is not provided.
287
+
Error | Description
288
+
:--- | : ---
289
+
`Datasource ID undefined` | Raises an exception if a valid `datasource_id` is not provided.
`site_id` | The id of the site that you want to delete.
1794
1821
1795
-
1822
+
1796
1823
1797
1824
**Exceptions**
1798
1825
1799
1826
Error | Description
1800
1827
:--- | :---
1801
1828
`Site ID Undefined.` | The site id must be present and must match the id of the site you are deleting.
1802
1829
1830
+
1831
+
1803
1832
**Example**
1804
1833
1805
1834
```py
@@ -1939,7 +1968,9 @@ REST API: [Add User to Site](http://onlinehelp.tableau.com/current/api/rest_api/
1939
1968
1940
1969
**Parameters**
1941
1970
1942
-
`user_item` : You can pass the method a request object that contains additional parameters to filter the request. For example, if you were searching for a specific user, you could specify the name of the user or the user's id.
1971
+
Name | Description
1972
+
:--- | : ---
1973
+
`user_item` | You can pass the method a request object that contains additional parameters to filter the request. For example, if you were searching for a specific user, you could specify the name of the user or the user's id.
1943
1974
1944
1975
1945
1976
**Returns**
@@ -1980,7 +2011,9 @@ REST API: [Get Uers on Site](http://onlinehelp.tableau.com/current/api/rest_api/
1980
2011
1981
2012
**Parameters**
1982
2013
1983
-
``req_option` : (Optional) You can pass the method a request object that contains additional parameters to filter the request. For example, if you were searching for a specific user, you could specify the name of the user or the user's id.
2014
+
Name | Description
2015
+
:--- | : ---
2016
+
`req_option` | (Optional) You can pass the method a request object that contains additional parameters to filter the request. For example, if you were searching for a specific user, you could specify the name of the user or the user's id.
1984
2017
1985
2018
1986
2019
**Returns**
@@ -2018,12 +2051,16 @@ REST API: [Query User On Site](http://onlinehelp.tableau.com/current/api/rest_ap
2018
2051
2019
2052
**Parameters**
2020
2053
2021
-
`user_id` : The `user_id` specifies the user to query.
2054
+
Name | Description
2055
+
:--- | : ---
2056
+
`user_id` | The `user_id` specifies the user to query.
2022
2057
2023
2058
2024
2059
**Exceptions**
2025
2060
2026
-
`User ID undefined.` : Raises an exception if a valid `user_id` is not provided.
2061
+
Error | Description
2062
+
:--- | : ---
2063
+
`User ID undefined.` | Raises an exception if a valid `user_id` is not provided.
0 commit comments