libvirt_domain_lookup_by_id Try to look up a domain based on the hypervisor ID number
&reftitle.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.

&reftitle.parameters;

connection

  Libvirt connection obtained by calling `libvirt_connect`.

ID

  Hypervisor ID of a domain.

&reftitle.returnvalues;

&false; on failure and domain resource on success

&reftitle.seealso;

- `libvirt_domain_lookup_by_name`
- `libvirt_domain_lookup_by_uuid`
- `libvirt_domain_lookup_by_uuid_string`