Forum Discussion
Dan_Mather
Nimbostratus
May 19, 2018selfLink not work for sys/hardware
Hi,
I've been working with the iControl REST interface for several months. While researching the hardware information returned in the mgmt/tm/sys/hardware call, I found that I cannot use any of the ...
Jason_Nance
Nimbostratus
May 24, 2018As Niels said, you need to strip off the
chassis-power-supply-status-index part:
!/usr/bin/env python3
import pprint
import requests
requests.packages.urllib3.disable_warnings()
s = requests.Session()
s.auth = ('username', 'password')
r = s.get('https://hostname/mgmt/tm/sys/hardware', verify=False)
pprint.pprint(r.json())
You can deduce this by looking at the TMSH command to pull this information:
tmsh show sys hardware (there isn't a chassis-power-supply-status-index argument).
But once you have the JSON you can pull the info directly from there.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
