[Engine-devel] storagedomain status via API
Ryan Harper
ryanh at us.ibm.com
Mon Aug 27 19:30:40 UTC 2012
* 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:
sd.delete(storagedomain=params.StorageDomain(host=api.hosts.get('hostname here')))
Thanks again,
Ryan
--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
ryanh at us.ibm.com
More information about the Devel
mailing list