libvirt_list_volumes List all volumes in a storagepool
&reftitle.description; array libvirt_list_volumes resource storagepool resource

This function returns array of volume names in a storagepool.

&reftitle.parameters;

connection

  Storagepool reousrce.

&reftitle.returnvalues;

Array of volume names. &false; on failure

&reftitle.examples;

`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);
    ?>

&example.outputs.similar;

    array(3) {
      [0]=>
      string(7) "server1"
      [1]=>
      string(7) "server2"
      [2]=>
      string(7) "server3"
    }

&reftitle.seealso;

- `libvirt_storagepool_lookup_by_name`
- `libvirt_storagepool_get_info`
- `libvirt_list_storagepools`