(No version information available, might only be in CVS)
libvirt_list_storagepools — List all storagepools
This function returns array of storagepool names for the connection resource.
Connection resource of hypervisor.
Array of storagepool names. FALSE on failure
Example #1 libvirt_list_storagepools() example
List all storagepools
<?php
$conn=libvirt_connect($uri,true);
$pools=libvirt_list_storagepools($conn);
var_dump($pools);
?>
The above example will output something similar to:
array(2) { [0]=> string(7) "default" [1]=> string(4) "data" }