Re: [ovirt-users] assign hostname to vm using REST API

2014-08-10 Thread Shahar Havivi
On 06.08.14 12:36, naaz wrote:
 I am using REST API to integrate rhev with java(not SDK)
 I am trying to assign hostname to vm but showing some bad request error.
if its a bad request it may be you are not using the PUT http method?
(PUT if you are updating POST if you are creating new VM)
 
 I have created template from vm which have cloud init package in it also m 
 using rhev 3.4.
 Do i need to use payload method if so please provide me the proper code for 
 both -for passing payload through code in url and the payload file sample
 
 can anyone plz tell me how to do it?
Take a look here:
http://www.ovirt.org/Features/Cloud-Init_Integration

Make sure that you are adding to the http header Content-Type=Application/xml

vm
 ...
 initialization
  cloud_init
  host
 addresscloudInitInstanceName/address
  /host
 ...
 
 
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] assign hostname to vm using REST API

2014-08-06 Thread naaz
I am using REST API to integrate rhev with java(not SDK)
I am trying to assign hostname to vm but showing some bad request error.

I have created template from vm which have cloud init package in it also m 
using rhev 3.4.
Do i need to use payload method if so please provide me the proper code for 
both -for passing payload through code in url and the payload file sample

can anyone plz tell me how to do it?



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users