thanks!
7 сент. 2018 г. 11:35 пользователь "Ondra Machacek" <[email protected]>
написал:
On 09/06/2018 01:07 PM, David David wrote:
> hi
> i have a vm with 3 disks and i want to take a snapshot with only two disks
> how to do a multiple disk snapshot in the code below?
>
> snap = snaps_service.add(
> snapshot=types.Snapshot(
> description=snap_description,
> persist_memorystate=False,
> disk_attachments=[
> types.DiskAttachment(
> disk=types.Disk(
> id=disk_id
> )
> )
> ]
> ),
> )
DiskAttachments is a list, so you just need to specify as much of the
disk as you need:
snap = snaps_service.add(
snapshot=types.Snapshot(
description=snap_description,
persist_memorystate=False,
disk_attachments=[
types.DiskAttachment(
disk=types.Disk(
id=disk_id
)
),
types.DiskAttachment(
disk=types.Disk(
id=disk_id_2
)
),
]
),
)
>
>
>
> _______________________________________________
> Users 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/WKJTBKT4NZ2XIHBR6M5GPSWQS7K7KCTZ/
>
_______________________________________________
Users 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/53UIQQBFPFBEEX2QODUJGAFRUJEER2Q3/