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

libvirt_domain_interface_stats
libvirt_domain_lookup_by_name
Libvirt Functions
PHP Manual

# libvirt_domain_lookup_by_id

(php-libvirt 0.1)

libvirt_domain_lookup_by_id — Try 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_domain_lookup_by_name() - Try to look up a domain by its name.
- libvirt_domain_lookup_by_uuid() - Try to look up a domain by its UUID (binary)
- libvirt_domain_lookup_by_uuid_string() - Try to look up a domain by its UUID (textual)

libvirt_domain_interface_stats
libvirt_domain_lookup_by_name
Libvirt Functions
PHP Manual