Hi,

You could try
`connection.system_service().data_centers_service().data_center_service(dc_id).storage_domains_service().storage_domain_service(sd_id).remove()`
to detach a storage domain.

By contrast,
`connection.storage_domains_service().storage_domain_service(sd_id).remove()`
would completely remove the storage domain from system.


On Wed, Sep 4, 2019 at 6:25 PM <[email protected]> wrote:

> Hi,
>
> I'm looking to use the SDK to detach a Non Master Storage Domain from a
> given Data Centre, without removing it from the system, ie it goes to
> Unattached mode.
>
> I have set the Domain to Maintenance, but can't see an obvious option for
> detaching it, except for removing it from the system entirely.
>
> Any advice is appreciated.
> _______________________________________________
> Devel mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/[email protected]/message/7IDHEY7BYBNJPOUIVCJBZS35RKMET3FD/
>
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/Z4XF4JXWTA6EUAJPTGFBN5BUHJBF6PN5/

Reply via email to