
2.29.
CLASS: PBD
CHAPTER 2.
API REFERENCE
2.29
Class: PBD
2.29.1
Fields for class: PBD
Name
PBD
Description
The physical block devices through which hosts access SRs.
Quals
Field
Type
Description
RO
run
uuid
string
unique identifier/object reference
RO
ins
host
host ref
physical machine on which the pbd is
available
RO
ins
SR
SR ref
the storage repository that the pbd
realises
RO
ins
device config
(string
→
string) Map
a config string to string map that is
provided to the host’s SR-backend-
driver
RO
run
currently attached
bool
is the SR currently attached on this
host?
RW
other config
(string
→
string) Map
additional configuration
2.29.2
RPCs associated with class: PBD
RPC name: plug
Overview:
Activate the specified PBD, causing the referenced SR to be attached and scanned.
Signature:
void plug (session_id s, PBD ref self)
Arguments:
type
name
description
PBD ref
self
The PBD to activate
Return Type:
void
Possible Error Codes:
SR UNKNOWN DRIVER
RPC name: unplug
Overview:
Deactivate the specified PBD, causing the referenced SR to be detached and nolonger scanned.
Signature:
void unplug (session_id s, PBD ref self)
Arguments:
type
name
description
PBD ref
self
The PBD to deactivate
Return Type:
void
264