(No version information available, might only be in CVS)
libvirt_list_volumes — List all volumes in a storagepool
This function returns array of volume names in a storagepool.
Storagepool reousrce.
Array of volume names. FALSE on failure
Example #1 libvirt_list_volumes() example
List all volumes
<?php
$conn=libvirt_connect($uri,true);
$pool=libvirt_storagepools_lookup_by_name($conn,'default');
$volumes=listvirt_list_volumes($pool);
var_dump($volumes);
?>
The above example will output something similar to:
array(3) { [0]=> string(7) "server1" [1]=> string(7) "server2" [2]=> string(7) "server3" }