There's one more parameter in that method, the datastore id. allocate(Client client, java.lang.String description, int datastoreId)
http://docs.opennebula.org/doc/4.4/oca/java/ On Thu, Mar 6, 2014 at 1:26 PM, Roxana Ioana Roman <rroxanaio...@gmail.com> wrote: > Hello! > I am trying to allocate a new image in OpenNebula using the > Image.allocate(client,imageTemplate) method from the Java api. > > I am doing: > OneResponse resonse =Image.allocate(client, image.toString()); > > where image.toString() is: > > NAME = "ImageTest" > PATH = /var/lib/one/datastores/108/c10ddf1eb1bb078c4b1116652c5c9a55 > PUBLIC = YES > PERSISTENT = NO > TYPE = OS > DESCRIPTION = "this is a test" > > response.getErrorMessage() is :"Not enough parameters" > > But as I read from: > http://archives.opennebula.org/documentation:archives:rel3.4:img_template > I have set all the required parameters. > Do you know what am I missing? Any help will be much appreciated. > > Thank you! > Regards, > -- > Roxana Ioana Roman > > > _______________________________________________ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > -- Javier Fontán Muiños Developer OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org | @OpenNebula | github.com/jfontan _______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org