Debian Codegraph @

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

raw
1 .. _omevv_vcenter_info_module:
2
3
4 omevv_vcenter_info -- Retrieve all or specific OpenManage Enterprise vCenter information.
5 =========================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows you to retrieve all or specific vCenter information from 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 vcenter_hostname (optional, str, None)
31 vCenter IP address or hostname.
32
33 If \ :emphasis:`vcenter\_hostname`\ is provided, the module retrieves only specified vCenter information.
34
35
36 hostname (True, str, None)
37 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
38
39
40 username (False, str, None)
41 OpenManage Enterprise or OpenManage Enterprise Modular username.
42
43 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
44
45 Example: export OME\_USERNAME=username
46
47
48 password (False, str, None)
49 OpenManage Enterprise or OpenManage Enterprise Modular password.
50
51 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
52
53 Example: export OME\_PASSWORD=password
54
55
56 x_auth_token (False, str, None)
57 Authentication token.
58
59 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
60
61 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
62
63
64 port (optional, int, 443)
65 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
66
67
68 validate_certs (optional, bool, True)
69 If \ :literal:`false`\ , the SSL certificates will not be validated.
70
71 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
72
73 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
74
75
76 ca_path (optional, path, None)
77 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
78
79
80 timeout (optional, int, 30)
81 The socket level timeout in seconds.
82
83
84
85
86
87 Notes
88 -----
89
90 .. note::
91 - This module supports IPv4 and IPv6 addresses.
92
93
94
95
96 Examples
97 --------
98
99 .. code-block:: yaml+jinja
100
101
102 ---
103 - name: Retrieve all vCenter information.
104 dellemc.openmanage.omevv_vcenter_info:
105 hostname: "192.168.0.1"
106 username: "username"
107 password: "password"
108 ca_path: "path/to/ca_file"
109
110 - name: Retrieve specific vCenter information.
111 dellemc.openmanage.omevv_vcenter_info:
112 hostname: "192.168.0.1"
113 username: "username"
114 password: "password"
115 ca_path: "path/to/ca_file"
116 vcenter_hostname: xx.xx.xx.xx
117
118
119
120 Return Values
121 -------------
122
123 msg (always, str, Successfully retrieved the vCenter information.)
124 Status of the vCenter information for the retrieve operation.
125
126
127 vcenter_info (success, list, [{'uuid': '77373c7e-d2b0-453b-9888-102499919bd1', 'consoleAddress': 'vcenter_ip_or_hostname', 'description': 'vCenter 8.0', 'registeredExtensions': ['PHM', 'WEBCLIENT', 'PHA', 'VLCM']}, {'uuid': '77373c7e-d2b0-453b-9888-102499919bd2', 'consoleAddress': 'vcenter_ip_or_hostname', 'description': 'vCenter 8.1', 'registeredExtensions': ['PHM', 'WEBCLIENT', 'PHA', 'VLCM']}])
128 Information on the vCenter.
129
130
131 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.'}]}})
132 Details of the HTTP Error.
133
134
135
136
137
138 Status
139 ------
140
141
142
143
144
145 Authors
146 ~~~~~~~
147
148 - Lovepreet Singh (@singh-lovepreet1)
149