Debian Codegraph @

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

raw
1 .. _ome_profile_info_module:
2
3
4 ome_profile_info -- Retrieve profiles with attribute details
5 ============================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module retrieve profiles with attributes on OpenManage Enterprise or OpenManage Enterprise Modular.
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 profile_id (optional, int, None)
31 Id of the profile.
32
33 This is mutually exclusive with \ :emphasis:`profile\_name`\ , \ :emphasis:`system\_query\_options`\ , \ :emphasis:`template\_id`\ , and \ :emphasis:`template\_name`\ .
34
35
36 profile_name (optional, str, None)
37 Name of the profile.
38
39 This is mutually exclusive with \ :emphasis:`template\_id`\ , \ :emphasis:`profile\_id`\ , \ :emphasis:`system\_query\_options`\ , and \ :emphasis:`template\_name`\ .
40
41
42 template_id (optional, int, None)
43 Provide the ID of the template to retrieve the list of profile(s) linked to it.
44
45 This is mutually exclusive with \ :emphasis:`profile\_name`\ , \ :emphasis:`profile\_id`\ , \ :emphasis:`system\_query\_options`\ , and \ :emphasis:`template\_name`\ .
46
47
48 template_name (optional, str, None)
49 Provide the name of the template to retrieve the list of profile(s) linked to it.
50
51 This is mutually exclusive with \ :emphasis:`profile\_name`\ , \ :emphasis:`profile\_id`\ , \ :emphasis:`template\_id`\ , and \ :emphasis:`system\_query\_options`\ .
52
53
54 system_query_options (optional, dict, None)
55 Option for providing supported odata filters.
56
57 The profile list can be fetched and sorted based on ProfileName, TemplateName, TargetTypeId, TargetName, ChassisName, ProfileState, LastRunStatus, or ProfileModified.
58
59 This is mutually exclusive with \ :emphasis:`profile\_name`\ , \ :emphasis:`profile\_id`\ , \ :emphasis:`template\_id`\ , and \ :emphasis:`template\_name`\ .
60
61 \ :literal:`Note`\ If \ :emphasis:`profile\_name`\ , \ :emphasis:`profile\_id`\ , \ :emphasis:`template\_id`\ , or \ :emphasis:`template\_name`\ option is not provided, the module retrieves all the profiles.
62
63
64 hostname (True, str, None)
65 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
66
67
68 username (False, str, None)
69 OpenManage Enterprise or OpenManage Enterprise Modular username.
70
71 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
72
73 Example: export OME\_USERNAME=username
74
75
76 password (False, str, None)
77 OpenManage Enterprise or OpenManage Enterprise Modular password.
78
79 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
80
81 Example: export OME\_PASSWORD=password
82
83
84 x_auth_token (False, str, None)
85 Authentication token.
86
87 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
88
89 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
90
91
92 port (optional, int, 443)
93 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
94
95
96 validate_certs (optional, bool, True)
97 If \ :literal:`false`\ , the SSL certificates will not be validated.
98
99 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
100
101 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
102
103
104 ca_path (optional, path, None)
105 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
106
107
108 timeout (optional, int, 30)
109 The socket level timeout in seconds.
110
111
112
113
114
115 Notes
116 -----
117
118 .. note::
119 - Run this module on a system that has direct access to Dell OpenManage Enterprise.
120 - This module supports \ :literal:`check\_mode`\ .
121
122
123
124
125 Examples
126 --------
127
128 .. code-block:: yaml+jinja
129
130
131 ---
132 - name: Retrieve all profiles
133 dellemc.openmanage.ome_profile_info:
134 hostname: "192.168.0.1"
135 username: "username"
136 password: "password"
137 ca_path: "/path/to/ca_cert.pem"
138
139 - name: Retrieve profile using the name
140 dellemc.openmanage.ome_profile_info:
141 hostname: "192.168.0.1"
142 username: "username"
143 password: "password"
144 ca_path: "/path/to/ca_cert.pem"
145 profile_name: eprof 00001
146
147 - name: Retrieve profile using the id
148 dellemc.openmanage.ome_profile_info:
149 hostname: "192.168.0.1"
150 username: "username"
151 password: "password"
152 ca_path: "/path/to/ca_cert.pem"
153 profile_id: 10129
154
155 - name: Retrieve the profiles using the template name
156 dellemc.openmanage.ome_profile_info:
157 hostname: "192.168.0.1"
158 username: "username"
159 password: "password"
160 ca_path: "/path/to/ca_cert.pem"
161 template_name: t2
162
163 - name: Retrieve the profiles using the template id
164 dellemc.openmanage.ome_profile_info:
165 hostname: "192.168.0.1"
166 username: "username"
167 password: "password"
168 ca_path: "/path/to/ca_cert.pem"
169 template_id: 11
170
171 - name: Retrieve the profiles based on the odata filters
172 dellemc.openmanage.ome_profile_info:
173 hostname: "192.168.0.1"
174 username: "username"
175 password: "password"
176 ca_path: "/path/to/ca_cert.pem"
177 system_query_options:
178 filter: TemplateName eq 'mytemplate'
179 orderby: ProfileState
180
181
182
183 Return Values
184 -------------
185
186 msg (always, str, Successfully retrieved the profile information.)
187 Status of profile information retrieval.
188
189
190 profile_info (success, list, [{'Id': 71460, 'ProfileName': 'Profile 00001', 'ProfileDescription': 'from source template: (Template)', 'TemplateId': 8, 'TemplateName': 'Template', 'DataSchemaId': 8, 'TargetId': 0, 'TargetName': None, 'TargetTypeId': 0, 'DeviceIdInSlot': 0, 'ChassisId': 0, 'ChassisName': None, 'GroupId': 0, 'GroupName': None, 'NetworkBootToIso': None, 'ProfileState': 0, 'DeploymentTaskId': 0, 'LastRunStatus': 2200, 'ProfileModified': 0, 'CreatedBy': 'admin', 'EditedBy': None, 'CreatedDate': '2019-09-26 13:56:41.924966', 'LastEditDate': '2020-12-11 08:27:20.500564', 'LastDeployDate': '', 'AttributeIdMap': {'4965': {'Value': 'hostname', 'IsReadOnly': False, 'IsIgnored': True}, '4963': {'Value': 'second floor', 'IsReadOnly': False, 'IsIgnored': True}, '4960': {'Value': '10A', 'IsReadOnly': False, 'IsIgnored': True}, '4959': {'Value': 'OMAMDEV', 'IsReadOnly': False, 'IsIgnored': True}, '4957': {'Value': 'Dell LAB', 'IsReadOnly': False, 'IsIgnored': True}, '4958': {'Value': None, 'IsReadOnly': False, 'IsIgnored': True}, '4066': {'Value': None, 'IsReadOnly': False, 'IsIgnored': True}, '4231': {'Value': '1', 'IsReadOnly': False, 'IsIgnored': False}, '4229': {'Value': 'Disabled', 'IsReadOnly': False, 'IsIgnored': False}}, 'AttributeDetails': {'System': {'Server Operating System': {'ServerOS 1 Server Host Name': 4965}, 'Server Topology': {'ServerTopology 1 Room Name': 4963, 'ServerTopology 1 Rack Slot': 4960, 'ServerTopology 1 Rack Name': 4959, 'ServerTopology 1 Data Center Name': 4957, 'ServerTopology 1 Aisle Name': 4958}}, 'iDRAC': {'Active Directory': {'ActiveDirectory 1 Active Directory RAC Name': 4066}, 'NIC Information': {'NIC 1 VLAN ID': 4231, 'NIC 1 Enable VLAN': 4229}}}}])
191 Information about the profile.
192
193
194 error_info (on HTTP error, dict, {'error': {'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.', '@Message.ExtendedInfo': [{'MessageId': 'GEN1234', 'RelatedProperties': [], 'Message': 'Unable to process the request because an error occurred.', 'MessageArgs': [], 'Severity': 'Critical', 'Resolution': 'Retry the operation. If the issue persists, contact your system administrator.'}]}})
195 Details of the HTTP Error.
196
197
198
199
200
201 Status
202 ------
203
204
205
206
207
208 Authors
209 ~~~~~~~
210
211 - Jagadeesh N V(@jagadeeshnv)
212