Class: LVHD
LVHD SR specific operations
Published in: | XenServer 7.0 (dundee) | LVHD SR specific operations |
Fields
string
uuid
[RO/runtime]
Unique identifier/object reference
Published in: | XenServer 4.0 (rio) | Unique identifier/object reference |
Messages
string
enable_thin_provisioning
(session ref, host ref, SR ref, int, int)
Upgrades an LVHD SR to enable thin-provisioning. Future VDIs created in this SR will be thinly-provisioned, although existing VDIs will be left alone. Note that the SR must be attached to the SRmaster for upgrade to work.
Parameters: | session ref session_id | Reference to a valid session |
host ref host | The LVHD Host to upgrade to being thin-provisioned. | |
SR ref SR | The LVHD SR to upgrade to being thin-provisioned. | |
int initial_allocation | The initial amount of space to allocate to a newly-created VDI in bytes | |
int allocation_quantum | The amount of space to allocate to a VDI when it needs to be enlarged in bytes | |
Minimum role: | pool-admin | |
Result: | Message from LVHD.enable_thin_provisioning extension | |
Published in: | XenServer 7.0 (dundee) | Upgrades an LVHD SR to enable thin-provisioning. Future VDIs created in this SR will be thinly-provisioned, although existing VDIs will be left alone. Note that the SR must be attached to the SRmaster for upgrade to work. |
LVHD ref
get_by_uuid
(session ref, string)
Get a reference to the LVHD instance with the specified UUID.
Parameters: | session ref session_id | Reference to a valid session |
string uuid | UUID of object to return | |
Minimum role: | read-only | |
Result: | reference to the object | |
Published in: | XenServer 7.0 (dundee) | LVHD SR specific operations |
LVHD record
get_record
(session ref, LVHD ref)
Get a record containing the current state of the given LVHD.
Parameters: | session ref session_id | Reference to a valid session |
LVHD ref self | reference to the object | |
Minimum role: | read-only | |
Result: | all fields from the object | |
Published in: | XenServer 7.0 (dundee) | LVHD SR specific operations |
string
get_uuid
(session ref, LVHD ref)
Get the uuid field of the given LVHD.
Parameters: | session ref session_id | Reference to a valid session |
LVHD ref self | reference to the object | |
Minimum role: | read-only | |
Result: | value of the field | |
Published in: | XenServer 4.0 (rio) | Unique identifier/object reference |