2.26.
CLASS: VDI
CHAPTER 2.
API REFERENCE
Arguments:
type
name
description
VDI ref
vdi
The VDI to resize
int
size
The new size of the VDI
Return Type:
void
RPC name: introduce
Overview:
Create a new VDI record in the database only.
Signature:
(VDI ref) introduce (session_id s, string uuid, string name_label, string name_description, SR ref SR,
Arguments:
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.
Possible Error Codes:
SR OPERATION NOT SUPPORTED
RPC name: db introduce
Overview:
Create a new VDI record in the database only.
Signature:
(VDI ref) db_introduce (session_id s, string uuid, string name_label, string name_description, SR ref SR,
Arguments:
228