API Documentation

Total number of functions: 159. Functions supported are:

libvirt_get_last_error()

libvirt_connect($url, $readonly, $credentials)

libvirt_node_get_info($conn)

libvirt_node_get_cpu_stats($conn, $cpunr)

libvirt_node_get_cpu_stats_for_each_cpu($conn, $time)

libvirt_node_get_mem_stats($conn)

libvirt_connect_get_machine_types($conn)

libvirt_connect_get_information($conn)

libvirt_connect_get_uri($conn)

libvirt_connect_get_hostname($conn)

libvirt_image_create($conn, $name, $size, $format)

libvirt_image_remove($conn, $image)

libvirt_connect_get_hypervisor($conn)

libvirt_connect_is_encrypted($conn)

libvirt_connect_is_secure($conn)

libvirt_connect_get_all_domain_stats($conn, $stats, $flags)

libvirt_connect_get_maxvcpus($conn)

libvirt_connect_get_sysinfo($conn)

libvirt_domain_get_counts($conn)

libvirt_domain_is_persistent($res)

libvirt_domain_set_max_memory($res, $memory)

libvirt_domain_set_memory($res, $memory)

libvirt_domain_set_memory_flags($res, $memory, $flags)

libvirt_domain_get_autostart($res)

libvirt_domain_set_autostart($res, $flags)

libvirt_domain_get_metadata($res, $type, $uri, $flags)

libvirt_domain_set_metadata($res, $type, $metadata, $key, $uri, $flags)

libvirt_domain_is_active($res)

libvirt_domain_lookup_by_name($res, $name)

libvirt_domain_lookup_by_uuid($res, $uuid)

libvirt_domain_qemu_agent_command($res, $cmd, $timeout, $flags)

libvirt_domain_lookup_by_uuid_string($res, $uuid)

libvirt_stream_create($res)

libvirt_stream_close($res)

libvirt_stream_abort($res)

libvirt_stream_finish($res)

libvirt_stream_recv($res, $data, $len)

libvirt_stream_send($res, $data, $length)

libvirt_domain_lookup_by_id($conn, $id)

libvirt_domain_get_name($res)

libvirt_domain_get_uuid_string($res)

libvirt_domain_get_screenshot_api($res, $screenID)

libvirt_domain_get_screenshot($res, $server, $scancode)

libvirt_domain_get_screen_dimensions($res, $server)

libvirt_domain_send_keys($res, $server, $scancode)

libvirt_domain_send_pointer_event($res, $server, $pos_x, $pos_y, $clicked, $release)

libvirt_domain_get_uuid($res)

libvirt_domain_get_id($res)

libvirt_domain_get_next_dev_ids($res)

libvirt_connect_get_capabilities($conn, $xpath)

libvirt_connect_get_emulator($conn, $arch)

libvirt_connect_get_nic_models($conn, $arch)

libvirt_connect_get_soundhw_models($conn, $arch, $flags)

libvirt_domain_new($conn, $name, $arch, $memMB, $maxmemMB, $vcpus, $iso_image, $disks, $networks, $flags)

libvirt_domain_new_get_vnc()

libvirt_domain_get_xml_desc($res, $xpath)

libvirt_domain_get_disk_devices($res)

libvirt_domain_get_interface_devices($res)

libvirt_domain_change_vcpus($res, $numCpus, $flags)

libvirt_domain_change_memory($res, $allocMem, $allocMax, $flags)

libvirt_domain_change_boot_devices($res, $first, $second, $flags)

libvirt_domain_disk_add($res, $img, $dev, $typ, $driver, $flags)

libvirt_domain_disk_remove($res, $dev, $flags)

libvirt_domain_nic_add($res, $mac, $network, $model, $flags)

libvirt_domain_nic_remove($res, $dev, $flags)

libvirt_domain_get_info($res)

libvirt_domain_create($res)

libvirt_domain_destroy($res)

libvirt_domain_resume($res)

libvirt_domain_core_dump($res, $to)

libvirt_domain_shutdown($res)

libvirt_domain_managedsave($res)

libvirt_domain_suspend($res)

libvirt_domain_undefine($res)

libvirt_domain_reboot($res, $flags)

libvirt_domain_define_xml($conn, $xml)

libvirt_domain_create_xml($conn, $xml)

libvirt_domain_memory_peek($res, $start, $size, $flags)

libvirt_domain_memory_stats($res, $flags)

libvirt_domain_update_device($res, $xml, $flags)

libvirt_domain_block_stats($res, $path)

libvirt_domain_block_resize($res, $path, $size, $flags)

libvirt_domain_block_commit($res, $disk, $base, $top, $bandwidth, $flags)

libvirt_domain_block_job_abort($res, $path, $flags)

libvirt_domain_block_job_set_speed($res, $path, $bandwidth, $flags)

libvirt_domain_get_network_info($res, $mac)

libvirt_domain_get_block_info($res, $dev)

libvirt_domain_xml_xpath($res, $xpath, $flags)

libvirt_domain_interface_stats($res, $path)

libvirt_domain_get_connect($res)

libvirt_domain_migrate_to_uri($res, $dest_uri, $flags, $dname, $bandwidth)

libvirt_domain_migrate_to_uri2($res, $dconnuri, $miguri, $dxml, $flags, $dname, $bandwidth)

libvirt_domain_migrate($res, $dest_conn, $flags, $dname, $bandwidth)

libvirt_domain_get_job_info($res)

libvirt_domain_has_current_snapshot($res, $flags)

libvirt_domain_snapshot_lookup_by_name($res, $name, $flags)

libvirt_domain_snapshot_create($res, $flags)

libvirt_domain_snapshot_get_xml($res, $flags)

libvirt_domain_snapshot_revert($res, $flags)

libvirt_domain_snapshot_delete($res, $flags)

libvirt_list_domain_snapshots($res, $flags)

libvirt_storagepool_lookup_by_name($res, $name)

libvirt_storagepool_lookup_by_volume($res)

libvirt_storagepool_list_volumes($res)

libvirt_storagepool_get_info($res)

libvirt_storagevolume_lookup_by_name($res, $name)

libvirt_storagevolume_lookup_by_path($res, $path)

libvirt_storagevolume_get_name($res)

libvirt_storagevolume_get_path($res)

libvirt_storagevolume_get_info($res)

libvirt_storagevolume_get_xml_desc($res, $xpath, $flags)

libvirt_storagevolume_create_xml($res, $xml, $flags)

libvirt_storagevolume_create_xml_from($pool, $xml, $original_volume)

libvirt_storagevolume_delete($res, $flags)

libvirt_storagevolume_resize($res, $capacity, $flags)

libvirt_storagevolume_download($res, $stream, $offset, $length, $flags)

libvirt_storagevolume_upload($res, $stream, $offset, $length, $flags)

libvirt_storagepool_get_uuid_string($res)

libvirt_storagepool_get_name($res)

libvirt_storagepool_lookup_by_uuid_string($res, $uuid)

libvirt_storagepool_get_xml_desc($res, $xpath)

libvirt_storagepool_define_xml($res, $xml, $flags)

libvirt_storagepool_undefine($res)

libvirt_storagepool_create($res)

libvirt_storagepool_destroy($res)

libvirt_storagepool_is_active($res)

libvirt_storagepool_get_volume_count($res)

libvirt_storagepool_refresh($res, $flags)

libvirt_storagepool_set_autostart($res, $flags)

libvirt_storagepool_get_autostart($res)

libvirt_storagepool_build($res)

libvirt_storagepool_delete($res)

libvirt_list_storagepools($res)

libvirt_list_active_storagepools($res)

libvirt_list_inactive_storagepools($res)

libvirt_list_domains($res)

libvirt_list_domain_resources($res)

libvirt_list_active_domain_ids($res)

libvirt_list_active_domains($res)

libvirt_list_inactive_domains($res)

libvirt_list_networks($res, $flags)

libvirt_list_nodedevs($res, $cap)

libvirt_nodedev_get($res, $name)

libvirt_nodedev_capabilities($res)

libvirt_nodedev_get_xml_desc($res, $xpath)

libvirt_nodedev_get_information($res)

libvirt_network_define_xml($res, $xml)

libvirt_network_undefine($res)

libvirt_network_get($res, $name)

libvirt_network_get_bridge($res)

libvirt_network_get_active($res)

libvirt_network_get_information($res)

libvirt_network_set_active($res, $flags)

libvirt_network_get_xml_desc($res, $xpath)

libvirt_version($type)

libvirt_check_version($major, $minor, $micro, $type)

libvirt_has_feature($name)

libvirt_get_iso_images($path)

libvirt_print_binding_resources()

libvirt_logfile_set($filename, $maxsize)

Full Libvirt API Documentation is available at here.