The API python examples on the Tintri GitHub site have been updated.
python_1_1.py has been updated to disable SSL warnings. To facilitate this, a new method,
api_version(), has been added to the library. It replaces the
/info GET invoke.
All the API python client examples have been updated to use the
python_1_1.py library and
api_version() method. Since
api_version() returns the same values as
/info, the change is minimal. Here is an example diff:
- r = tintri.api_get(server_name, '/info') + r = tintri.api_version(server_name) json_info = r.json() product_name = json_info['productName']
A new API client example, set_qos_tgc_service_groups.py is now available. This example shows how to use the new QoS TGC Service Group APIs. With the new APIs, configuring QoS for Service Groups has been simplified. The blog, TGC Service Groups and QoS Redux discusses this new QoS example.
– Rick –