(php-libvirt 0.4)
libvirt_storagepool_lookup_by_name — Lookup storagepool resource by name
This function returns the storagepool resource for the given name.
Connection resource of hypervisor.
Name of a storagepool
Storagepool resource identiefier. FALSE on failure
Example #1 libvirt_storagepool_lookup_by_name() example
Return storagepool resource identifier
<?php
$conn=libvirt_connect($uri,true);
$pool=libvirt_storagepool_lookup_by_name($conn, 'default');
var_dump($pool);
?>
The above example will output something similar to:
resource(3) of type (Libvirt storagepool)