Libvirt Functions
PHP Manual

libvirt_list_storagepools

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

libvirt_list_storagepoolsList 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 Functions
PHP Manual