List all storagepools

libvirt_list_domains
libvirt_list_volumes
Libvirt Functions
PHP Manual

# libvirt_list_storagepools

(No version information available, might only be in CVS)

libvirt_list_storagepools — List all storagepools

### Description

array libvirt_list_storagepools ( resource `$connection` )

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

### Parameters

`connection`

  Connection resource of hypervisor.

### Return Values

Array of storagepool names. `FALSE` on failure

### Examples

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"
    }

### See Also

- libvirt_storagepool_lookup_by_name() - Lookup storagepool resource by name
- libvirt_storagepool_get_info() - Get storagepool information
- libvirt_list_volumes() - List all volumes in a storagepool

libvirt_list_domains
libvirt_list_volumes
Libvirt Functions
PHP Manual