{if __name__ == "__main__": from xmlrpclib import Server server = Server("http://www.planet-lab.org/PLCAPI/") auth = {} auth["Username"] = "stephenn@sussex.ac.uk" auth["AuthMethod"] = "password" auth["AuthString"] = "password here" auth["Role"] = "user" slice_name = "sussex_naicken" try: print server.SliceNodesList(auth, slice_name) except Exception, e: print str(e) }
Ian Wakeman 2005-04-22