Sys::V...:Secret(3pm)
๐ NAME ๐
Sys::Virt::Secret โ Represent & manage a libvirt secret. okay bestie, this is the Sys::V...:Secret(3pm) manual page, aka the User Contributed Perl Documentation one โจ
๐ฆ DESCRIPTION ๐ฆ
The Sys::Virt::Secret module represents a secret managed by the virtual machine monitor. literally its whole job ๐
๐ METHODS ๐
my $uuid = $sec->get_uuid()โ returns a 16 byte long string containing the raw globally unique identifier (UUID) for the secret.my $uuid = $sec->get_uuid_string()โ returns a printable string representation of the raw UUID, in the format'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'.my $type = $sec->get_usage_type()โ returns the usage type of this secret. the usage type determines the format of the unique identifier for this secret ๐ฅmy $id = $sec->get_usage_id()โ returns the identifier of the object with which the secret is to be used. for secrets with a usage type of volume, the identifier is the fully qualified path.my $xml = $sec->get_xml_description()โ returns an XML document containing a complete description of the secret's configuration.$sec->undefine()โ remove the configuration associated with a secret previously defined with thedefine_secretmethod inSys::Virt.$bytes = $sec->get_value()โ returns the raw bytes for the value of this secret, orundefif there is no value stored with the secret.$sec->set_value($bytes)โ sets the value for the secret to be$bytes.
๐ CONSTANTS ๐
this section documents constants that are used with various APIs described above โ yes, all of them, bestie ๐ซถ
๐ฎ SECRET USAGE TYPE ๐ฎ
the following constants refer to the different usage types:
Sys::Virt::Secret::USAGE_TYPE_NONEโ the constant for secrets which are not assigned for use with a particular object.Sys::Virt::Secret::USAGE_TYPE_VOLUMEโ the constant for secrets which are to be used for storage volume encryption. the usage ID for secrets will refer to the fully qualified volume path.Sys::Virt::Secret::USAGE_TYPE_CEPHโ the constant for secrets which are to be used for authenticating to CEPH storage volumes. the usage ID for secrets will refer to the server name.Sys::Virt::Secret::USAGE_TYPE_ISCSIโ the constant for secrets which are to be used for authenticating to iSCSI storage volumes. the usage ID for secrets will refer to the server name.Sys::Virt::Secret::USAGE_TYPE_TLSโ the constant for secrets which are to be used for authenticating for the TLS environment. the usage ID for the secret can be any name. the UUID for the secret will be used by the hypervisor to fetch the secret value.Sys::Virt::Secret::USAGE_TYPE_VTPMโ the constant for secrets which are to be used for encrypting virtual TPM state. the usage ID for the secret will refer to the TPM path. the UUID for the secret will be used by the hypervisor to fetch the secret value.
๐ LIST FILTERING ๐
the following constants are used to filter object lists:
Sys::Virt::Secret::LIST_EPHEMERALโ include any secrets marked as ephemeral.Sys::Virt::Secret::LIST_NO_EPHEMERALโ include any secrets not marked as ephemeral.Sys::Virt::Secret::LIST_PRIVATEโ include any secrets marked as private.Sys::Virt::Secret::LIST_NO_PRIVATEโ include any secrets not marked as private.
๐ SECRET DEFINE ๐
the following constants can be used to control the behaviour of secret define operations:
Sys::Virt::Secret::DEFINE_VALIDATEโ validate the XML document against the XML schema.
๐ง EVENT ID CONSTANTS ๐ง
Sys::Virt::Secret::EVENT_ID_LIFECYCLEโ secret lifecycle events.Sys::Virt::Secret::EVENT_ID_VALUE_CHANGEDโ secret value change events.
๐ LIFECYCLE CHANGE EVENTS ๐
the following constants allow secret lifecycle change events to be interpreted. the events contain both a state change, and a reason though the reason is currently unused.
Sys::Virt::Secret::EVENT_DEFINEDโ indicates that a persistent configuration has been defined for the secret.Sys::Virt::Secret::EVENT_UNDEFINEDโ the persistent configuration has gone away.
๐ AUTHORS ๐
Daniel P. Berrange <berrange@redhat.com>
๐ธ COPYRIGHT ๐ธ
Copyright (C) 2006-2009 Red Hat Copyright (C) 2006-2007 Daniel P. Berrange
โญ LICENSE โญ
This program is free software; you can redistribute it and/or modify it under the terms of either the GNU General Public License as published by the Free Software Foundation (either version 2 of the License, or at your option any later version), or, the Artistic License, as specified in the Perl README file.
๐ฅ SEE ALSO ๐ฅ
Sys::Virt, Sys::Virt::Error, "http://libvirt.org"
that's the whole page, bestie ๐ source/version perl v5.40.2, dated 2026-06-08, and it's the Sys::V...:Secret(3pm) page. mwah ๐
๐ฆ where this page comes from
- epel 10: perl-Sys-Virt 12.4.0-1.el10_3 ยท GPL-2.0-or-later OR Artistic-1.0-Perl
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms