Forum Discussion

Prakash_Krishna's avatar
Prakash_Krishna
Icon for Nimbostratus rankNimbostratus
May 03, 2014

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

  • 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's avatar
      Prakash_Krishna
      Icon for Nimbostratus rankNimbostratus
      Thanks Kunjan. I just checked the JSON response and this should help me. Regards, Prakash.K
  • kunjan's avatar
    kunjan
    Icon for Nimbostratus rankNimbostratus

    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's avatar
      Prakash_Krishna
      Icon for Nimbostratus rankNimbostratus
      Thanks Kunjan. I just checked the JSON response and this should help me. Regards, Prakash.K