[Engine-devel] Fwd: [Users] Related to python script for Attach Cd (.iso) to a vm

Michael Pasternak mpastern at redhat.com
Mon Nov 5 14:04:07 UTC 2012


On 11/05/2012 01:23 PM, Romil Gupta wrote:
> 
> On 11/05/2012 09:58 AM, Romil Gupta wrote:
>>  Do we have any refresh or update function in ovirt sdk  so that after coping the image  RHEVM will get refresh automatically ??
>>
>> Regards,
>> Romil
> 
> yes, just do GET on /api/storagedomains/xxx/files
> --
> 
> Michael Pasternak
> RedHat, ENG-Virtualization R&D
> 
> 
> Hi,
> 
> I have to write a python script  using ovirt sdk !
> Please tell me the refresh iso domain function in python :)

sdk using very same semantics as apy does,

sd = api.storagedomains.get(name="iso_domain")
sd.files.list() // will produce [GET on /api/storagedomains/xxx/files]


> 
> Regards ,
> Romil 


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D



More information about the Devel mailing list