2.25.
CLASS: SR
CHAPTER 2.
API REFERENCE
Arguments:
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)
(string
→
string) Map
sm config
Storage backend specific configuration options
Return Type:
string
The uuid of the newly created Storage Repository.
RPC name: destroy
Overview:
Destroy specified SR, removing SR-record from database and remove SR from disk. (In order to
affect this operation the appropriate device config is read from the specified SR’s PBD on current
host).
Signature:
void destroy (session_id s, SR ref sr)
Arguments:
type
name
description
SR ref
sr
The SR to destroy
Return Type:
void
Possible Error Codes:
SR HAS PBD
RPC name: forget
Overview:
Removing specified SR-record from database, without attempting to remove SR from disk.
Signature:
void forget (session_id s, SR ref sr)
Arguments:
type
name
description
SR ref
sr
The SR to destroy
Return Type:
void
Possible Error Codes:
SR HAS PBD
213