Libvirt Functions
PHP Manual

libvirt_domain_lookup_by_id

(php-libvirt 0.1)

libvirt_domain_lookup_by_idTry to look up a domain based on the hypervisor ID number

Description

resource libvirt_domain_lookup_by_id ( resource $connection , integer $ID )

Try to look up a domain based on the hypervisor ID number. Note that this won't work for inactive domains which have an ID of -1, in that case a lookup based on the Name or UUId need to be done instead.

Parameters

connection

Libvirt connection obtained by calling libvirt_connect().

ID

Hypervisor ID of a domain.

Return Values

FALSE on failure and domain resource on success

See Also


Libvirt Functions
PHP Manual