Forum Discussion
How to get the device basic information like hostname, management ip, platformName, OS version, chassis id, contact etc through RestAPI
Hi All,
Currently, We have been using SOAP APIs and we are just migrating to RestAPI implementation. Can any one help me here about how to get the device basic information like hostname, management ip, platformName, OS version, chassis id, contact etc through RestAPI uri(Seeking RestURI for it).
Previously, I have been ising the below SOAP API to some of the above details
m_interfaces.getSystemSystemInfo().get_system_information()
Regards, Prakash.K
5 Replies
- kunjan_118660
Cumulonimbus
Not sure if this helps(11.5)
curl -sk -u admin:admin https:///mgmt/tm/sys/global-settings | python -m json.tool curl -sk -u admin:admin https:///mgmt/tm/sys/version | python -m json.tool curl -sk -u admin:admin https:///mgmt/tm/sys/hardware | python -m json.tool- Prakash_Krishna
Nimbostratus
Thanks Kunjan. I just checked the JSON response and this should help me. Regards, Prakash.K
- kunjan
Nimbostratus
Not sure if this helps(11.5)
curl -sk -u admin:admin https:///mgmt/tm/sys/global-settings | python -m json.tool curl -sk -u admin:admin https:///mgmt/tm/sys/version | python -m json.tool curl -sk -u admin:admin https:///mgmt/tm/sys/hardware | python -m json.tool- Prakash_Krishna
Nimbostratus
Thanks Kunjan. I just checked the JSON response and this should help me. Regards, Prakash.K
- Enis_Avdicausev
Nimbostratus
Can you please post the response for Thank you
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
