Samples


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.

Download the samples

Samples list

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.

Run the samples

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