3.5.3.2 Python

Once authenticated, the Suds client can be used to make any API call directly using the services exposed within the client.services namespace. Obtaining a listing of servers is as simple as:

client.service.serverGetAll()

Suds returns the response from the API as a workable Python object, so that no parsing is required in your own code. The following example code illustrates the ease with which you can extract information for your application:

servers=client.service.serverGetAll()
for i in servers:
    print '{name} is {state}'.format(name=i.name,state=i.serverRunState)