2.26.
CLASS: VDI
CHAPTER 2.
API REFERENCE
2.26.2
RPCs associated with class: VDI
RPC name: snapshot
Overview:
Take a read-only snapshot of the VDI, returning a reference to the snapshot. If any driver params
are specified then these are passed through to the storage-specific substrate driver that takes the
snapshot. NB the snapshot lives in the same Storage Repository as its parent.
Signature:
(VDI ref) snapshot (session_id s, VDI ref vdi, (string -> string) Map driver_params)
Arguments:
type
name
description
VDI ref
vdi
The VDI to snapshot
(string
→
string) Map
driver params
Optional parameters that can be passed
through to backend driver in order to specify
storage-type-specific snapshot options
Return Type:
VDI ref
The ID of the newly created VDI.
RPC name: clone
Overview:
Take an exact copy of the VDI and return a reference to the new disk. If any driver params are
specified then these are passed through to the storage-specific substrate driver that implements
the clone operation. NB the clone lives in the same Storage Repository as its parent.
Signature:
(VDI ref) clone (session_id s, VDI ref vdi, (string -> string) Map driver_params)
Arguments:
type
name
description
VDI ref
vdi
The VDI to clone
(string
→
string) Map
driver params
Optional parameters that are passed through
to the backend driver in order to specify
storage-type-specific clone options
Return Type:
VDI ref
The ID of the newly created VDI.
RPC name: resize
Overview:
Resize the VDI.
Signature:
void resize (session_id s, VDI ref vdi, int size)
227