libvirt_list_storagepools List all storagepools
&reftitle.description; array libvirt_list_storagepools resource connection

This function returns array of storagepool names for the connection resource.

&reftitle.parameters;

connection

  Connection resource of hypervisor.

&reftitle.returnvalues;

Array of storagepool names. &false; on failure

&reftitle.examples;

`libvirt_list_storagepools` example

List all storagepools

    <?php

    	$conn=libvirt_connect($uri,true);
    	$pools=libvirt_list_storagepools($conn);

    	var_dump($pools);
    ?>

&example.outputs.similar;

    array(2) {
      [0]=>
      string(7) "default"
      [1]=>
      string(4) "data"
    }

&reftitle.seealso;

- `libvirt_storagepool_lookup_by_name`
- `libvirt_storagepool_get_info`
- `libvirt_list_volumes`