snapshots_service.add(
types.Snapshot(
description='My3 snapshot',
persist_memorystate=False,
disk_attachments = [
types.DiskAttachment(
disk=types.Disk(
id='f010cb7a-988c-4655-b4de-4b23a1652b7f'
),
),
],
),
)
对虚拟机创建快照,并指定磁盘,不保存内存