Debian Codegraph @

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

raw symbols SCIP
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: organizations_clients_search_info
9 short_description: Information module for organizations _clients _search
10 description:
11 - Information module for Organizations Clients Search Info.
12 - Get all organizations _clients _search.
13 - Return the client details in an organization.
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 organizationId:
24 description:
25 - Information module for Organizations Clients Search Info.
26 - OrganizationId path parameter. Organization ID.
27 type: str
28 perPage:
29 description:
30 - Information module for Organizations Clients Search Info.
31 - PerPage query parameter. The number of entries per page returned. Acceptable
32 range is 3 - 5. Default is 5.
33 type: int
34 startingAfter:
35 description:
36 - Information module for Organizations Clients Search Info.
37 - >
38 StartingAfter query parameter. A token used by the server to indicate the
39 start of the page. Often this is a timestamp or an ID but it is not limited
40 to those. This parameter should not be defined by client applications. The
41 link for the first, last, prev, or next page in the HTTP Link header should
42 define it.
43 type: str
44 endingBefore:
45 description:
46 - Information module for Organizations Clients Search Info.
47 - >
48 EndingBefore query parameter. A token used by the server to indicate the end
49 of the page. Often this is a timestamp or an ID but it is not limited to those.
50 This parameter should not be defined by client applications. The link for
51 the first, last, prev, or next page in the HTTP Link header should define
52 it.
53 type: str
54 mac:
55 description:
56 - Information module for Organizations Clients Search Info.
57 - Mac query parameter. The MAC address of the client. Required.
58 type: str
59 requirements:
60 - meraki >= 2.4.9
61 - python >= 3.5
62 seealso:
63 - name: Cisco Meraki documentation for organizations getOrganizationClientsSearch
64 description: Complete reference of the getOrganizationClientsSearch API.
65 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-clients-search
66 notes:
67 - SDK Method used are
68 organizations.Organizations.get_organization_clients_search,
69 - Paths used are
70 get /organizations/{organizationId}/clients/search,
71 """
72
73 EXAMPLES = r"""
74 - name: Get all organizations _clients _search
75 cisco.meraki.organizations_clients_search_info:
76 meraki_api_key: "{{ meraki_api_key }}"
77 meraki_base_url: "{{ meraki_base_url }}"
78 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
79 meraki_certificate_path: "{{ meraki_certificate_path }}"
80 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
81 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
82 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
83 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
84 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
85 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
86 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
87 meraki_output_log: "{{ meraki_output_log }}"
88 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
89 meraki_log_path: "{{ meraki_log_path }}"
90 meraki_print_console: "{{ meraki_print_console }}"
91 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
92 meraki_simulate: "{{ meraki_simulate }}"
93 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
94 meraki_caller: "{{ meraki_caller }}"
95 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
96 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
97 perPage: 0
98 startingAfter: string
99 endingBefore: string
100 mac: string
101 organizationId: string
102 total_pages: -1
103 direction: next
104 register: result
105 """
106 RETURN = r"""
107 meraki_response:
108 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
109 returned: always
110 type: dict
111 sample: >
112 {
113 "clientId": "string",
114 "mac": "string",
115 "manufacturer": "string",
116 "records": [
117 {
118 "network": {
119 "id": "string",
120 "organizationId": "string",
121 "name": "string",
122 "productTypes": [
123 "string"
124 ],
125 "timeZone": "string",
126 "tags": [
127 "string"
128 ],
129 "enrollmentString": "string",
130 "url": "string",
131 "notes": "string",
132 "isBoundToConfigTemplate": true
133 },
134 "ip": "string",
135 "ip6": "string",
136 "description": "string",
137 "firstSeen": 0,
138 "lastSeen": 0,
139 "os": "string",
140 "user": "string",
141 "vlan": "string",
142 "ssid": "string",
143 "switchport": "string",
144 "wirelessCapabilities": "string",
145 "smInstalled": true,
146 "recentDeviceMac": "string",
147 "clientVpnConnections": [
148 {
149 "remoteIp": "string",
150 "connectedAt": 0,
151 "disconnectedAt": 0
152 }
153 ],
154 "lldp": [
155 [
156 "string"
157 ]
158 ],
159 "cdp": [
160 [
161 "string"
162 ]
163 ],
164 "status": "string"
165 }
166 ]
167 }
168 """