libvirt_storagepool_get_info Get storagepool information
&reftitle.description; array libvirt_storagepool_get_info resource connection

This function returns array containing storagepool information

Warning

. This function returns values that may be bigger than 32bit integer limit. Please read this note for more details.

&reftitle.parameters;

connection

  Connection resource of storagepool

&reftitle.returnvalues;

Array with storagepool information. &false; on failure

&reftitle.examples;

`libvirt_storagepool_get_info` example

Connection resource of storagepool

    <?php

    	$conn=libvirt_connect($uri,true);
    	$pool=libvirt_storagepools_lookup_by_name($conn,'default');
    	$poolInfo = libvirt_storagepool_get_info($pool)

    	var_dump($poolInfo);
    ?>

&example.outputs.similar;

    array(4) {
      ["state"]=>
      int(2)
      ["capacity"]=>
      int(118996598784)
      ["allocation"]=>
      int(34414264320)
      ["available"]=>
      int(84582334464)
    }

&reftitle.seealso;

- `libvirt_list_storagepools`
- `libvirt_storagepool_lookup_by_name`
- `libvirt_list_volumes`