2.25.
CLASS: SR
CHAPTER 2.
API REFERENCE
RPC name: get supported types
Overview:
Return a set of all the SR types supported by the system.
Signature:
(string Set) get_supported_types (session_id s)
Return Type:
string Set
the supported SR types
RPC name: scan
Overview:
Refreshes the list of VDIs associated with an SR.
Signature:
void scan (session_id s, SR ref sr)
Arguments:
type
name
description
SR ref
sr
The SR to scan
Return Type:
void
RPC name: probe
Overview:
Perform a backend-specific scan, using the given device config. If the device config is complete,
then this will return a list of the SRs present of this type on the device, if any. If the device config
is partial, then a backend-specific scan will be performed, returning results that will guide the user
in improving the device config.
Signature:
string probe (session_id s, host ref host, (string -> string) Map device_config, string type, (string ->
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
string
type
The type of the SR; used to specify the SR
backend driver to use
(string
→
string) Map
sm config
Storage backend specific configuration options
Return Type:
string
An XML fragment containing the scan results. These are specific to the scan being performed,
and the backend.
214