Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_sm_devices_info.py

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Copyright (c) 2021, Cisco Systems
5 # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r"""
8 module: networks_sm_devices_info
9 short_description: Information module for networks _sm _devices
10 description:
11 - Information module for Networks Sm Devices Info.
12 - Get all networks _sm _devices.
13 - List the devices enrolled in an SM network with various specified fields and filters.
14 version_added: '1.0.0'
15 extends_documentation_fragment:
16 - cisco.meraki.module_info
17 - cisco.meraki.module_info_pagination
18 author: Francisco Munoz (@fmunoz)
19 options:
20 headers:
21 description: Additional headers.
22 type: dict
23 networkId:
24 description:
25 - Information module for Networks Sm Devices Info.
26 - NetworkId path parameter. Network ID.
27 type: str
28 fields:
29 description:
30 - Information module for Networks Sm Devices Info.
31 - >
32 Fields query parameter. Additional fields that will be displayed for each
33 device. The default fields are id, name, tags, ssid, wifiMac, osName, systemModel,
34 uuid, and serialNumber. The additional fields are ip, systemType, availableDeviceCapacity,
35 kioskAppName, biosVersion, lastConnected, missingAppsCount, userSuppliedAddress,
36 location, lastUser, ownerEmail, ownerUsername, osBuild, publicIp, phoneNumber,
37 diskInfoJson, deviceCapacity, isManaged, hadMdm, isSupervised, meid, imei,
38 iccid, simCarrierNetwork, cellularDataUsed, isHotspotEnabled, createdAt, batteryEstCharge,
39 quarantined, avName, avRunning, asName, fwName, isRooted, loginRequired, screenLockEnabled,
40 screenLockDelay, autoLoginDisabled, autoTags, hasMdm, hasDesktopAgent, diskEncryptionEnabled,
41 hardwareEncryptionCaps, passCodeLock, usesHardwareKeystore, androidSecurityPatchVersion,
42 cellular, and url.
43 elements: str
44 type: list
45 wifiMacs:
46 description:
47 - Information module for Networks Sm Devices Info.
48 - WifiMacs query parameter. Filter devices by wifi mac(s).
49 elements: str
50 type: list
51 serials:
52 description:
53 - Information module for Networks Sm Devices Info.
54 - Serials query parameter. Filter devices by serial(s).
55 elements: str
56 type: list
57 ids:
58 description:
59 - Information module for Networks Sm Devices Info.
60 - Ids query parameter. Filter devices by id(s).
61 elements: str
62 type: list
63 uuids:
64 description:
65 - Information module for Networks Sm Devices Info.
66 - Uuids query parameter. Filter devices by uuid(s).
67 elements: str
68 type: list
69 systemTypes:
70 description:
71 - Information module for Networks Sm Devices Info.
72 - SystemTypes query parameter. Filter devices by system type(s).
73 elements: str
74 type: list
75 scope:
76 description:
77 - Information module for Networks Sm Devices Info.
78 - >
79 Scope query parameter. Specify a scope (one of all, none, withAny, withAll,
80 withoutAny, or withoutAll) and a set of tags.
81 elements: str
82 type: list
83 perPage:
84 description:
85 - Information module for Networks Sm Devices Info.
86 - PerPage query parameter. The number of entries per page returned. Acceptable
87 range is 3 - 1000. Default is 1000.
88 type: int
89 startingAfter:
90 description:
91 - Information module for Networks Sm Devices Info.
92 - >
93 StartingAfter query parameter. A token used by the server to indicate the
94 start of the page. Often this is a timestamp or an ID but it is not limited
95 to those. This parameter should not be defined by client applications. The
96 link for the first, last, prev, or next page in the HTTP Link header should
97 define it.
98 type: str
99 endingBefore:
100 description:
101 - Information module for Networks Sm Devices Info.
102 - >
103 EndingBefore query parameter. A token used by the server to indicate the end
104 of the page. Often this is a timestamp or an ID but it is not limited to those.
105 This parameter should not be defined by client applications. The link for
106 the first, last, prev, or next page in the HTTP Link header should define
107 it.
108 type: str
109 requirements:
110 - meraki >= 2.4.9
111 - python >= 3.5
112 seealso:
113 - name: Cisco Meraki documentation for sm getNetworkSmDevices
114 description: Complete reference of the getNetworkSmDevices API.
115 link: https://developer.cisco.com/meraki/api-v1/#!get-network-sm-devices
116 notes:
117 - SDK Method used are
118 sm.Sm.get_network_sm_devices,
119 - Paths used are
120 get /networks/{networkId}/sm/devices,
121 """
122
123 EXAMPLES = r"""
124 - name: Get all networks _sm _devices
125 cisco.meraki.networks_sm_devices_info:
126 meraki_api_key: "{{ meraki_api_key }}"
127 meraki_base_url: "{{ meraki_base_url }}"
128 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
129 meraki_certificate_path: "{{ meraki_certificate_path }}"
130 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
131 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
132 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
133 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
134 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
135 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
136 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
137 meraki_output_log: "{{ meraki_output_log }}"
138 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
139 meraki_log_path: "{{ meraki_log_path }}"
140 meraki_print_console: "{{ meraki_print_console }}"
141 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
142 meraki_simulate: "{{ meraki_simulate }}"
143 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
144 meraki_caller: "{{ meraki_caller }}"
145 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
146 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
147 fields: []
148 wifiMacs: []
149 serials: []
150 ids: []
151 uuids: []
152 systemTypes: []
153 scope: []
154 perPage: 0
155 startingAfter: string
156 endingBefore: string
157 networkId: string
158 total_pages: -1
159 direction: next
160 register: result
161 """
162 RETURN = r"""
163 meraki_response:
164 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
165 returned: always
166 type: list
167 elements: dict
168 sample: >
169 [
170 {
171 "id": "string",
172 "name": "string",
173 "tags": [
174 "string"
175 ],
176 "ssid": "string",
177 "wifiMac": "string",
178 "osName": "string",
179 "systemModel": "string",
180 "uuid": "string",
181 "serialNumber": "string",
182 "serial": "string",
183 "ip": "string",
184 "notes": "string"
185 }
186 ]
187 """