1Sys::Virt::Secret(3)  User Contributed Perl Documentation Sys::Virt::Secret(3)
2
3
4

NAME

6       Sys::Virt::Secret - Represent & manage a libvirt secret
7

DESCRIPTION

9       The "Sys::Virt::Secret" module represents a secret managed by the
10       virtual machine monitor.
11

METHODS

13       my $uuid = $sec->get_uuid()
14           Returns a 16 byte long string containing the raw globally unique
15           identifier (UUID) for the secret.
16
17       my $uuid = $sec->get_uuid_string()
18           Returns a printable string representation of the raw UUID, in the
19           format 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'.
20
21       my $type = $sec->get_usage_type()
22           Returns the usage type of this secret. The usage type determines
23           the format of the unique identifier for this secret.
24
25       my $id = $sec->get_usage_id()
26           Returns the identifier of the object with which the secret is to be
27           used. For secrets with a usage type of volume, the identifier is
28           the fully qualfied path.
29
30       my $xml = $sec->get_xml_description()
31           Returns an XML document containing a complete description of the
32           secret's configuration
33
34       $sec->undefine()
35           Remove the configuration associated with a secret previously
36           defined with the "define_secret" method in Sys::Virt.
37
38       $bytes = $sec->get_value()
39           Returns the raw bytes for the value of this secret, or undef if
40           there is no value stored with the secret.
41
42       $sec->set_value($bytes)
43           Sets the value for the secret to be $bytes.
44

CONSTANTS

46       This section documents constants that are used with various APIs
47       described above
48
49   SECRET USAGE TYPE
50       The following constants refer to the different usage types
51
52       Sys::Virt::Secret::USAGE_TYPE_NONE
53           The constant for secrets which are not assigned for use with a
54           particular object
55
56       Sys::Virt::Secret::USAGE_TYPE_VOLUME
57           The constant for secrets which are to be used for storage volume
58           encryption. The usage ID for secrets will refer to the fully
59           qualified volume path.
60
61       Sys::Virt::Secret::USAGE_TYPE_CEPH
62           The constant for secrets which are to be used for authenticating to
63           CEPH storage volumes. The usage ID for secrets will refer to the
64           server name.
65
66       Sys::Virt::Secret::USAGE_TYPE_ISCSI
67           The constant for secrets which are to be used for authenticating to
68           iSCSI storage volumes. The usage ID for secrets will refer to the
69           server name.
70
71       Sys::Virt::Secret::USAGE_TYPE_TLS
72           The constant for secrets which are to be used for authenticating
73           for the TLS environment. The usage ID for the secret can be any
74           name. The UUID for the secret will be used by the hypervisor to
75           fetch the secret value.
76
77       Sys::Virt::Secret::USAGE_TYPE_VTPM
78           The constant for secrets which are to be used for encrypting
79           virtual TPM state. The usage ID for the secret will refer to the
80           TPM path. The UUID for the secret will be used by the hypervisor to
81           fetch the secret value.
82
83   LIST FILTERING
84       The following constants are used to filter object lists
85
86       Sys::Virt::Secret::LIST_EPHEMERAL
87           Include any secrets marked as ephemeral
88
89       Sys::Virt::Secret::LIST_NO_EPHEMERAL
90           Include any secrets not marked as ephemeral
91
92       Sys::Virt::Secret::LIST_PRIVATE
93           Include any secrets marked as private
94
95       Sys::Virt::Secret::LIST_NO_PRIVATE
96           Include any secrets not marked as private
97
98   EVENT ID CONSTANTS
99       Sys::Virt::Secret::EVENT_ID_LIFECYCLE
100           Secret lifecycle events
101
102       Sys::Virt::Secret::EVENT_ID_VALUE_CHANGED
103           Secret value change events
104
105   LIFECYCLE CHANGE EVENTS
106       The following constants allow secret lifecycle change events to be
107       interpreted. The events contain both a state change, and a reason
108       though the reason is currently unused.
109
110       Sys::Virt::Secret::EVENT_DEFINED
111           Indicates that a persistent configuration has been defined for the
112           secret.
113
114       Sys::Virt::Secret::EVENT_UNDEFINED
115           The persistent configuration has gone away
116

AUTHORS

118       Daniel P. Berrange <berrange@redhat.com>
119
121       Copyright (C) 2006-2009 Red Hat Copyright (C) 2006-2007 Daniel P.
122       Berrange
123

LICENSE

125       This program is free software; you can redistribute it and/or modify it
126       under the terms of either the GNU General Public License as published
127       by the Free Software Foundation (either version 2 of the License, or at
128       your option any later version), or, the Artistic License, as specified
129       in the Perl README file.
130

SEE ALSO

132       Sys::Virt, Sys::Virt::Error, "http://libvirt.org"
133
134
135
136perl v5.34.0                      2021-07-22              Sys::Virt::Secret(3)
Impressum