Get the hypervisor ID number for the domain

libvirt_domain_get_connect
libvirt_domain_get_info
Libvirt Functions
PHP Manual

# libvirt_domain_get_id

(php-libvirt 0.1)

libvirt_domain_get_id — Get the hypervisor ID number for the domain

### Description

integer libvirt_domain_get_id ( resource `$domain` )

Get the hypervisor ID number for the domain. Is valid only for running domains. For more unique ID use libvirt_domain_get_uuid_string() or libvirt_domain_get_uuid(). These functions are valid for all domains not only for active ones.

### Parameters

`domain`

  Domain resource of domain to look up. You can get domain resource using various functions (i.e. libvirt_domain_lookup_by_uuid() or libvirt_list_domains()). Valid only for running (active) domains.

### Return Values

Hypervisor ID of the domain.

### See Also

- libvirt_domain_get_name() - Get the public name for that domain
- libvirt_domain_get_uuid() - Get the UUID for a domain as binary string.
- libvirt_domain_get_uuid_string() - Get the UUID for a domain as string.

libvirt_domain_get_connect
libvirt_domain_get_info
Libvirt Functions
PHP Manual