Debian Codegraph @

ansible_collections/dellemc/openmanage/docs/modules/ome_template_info.rst

raw
1 .. _ome_template_info_module:
2
3
4 ome_template_info -- Retrieves template details from OpenManage Enterprise
5 ==========================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module retrieves the list and details of all the templates on OpenManage Enterprise.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - python \>= 3.9.6
24
25
26
27 Parameters
28 ----------
29
30 template_id (optional, int, None)
31 Unique Id of the template.
32
33
34 system_query_options (optional, dict, None)
35 Options for pagination of the output.
36
37
38 filter (optional, str, None)
39 Filter records by the supported values.
40
41
42
43 hostname (True, str, None)
44 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
45
46
47 username (False, str, None)
48 OpenManage Enterprise or OpenManage Enterprise Modular username.
49
50 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
51
52 Example: export OME\_USERNAME=username
53
54
55 password (False, str, None)
56 OpenManage Enterprise or OpenManage Enterprise Modular password.
57
58 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
59
60 Example: export OME\_PASSWORD=password
61
62
63 x_auth_token (False, str, None)
64 Authentication token.
65
66 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
67
68 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
69
70
71 port (optional, int, 443)
72 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
73
74
75 validate_certs (optional, bool, True)
76 If \ :literal:`false`\ , the SSL certificates will not be validated.
77
78 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
79
80 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
81
82
83 ca_path (optional, path, None)
84 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
85
86
87 timeout (optional, int, 30)
88 The socket level timeout in seconds.
89
90
91
92
93
94 Notes
95 -----
96
97 .. note::
98 - Run this module from a system that has direct access to Dell OpenManage Enterprise.
99 - This module supports \ :literal:`check\_mode`\ .
100
101
102
103
104 Examples
105 --------
106
107 .. code-block:: yaml+jinja
108
109
110 ---
111 - name: Retrieve basic details of all templates
112 dellemc.openmanage.ome_template_info:
113 hostname: "192.168.0.1"
114 username: "username"
115 password: "password"
116 ca_path: "/path/to/ca_cert.pem"
117
118 - name: Retrieve details of a specific template identified by its template ID
119 dellemc.openmanage.ome_template_info:
120 hostname: "192.168.0.1"
121 username: "username"
122 password: "password"
123 ca_path: "/path/to/ca_cert.pem"
124 template_id: 1
125
126 - name: Get filtered template info based on name
127 dellemc.openmanage.ome_template_info:
128 hostname: "192.168.0.1"
129 username: "username"
130 password: "password"
131 ca_path: "/path/to/ca_cert.pem"
132 system_query_options:
133 filter: "Name eq 'new template'"
134
135
136
137 Return Values
138 -------------
139
140 msg (on error, str, Failed to fetch the template facts)
141 Overall template facts status.
142
143
144 template_info (success, dict, {'192.168.0.1': {'CreatedBy': 'system', 'CreationTime': '1970-01-31 00:00:56.372144', 'Description': 'Tune workload for Performance Optimized Virtualization', 'HasIdentityAttributes': False, 'Id': 1, 'IdentityPoolId': 0, 'IsBuiltIn': True, 'IsPersistencePolicyValid': False, 'IsStatelessAvailable': False, 'LastUpdatedBy': None, 'LastUpdatedTime': '1970-01-31 00:00:56.372144', 'Name': 'iDRAC Enable Performance Profile for Virtualization', 'SourceDeviceId': 0, 'Status': 0, 'TaskId': 0, 'TypeId': 2, 'ViewTypeId': 4}})
145 Details of the templates.
146
147
148
149
150
151 Status
152 ------
153
154
155
156
157
158 Authors
159 ~~~~~~~
160
161 - Sajna Shetty(@Sajna-Shetty)
162 - Meenakshi Dembi(@meenakshidembi691)
163
164