2.25.
CLASS: SR
CHAPTER 2.
API REFERENCE
type
name
description
host ref
host
The host to create/make the SR on
(string
→
string) Map
device config
The device config string that will be passed to
backend SR driver
int
physical size
The physical size of the new storage repository
string
name label
The name of the new storage repository
string
name description
The description of the new storage repository
string
type
The type of the SR; used to specify the SR
backend driver to use
string
content type
The type of the new SRs content, if required
(e.g. ISOs)
bool
shared
True if the SR (is capable of) being shared by
multiple hosts
(string
→
string) Map
sm config
Storage backend specific configuration options
Return Type:
SR ref
The reference of the newly created Storage Repository.
Possible Error Codes:
SR UNKNOWN DRIVER
RPC name: introduce
Overview:
Introduce a new Storage Repository into the managed system.
Signature:
(SR ref) introduce (session_id s, string uuid, string name_label, string name_description, string type,
Arguments:
type
name
description
string
uuid
The uuid assigned to the introduced SR
string
name label
The name of the new storage repository
string
name description
The description of the new storage repository
string
type
The type of the SR; used to specify the SR
backend driver to use
string
content type
The type of the new SRs content, if required
(e.g. ISOs)
bool
shared
True if the SR (is capable of) being shared by
multiple hosts
(string
→
string) Map
sm config
Storage backend specific configuration options
Return Type:
SR ref
The reference of the newly introduced Storage Repository.
RPC name: make
Overview: This message is deprecated
Create a new Storage Repository on disk.
Signature:
string make (session_id s, host ref host, (string -> string) Map device_config, int physical_size, string
212