January 1, 2015

Classes
Tags manager

List Instances
Shows how to use one of the python client's managers, VSManager.list_instances() specifically

import SoftLayer
import pprint

class example():

    def __init__(self):

        self.client = SoftLayer.Client()
        self.mgr = SoftLayer.VSManager(self.client)

    def main(self):
        """

        """
        pp = pprint.PrettyPrinter(indent=4)
        result =  self.mgr.list_instances()
        pp.pprint(result)

if __name__ == "__main__":
    main = example()
    main.main()

Feedback?

We would love to hear it
Open an issue

/python/list_instances/