-
string
uuid
Unique identifier/object reference
-
host
host
physical machine on which the pbd is available
-
SR
SR
the storage repository that the pbd realises
-
Map[string,string]
device_config
a config string to string map that is provided to the host's SR-backend-driver
-
bool
currently_attached
is the SR currently attached on this host?
-
Map[string,string]
other_config
additional configuration
-
Record[PBD]
get_record
(session session_id, PBD self)
Get a record containing the current state of the given PBD.
-
PBD
get_by_uuid
(session session_id, string uuid)
Get a reference to the PBD instance with the specified UUID.
-
PBD
create
(session session_id, host host, SR SR, Map[string,string] device_config, Map[string,string] other_config)
Create a new PBD instance, and return its handle.
-
void
destroy
(session session_id, PBD self)
Destroy the specified PBD instance.
-
Set[PBD]
get_all
(session session_id)
Return a list of all the PBDs known to the system.
-
Map[PBD,Record[PBD]]
get_all_records
(session session_id)
Return a map of PBD references to PBD records for all PBDs known to the system.
-
void
plug
(session session_id, PBD self)
Activate the specified PBD, causing the referenced SR to be attached and scanned
-
void
unplug
(session session_id, PBD self)
Deactivate the specified PBD, causing the referenced SR to be detached and nolonger scanned
-
void
set_device_config
(session session_id, PBD self, Map[string,string] value)
Sets the PBD's device_config field