[Engine-devel] storagedomain status via API
Michael Pasternak
mpastern at redhat.com
Tue Aug 28 06:04:37 UTC 2012
On 08/27/2012 10:30 PM, Ryan Harper wrote:
> * Michael Pasternak <mpastern at redhat.com> [2012-08-27 09:45]:
>>
>> Ryan,
>>
>> each sdk method is well documented, if you'll take a look
>> on .delete().__doc__ it's:
>>
>> @param storagedomain.host.id|name: string
>> [@param async: boolean (true|false)]
>> [@param correlation_id: any string]
>>
>> and that's exactly what error says,
>> -> StorageDomain [host.id|name] required for remove
>>
>> do:
>>
>> sd = api.storagedomains.get(name="xxx")
>> sd.delete(storagedomain=params.StorageDomain(host=params.Host(id="yyy")))
>
> This failed with bad request, but this worked:
are you sure about host id? i.e is it was same id as in host fetched by
api.hosts.get('hostname here') ?
>
> sd.delete(storagedomain=params.StorageDomain(host=api.hosts.get('hostname here')))
>
> Thanks again,
> Ryan
>
--
Michael Pasternak
RedHat, ENG-Virtualization R&D
More information about the Engine-devel
mailing list