Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

WARNING: The client library is still in the works and not production ready. 

Ambari python client can be used make use of Ambari APIs.

...

Code Block
languagepython
titleCreate Ambari client
firstline1
linenumberstrue
from ambari_client.ambari_api import  AmbariClient
headers_dict={'X-Requested-By':'mycompany'} #Ambari needs X-Requested-By header
client = AmbariClient("localhost", 8080, "admin", "admin", version=1,http_header=headers_dict)
print client.version
print client.host_url
print"\n"

...