2.26.
CLASS: VDI
CHAPTER 2.
API REFERENCE
type
name
description
string
uuid
The uuid of the disk to introduce
string
name label
The name of the disk record
string
name description
The description of the disk record
SR ref
SR
The SR that the VDI is in
vdi type
type
The type of the VDI
bool
sharable
true if this disk may be shared
bool
read only
true if this disk may ONLY be mounted read-
only
(string
→
string) Map
other config
additional configuration
string
location
location information
(string
→
string) Map
xenstore data
Data to insert into xenstore
(string
→
string) Map
sm config
Storage-specific config
Return Type:
VDI ref
The ref of the newly created VDI record.
RPC name: db forget
Overview:
Removes a VDI record from the database.
Signature:
void db_forget (session_id s, VDI ref vdi)
Arguments:
type
name
description
VDI ref
vdi
The VDI to forget about
Return Type:
void
RPC name: copy
Overview:
Make a fresh VDI in the specified SR and copy the supplied VDI’s data to the new disk.
Signature:
(VDI ref) copy (session_id s, VDI ref vdi, SR ref sr)
Arguments:
type
name
description
VDI ref
vdi
The VDI to copy
SR ref
sr
The destination SR
Return Type:
VDI ref
The reference of the newly created VDI.
229