Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to Get the Temperature for the Appliance as well. #12

Open
avneeshjain108 opened this issue Apr 25, 2020 · 1 comment
Open

to Get the Temperature for the Appliance as well. #12

avneeshjain108 opened this issue Apr 25, 2020 · 1 comment

Comments

@avneeshjain108
Copy link

avneeshjain108 commented Apr 25, 2020

Looking to Get the Temperature for the Appliance in the appliance_info.py as well.

@rehrhart
Copy link

The code in appliance_info.py is an example. Feel free to download it, and add or delete code for what you need.

When looking at the appliance_info.py code, you will discover that the appliance API was invoked:

# Get appliance info
url = "/v310/appliance"
r = tintri.api_get(server_name, url, session_id)

If you go to the appliance API documentation, you will discover the output Appliance. Clicking on Appliance, you will discovered the contents of the Appliance object. Scrolling down, you notice the temperatures attribute which contains an array of Temperature. Click on the Temperature object and you find the information you're looking for.

Have fun coding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants