1Sys::Virt::Secret(3) User Contributed Perl Documentation Sys::Virt::Secret(3)
2
3
4
6 Sys::Virt::Secret - Represent & manage a libvirt secret
7
9 The "Sys::Virt::Secret" module represents a secret managed by the
10 virtual machine monitor.
11
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
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 LIST FILTERING
67 The following constants are used to filter object lists
68
69 Sys::Virt::Secret::LIST_EPHEMERAL
70 Include any secrets marked as ephemeral
71
72 Sys::Virt::Secret::LIST_NO_EPHEMERAL
73 Include any secrets not marked as ephemeral
74
75 Sys::Virt::Secret::LIST_PRIVATE
76 Include any secrets marked as private
77
78 Sys::Virt::Secret::LIST_NO_PRIVATE
79 Include any secrets not marked as private
80
82 Daniel P. Berrange <berrange@redhat.com>
83
85 Copyright (C) 2006-2009 Red Hat Copyright (C) 2006-2007 Daniel P.
86 Berrange
87
89 This program is free software; you can redistribute it and/or modify it
90 under the terms of either the GNU General Public License as published
91 by the Free Software Foundation (either version 2 of the License, or at
92 your option any later version), or, the Artistic License, as specified
93 in the Perl README file.
94
96 Sys::Virt, Sys::Virt::Error, "http://libvirt.org"
97
98
99
100perl v5.10.1 2012-09-26 Sys::Virt::Secret(3)