def ex_order_package(self, size):

        params = {'plan': size.name}
        pkg = self.connection.request(API_ROOT + '/cloud/buy/',
                                      data=json.dumps(params),
                                      method='POST').object

        return pkg
Order a server package.
dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/hostvirtual.py/HostVirtualNodeDriver.ex_order_package