Debian Codegraph @

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

raw
1 .. _ome_network_vlan_info_module:
2
3
4 ome_network_vlan_info -- Retrieves the information about networks VLAN(s) present in OpenManage Enterprise
5 ==========================================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows to retrieve the following. - A list of all the network VLANs with their detailed information. - Information about a specific network VLAN using VLAN \ :emphasis:`id`\ or VLAN \ :emphasis:`name`\ .
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 id (optional, int, None)
31 A unique identifier of the network VLAN available in the device.
32
33 \ :emphasis:`id`\ and \ :emphasis:`name`\ are mutually exclusive.
34
35
36 name (optional, str, None)
37 A unique name of the network VLAN available in the device.
38
39 \ :emphasis:`name`\ and \ :emphasis:`id`\ are mutually exclusive.
40
41
42 hostname (True, str, None)
43 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
44
45
46 username (False, str, None)
47 OpenManage Enterprise or OpenManage Enterprise Modular username.
48
49 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
50
51 Example: export OME\_USERNAME=username
52
53
54 password (False, str, None)
55 OpenManage Enterprise or OpenManage Enterprise Modular password.
56
57 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
58
59 Example: export OME\_PASSWORD=password
60
61
62 x_auth_token (False, str, None)
63 Authentication token.
64
65 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
66
67 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
68
69
70 port (optional, int, 443)
71 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
72
73
74 validate_certs (optional, bool, True)
75 If \ :literal:`false`\ , the SSL certificates will not be validated.
76
77 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
78
79 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
80
81
82 ca_path (optional, path, None)
83 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
84
85
86 timeout (optional, int, 30)
87 The socket level timeout in seconds.
88
89
90
91
92
93 Notes
94 -----
95
96 .. note::
97 - Run this module from a system that has direct access to Dell OpenManage Enterprise.
98 - This module supports \ :literal:`check\_mode`\ .
99
100
101
102
103 Examples
104 --------
105
106 .. code-block:: yaml+jinja
107
108
109 ---
110 - name: Retrieve information about all network VLANs(s) available in the device
111 dellemc.openmanage.ome_network_vlan_info:
112 hostname: "192.168.0.1"
113 username: "username"
114 password: "password"
115 ca_path: "/path/to/ca_cert.pem"
116
117 - name: Retrieve information about a network VLAN using the VLAN ID
118 dellemc.openmanage.ome_network_vlan_info:
119 hostname: "192.168.0.1"
120 username: "username"
121 password: "password"
122 ca_path: "/path/to/ca_cert.pem"
123 id: 12345
124
125 - name: Retrieve information about a network VLAN using the VLAN name
126 dellemc.openmanage.ome_network_vlan_info:
127 hostname: "192.168.0.1"
128 username: "username"
129 password: "password"
130 ca_path: "/path/to/ca_cert.pem"
131 name: "Network VLAN - 1"
132
133
134
135 Return Values
136 -------------
137
138 msg (success, str, {'msg': 'Successfully retrieved the network VLAN information.', 'network_vlan_info': [{'CreatedBy': 'admin', 'CreationTime': '2020-09-02 18:48:42.129', 'Description': 'Description of Logical Network - 1', 'Id': 20057, 'InternalRefNWUUId': '42b9903d-93f8-4184-adcf-0772e4492f71', 'Name': 'Network VLAN - 1', 'Type': {'Description': 'This is the network for general purpose traffic. QOS Priority : Bronze.', 'Id': 1, 'Name': 'General Purpose (Bronze)', 'NetworkTrafficType': 'Ethernet', 'QosType': {'Id': 4, 'Name': 'Bronze'}, 'VendorCode': 'GeneralPurpose'}, 'UpdatedBy': None, 'UpdatedTime': '2020-09-02 18:48:42.129', 'VlanMaximum': 111, 'VlanMinimum': 111}, {'CreatedBy': 'admin', 'CreationTime': '2020-09-02 18:49:11.507', 'Description': 'Description of Logical Network - 2', 'Id': 20058, 'InternalRefNWUUId': 'e46ccb3f-ef57-4617-ac76-46c56594005c', 'Name': 'Network VLAN - 2', 'Type': {'Description': 'This is the network for general purpose traffic. QOS Priority : Silver.', 'Id': 2, 'Name': 'General Purpose (Silver)', 'NetworkTrafficType': 'Ethernet', 'QosType': {'Id': 3, 'Name': 'Silver'}, 'VendorCode': 'GeneralPurpose'}, 'UpdatedBy': None, 'UpdatedTime': '2020-09-02 18:49:11.507', 'VlanMaximum': 112, 'VlanMinimum': 112}]})
139 Detailed information of the network VLAN(s).
140
141
142 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.'}]}})
143 Details of the HTTP Error.
144
145
146
147
148
149 Status
150 ------
151
152
153
154
155
156 Authors
157 ~~~~~~~
158
159 - Deepak Joshi(@deepakjoshishri)
160 - Meenakshi Dembi(@meenakshidembi691)