libvirt_storagepool_lookup_by_name Lookup storagepool resource by name
&reftitle.description; array libvirt_storagepool_lookup_by_name resource connection string storagepool name

This function returns the storagepool resource for the given name.

&reftitle.parameters;

connection

  Connection resource of hypervisor.

storagepool name

  Name of a storagepool

&reftitle.returnvalues;

Storagepool resource identiefier. &false; on failure

&reftitle.examples;

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

&example.outputs.similar;

    resource(3) of type (Libvirt storagepool)

&reftitle.seealso;

- `libvirt_list_storagepools`
- `libvirt_storagepool_get_info`
- `libvirt_list_volumes`