Libvirt Functions
PHP Manual

libvirt_domain_lookup_by_name

(php-libvirt 0.1)

libvirt_domain_lookup_by_nameTry to look up a domain by its name.

Description

resource libvirt_domain_lookup_by_name ( resource $connection , string $name )

Try to look up a domain on the given hypervisor based on its name.

Parameters

connection

Libvirt connection obtained by calling libvirt_connect().

name

Name of a domain.

Return Values

FALSE on failure and domain resource on success

See Also


Libvirt Functions
PHP Manual