2.25.
CLASS: SR
CHAPTER 2.
API REFERENCE
RPC name: set physical utilisation
Overview:
Sets the SR’s physical utilisation field.
Signature:
void set_physical_utilisation (session_id s, SR ref self, int value)
Arguments:
type
name
description
SR ref
self
The SR to modify
int
value
The new value of the SR’s physical utilisation
Return Type:
void
RPC name: get all
Overview:
Return a list of all the SRs known to the system.
Signature:
((SR ref) Set) get_all (session_id s)
Return Type:
(SR ref) Set
references to all objects
RPC name: get all records
Overview:
Return a map of SR references to SR records for all SRs known to the system.
Signature:
((SR ref -> SR record) Map) get_all_records (session_id s)
Return Type:
(SR ref
→
SR record) Map
records of all objects
RPC name: get uuid
Overview:
Get the uuid field of the given SR.
Signature:
string get_uuid (session_id s, SR ref self)
Arguments:
type
name
description
SR ref
self
reference to the object
Return Type:
string
216