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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20230323/4aaac81c/attachment.htm>
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 errorI'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
On 3/23/23 10:35, 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 > > >Hey, thanks for the report. I've created a MR that fixes these problems here: https://gitlab.com/libvirt/libvirt-php/-/merge_requests/38 Michal