View Source XenAPI.SR (XenAPI v0.3.1)
A storage repository
Link to this section Summary
Functions
Add the given value to the tags field of the given SR. If the value is already in that Set, then do nothing.
Add the given value to the tags field of the given SR. If the value is already in that Set, then do nothing. (Raise error on XMLRPC failure)
Add the given key-value pair to the other_config field of the given SR.
Add the given key-value pair to the other_config field of the given SR. (Raise error on XMLRPC failure)
Add the given key-value pair to the sm_config field of the given SR.
Add the given key-value pair to the sm_config field of the given SR. (Raise error on XMLRPC failure)
Returns successfully if the given SR can host an HA statefile. Otherwise returns an error to explain why not
Returns successfully if the given SR can host an HA statefile. Otherwise returns an error to explain why not (Raise error on XMLRPC failure)
Returns successfully if the given SR supports database replication. Otherwise returns an error to explain why not.
Returns successfully if the given SR supports database replication. Otherwise returns an error to explain why not. (Raise error on XMLRPC failure)
Create a new Storage Repository and introduce it into the managed system, creating both SR record and PBD record to attach it to current host (with specified device_config parameters)
Create a new Storage Repository and introduce it into the managed system, creating both SR record and PBD record to attach it to current host (with specified device_config parameters) (Raise error on XMLRPC failure)
Create a placeholder for a named binary blob of data that is associated with this SR
Create a placeholder for a named binary blob of data that is associated with this SR (Raise error on XMLRPC failure)
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)
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) (Raise error on XMLRPC failure)
(Raise error on XMLRPC failure)
(Raise error on XMLRPC failure)
Removing specified SR-record from database, without attempting to remove SR from disk
Removing specified SR-record from database, without attempting to remove SR from disk (Raise error on XMLRPC failure)
Forget the recorded statistics related to the specified data source
Forget the recorded statistics related to the specified data source (Raise error on XMLRPC failure)
Return a list of all the SRs known to the system.
Return a list of all the SRs known to the system. (Raise error on XMLRPC failure)
Return a map of SR references to SR records for all SRs known to the system.
Return a map of SR references to SR records for all SRs known to the system. (Raise error on XMLRPC failure)
Get the allowed_operations field of the given SR.
Get the allowed_operations field of the given SR. (Raise error on XMLRPC failure)
Get the blobs field of the given SR.
Get the blobs field of the given SR. (Raise error on XMLRPC failure)
Get all the SR instances with the given label.
Get all the SR instances with the given label. (Raise error on XMLRPC failure)
Get a reference to the SR instance with the specified UUID.
Get a reference to the SR instance with the specified UUID. (Raise error on XMLRPC failure)
Get the clustered field of the given SR.
Get the clustered field of the given SR. (Raise error on XMLRPC failure)
Get the content_type field of the given SR.
Get the content_type field of the given SR. (Raise error on XMLRPC failure)
Get the current_operations field of the given SR.
Get the current_operations field of the given SR. (Raise error on XMLRPC failure)
(Raise error on XMLRPC failure)
Get the introduced_by field of the given SR.
Get the introduced_by field of the given SR. (Raise error on XMLRPC failure)
Get the is_tools_sr field of the given SR.
Get the is_tools_sr field of the given SR. (Raise error on XMLRPC failure)
Get the local_cache_enabled field of the given SR.
Get the local_cache_enabled field of the given SR. (Raise error on XMLRPC failure)
Get the name/description field of the given SR.
Get the name/description field of the given SR. (Raise error on XMLRPC failure)
Get the name/label field of the given SR.
Get the name/label field of the given SR. (Raise error on XMLRPC failure)
Get the other_config field of the given SR.
Get the other_config field of the given SR. (Raise error on XMLRPC failure)
Get the PBDs field of the given SR.
Get the PBDs field of the given SR. (Raise error on XMLRPC failure)
Get the physical_size field of the given SR.
Get the physical_size field of the given SR. (Raise error on XMLRPC failure)
Get the physical_utilisation field of the given SR.
Get the physical_utilisation field of the given SR. (Raise error on XMLRPC failure)
Get a record containing the current state of the given SR. Returns XenAPI.SR
struct.
Get a record containing the current state of the given SR. Returns XenAPI.SR
struct. (Raise error on XMLRPC failure)
Get the shared field of the given SR.
Get the shared field of the given SR. (Raise error on XMLRPC failure)
Get the sm_config field of the given SR.
Get the sm_config field of the given SR. (Raise error on XMLRPC failure)
Return a set of all the SR types supported by the system
Return a set of all the SR types supported by the system (Raise error on XMLRPC failure)
Get the tags field of the given SR.
Get the tags field of the given SR. (Raise error on XMLRPC failure)
Get the type field of the given SR.
Get the type field of the given SR. (Raise error on XMLRPC failure)
Get the uuid field of the given SR.
Get the uuid field of the given SR. (Raise error on XMLRPC failure)
Get the VDIs field of the given SR.
Get the VDIs field of the given SR. (Raise error on XMLRPC failure)
Get the virtual_allocation field of the given SR.
Get the virtual_allocation field of the given SR. (Raise error on XMLRPC failure)
Introduce a new Storage Repository into the managed system
Introduce a new Storage Repository into the managed system (Raise error on XMLRPC failure)
Create a new Storage Repository on disk. This call is deprecated: use SR.create instead.
Create a new Storage Repository on disk. This call is deprecated: use SR.create instead. (Raise error on XMLRPC failure)
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.
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. (Raise error on XMLRPC failure)
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.
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. (Raise error on XMLRPC failure)
Query the latest value of the specified data source
Query the latest value of the specified data source (Raise error on XMLRPC failure)
Start recording the specified data source
Start recording the specified data source (Raise error on XMLRPC failure)
Remove the given key and its corresponding value from the other_config field of the given SR. If the key is not in that Map, then do nothing.
Remove the given key and its corresponding value from the other_config field of the given SR. If the key is not in that Map, then do nothing. (Raise error on XMLRPC failure)
Remove the given key and its corresponding value from the sm_config field of the given SR. If the key is not in that Map, then do nothing.
Remove the given key and its corresponding value from the sm_config field of the given SR. If the key is not in that Map, then do nothing. (Raise error on XMLRPC failure)
Remove the given value from the tags field of the given SR. If the value is not in that Set, then do nothing.
Remove the given value from the tags field of the given SR. If the value is not in that Set, then do nothing. (Raise error on XMLRPC failure)
Refreshes the list of VDIs associated with an SR
Refreshes the list of VDIs associated with an SR (Raise error on XMLRPC failure)
Set the name description of the SR
Set the name description of the SR (Raise error on XMLRPC failure)
Set the name label of the SR
Set the name label of the SR (Raise error on XMLRPC failure)
Set the other_config field of the given SR.
Set the other_config field of the given SR. (Raise error on XMLRPC failure)
Sets the SR's physical_size field
Sets the SR's physical_size field (Raise error on XMLRPC failure)
Sets the shared flag on the SR
Sets the shared flag on the SR (Raise error on XMLRPC failure)
Set the sm_config field of the given SR.
Set the sm_config field of the given SR. (Raise error on XMLRPC failure)
Set the tags field of the given SR.
Set the tags field of the given SR. (Raise error on XMLRPC failure)
Refresh the fields on the SR object
Refresh the fields on the SR object (Raise error on XMLRPC failure)
Link to this section Functions
Add the given value to the tags field of the given SR. If the value is already in that Set, then do nothing.
Add the given value to the tags field of the given SR. If the value is already in that Set, then do nothing. (Raise error on XMLRPC failure)
Add the given key-value pair to the other_config field of the given SR.
Add the given key-value pair to the other_config field of the given SR. (Raise error on XMLRPC failure)
Add the given key-value pair to the sm_config field of the given SR.
Add the given key-value pair to the sm_config field of the given SR. (Raise error on XMLRPC failure)
Returns successfully if the given SR can host an HA statefile. Otherwise returns an error to explain why not
Returns successfully if the given SR can host an HA statefile. Otherwise returns an error to explain why not (Raise error on XMLRPC failure)
Returns successfully if the given SR supports database replication. Otherwise returns an error to explain why not.
Returns successfully if the given SR supports database replication. Otherwise returns an error to explain why not. (Raise error on XMLRPC failure)
create(xen_session, host, device_config, physical_size, name_label, name_description, type, content_type, shared, sm_config)
View SourceCreate a new Storage Repository and introduce it into the managed system, creating both SR record and PBD record to attach it to current host (with specified device_config parameters)
create!(xen_session, host, device_config, physical_size, name_label, name_description, type, content_type, shared, sm_config)
View SourceCreate a new Storage Repository and introduce it into the managed system, creating both SR record and PBD record to attach it to current host (with specified device_config parameters) (Raise error on XMLRPC failure)
Create a placeholder for a named binary blob of data that is associated with this SR
Create a placeholder for a named binary blob of data that is associated with this SR (Raise error on XMLRPC failure)
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)
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) (Raise error on XMLRPC failure)
(Raise error on XMLRPC failure)
(Raise error on XMLRPC failure)
Removing specified SR-record from database, without attempting to remove SR from disk
Removing specified SR-record from database, without attempting to remove SR from disk (Raise error on XMLRPC failure)
Forget the recorded statistics related to the specified data source
Forget the recorded statistics related to the specified data source (Raise error on XMLRPC failure)
Return a list of all the SRs known to the system.
Return a list of all the SRs known to the system. (Raise error on XMLRPC failure)
Return a map of SR references to SR records for all SRs known to the system.
Return a map of SR references to SR records for all SRs known to the system. (Raise error on XMLRPC failure)
Get the allowed_operations field of the given SR.
Get the allowed_operations field of the given SR. (Raise error on XMLRPC failure)
Get the blobs field of the given SR.
Get the blobs field of the given SR. (Raise error on XMLRPC failure)
Get all the SR instances with the given label.
Get all the SR instances with the given label. (Raise error on XMLRPC failure)
Get a reference to the SR instance with the specified UUID.
Get a reference to the SR instance with the specified UUID. (Raise error on XMLRPC failure)
Get the clustered field of the given SR.
Get the clustered field of the given SR. (Raise error on XMLRPC failure)
Get the content_type field of the given SR.
Get the content_type field of the given SR. (Raise error on XMLRPC failure)
Get the current_operations field of the given SR.
Get the current_operations field of the given SR. (Raise error on XMLRPC failure)
(Raise error on XMLRPC failure)
Get the introduced_by field of the given SR.
Get the introduced_by field of the given SR. (Raise error on XMLRPC failure)
Get the is_tools_sr field of the given SR.
Get the is_tools_sr field of the given SR. (Raise error on XMLRPC failure)
Get the local_cache_enabled field of the given SR.
Get the local_cache_enabled field of the given SR. (Raise error on XMLRPC failure)
Get the name/description field of the given SR.
Get the name/description field of the given SR. (Raise error on XMLRPC failure)
Get the name/label field of the given SR.
Get the name/label field of the given SR. (Raise error on XMLRPC failure)
Get the other_config field of the given SR.
Get the other_config field of the given SR. (Raise error on XMLRPC failure)
Get the PBDs field of the given SR.
Get the PBDs field of the given SR. (Raise error on XMLRPC failure)
Get the physical_size field of the given SR.
Get the physical_size field of the given SR. (Raise error on XMLRPC failure)
Get the physical_utilisation field of the given SR.
Get the physical_utilisation field of the given SR. (Raise error on XMLRPC failure)
Get a record containing the current state of the given SR. Returns XenAPI.SR
struct.
Get a record containing the current state of the given SR. Returns XenAPI.SR
struct. (Raise error on XMLRPC failure)
Get the sm_config field of the given SR.
Get the sm_config field of the given SR. (Raise error on XMLRPC failure)
Return a set of all the SR types supported by the system
Return a set of all the SR types supported by the system (Raise error on XMLRPC failure)
Get the tags field of the given SR.
Get the tags field of the given SR. (Raise error on XMLRPC failure)
Get the type field of the given SR.
Get the type field of the given SR. (Raise error on XMLRPC failure)
Get the uuid field of the given SR.
Get the uuid field of the given SR. (Raise error on XMLRPC failure)
Get the VDIs field of the given SR.
Get the VDIs field of the given SR. (Raise error on XMLRPC failure)
Get the virtual_allocation field of the given SR.
Get the virtual_allocation field of the given SR. (Raise error on XMLRPC failure)
introduce(xen_session, uuid, name_label, name_description, type, content_type, shared, sm_config)
View SourceIntroduce a new Storage Repository into the managed system
introduce!(xen_session, uuid, name_label, name_description, type, content_type, shared, sm_config)
View SourceIntroduce a new Storage Repository into the managed system (Raise error on XMLRPC failure)
make(xen_session, host, device_config, physical_size, name_label, name_description, type, content_type, sm_config)
View SourceCreate a new Storage Repository on disk. This call is deprecated: use SR.create instead.
make!(xen_session, host, device_config, physical_size, name_label, name_description, type, content_type, sm_config)
View SourceCreate a new Storage Repository on disk. This call is deprecated: use SR.create instead. (Raise error on XMLRPC failure)
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.
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. (Raise error on XMLRPC failure)
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.
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. (Raise error on XMLRPC failure)
Query the latest value of the specified data source
Query the latest value of the specified data source (Raise error on XMLRPC failure)
Start recording the specified data source
Start recording the specified data source (Raise error on XMLRPC failure)
Remove the given key and its corresponding value from the other_config field of the given SR. If the key is not in that Map, then do nothing.
Remove the given key and its corresponding value from the other_config field of the given SR. If the key is not in that Map, then do nothing. (Raise error on XMLRPC failure)
Remove the given key and its corresponding value from the sm_config field of the given SR. If the key is not in that Map, then do nothing.
Remove the given key and its corresponding value from the sm_config field of the given SR. If the key is not in that Map, then do nothing. (Raise error on XMLRPC failure)
Remove the given value from the tags field of the given SR. If the value is not in that Set, then do nothing.
Remove the given value from the tags field of the given SR. If the value is not in that Set, then do nothing. (Raise error on XMLRPC failure)
Refreshes the list of VDIs associated with an SR
Refreshes the list of VDIs associated with an SR (Raise error on XMLRPC failure)
Set the name description of the SR
Set the name description of the SR (Raise error on XMLRPC failure)
Set the name label of the SR
Set the name label of the SR (Raise error on XMLRPC failure)
Set the other_config field of the given SR.
Set the other_config field of the given SR. (Raise error on XMLRPC failure)
Sets the SR's physical_size field
Sets the SR's physical_size field (Raise error on XMLRPC failure)
Set the sm_config field of the given SR.
Set the sm_config field of the given SR. (Raise error on XMLRPC failure)
Set the tags field of the given SR.
Set the tags field of the given SR. (Raise error on XMLRPC failure)
Refresh the fields on the SR object
Refresh the fields on the SR object (Raise error on XMLRPC failure)