(php-libvirt 0.4)
libvirt_storagepool_get_info — Get storagepool information
This function returns array containing storagepool information
Note: Warning
. This function returns values that may be bigger than 32bit integer limit. Please read this note for more details.
Connection resource of storagepool
Array with storagepool information. FALSE on failure
Example #1 libvirt_storagepool_get_info() example
Connection resource of storagepool
<?php
$conn=libvirt_connect($uri,true);
$pool=libvirt_storagepools_lookup_by_name($conn,'default');
$poolInfo = libvirt_storagepool_get_info($pool)
var_dump($poolInfo);
?>
The above example will output something similar to:
array(4) { ["state"]=> int(2) ["capacity"]=> int(118996598784) ["allocation"]=> int(34414264320) ["available"]=> int(84582334464) }