The TSM API documentation includes samples written in Python version 2.7 and a Postman collection that you can use to explore the API.
For more information about Postman, see Test with Postman.
authentication.py
. Sign in and out of TSM.backup_restore.py
. Create a backup of Tableau Server and restore the backup.status.py
. Get the status of Tableau Server.These samples all use the included tsmutils.py
module to format request URLs,
specify the TSM API version (currently 0.5), and process request responses.
The samples can be run from the command line and include command line help.
Use the -h
flag for information about the available options for each sample.
For example, for information about the backup_restore.py
sample, run the
following command:
python backup_restore.py -h