Option Flags

Peter Krempa pkrempa at redhat.com
Thu Mar 23 09:58:00 UTC 2023


On Thu, Mar 23, 2023 at 09:35:44 +0000, Simon Fairweather wrote:
> Hi
> 
> Are the flags documented? can this function be used to  specify  same as virsh
> undefine --nvram "name of VM"
> 
> libvirt_domain_undefine_flags($res, $flags)
> 
> [Since version (null)]
> 
> Function is used to undefine(with flags) the domain identified by it's
> resource.
> *@res [resource]*: libvirt domain resource, e.g. from
> libvirt_domain_lookup_by_*()
> *@flags [int]*: optional flags
> *Returns*: : TRUE for success, FALSE on error

I'm not sure which bindings you use but all API flags are documented in
our main API documentation. In your case for the virDomainUndefineFlags
API it's:
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainUndefineFlagsValues


More information about the libvirt-users mailing list