THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
This feature is still not available in the trunk as of Sept-5-2013.And will be available soon.
1. get the client object
client = AmbariClient("localhost", 8080, "admin", "admin", version=1) print client.version print client.host_url print"\n"
2. get the clusterModel object of cluster
mycluster = client.get_cluster('test46') print mycluster print mycluster.to_json_dict() print"\n"
3. create service
s2 = mycluster.create_service(services_name) print s2
TODO