Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_sm_users_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_users_info
9 short_description: Information module for networks _sm _users
10 description:
11 - Information module for Networks Sm Users Info.
12 - Get all networks _sm _users.
13 - List the owners 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 author: Francisco Munoz (@fmunoz)
18 options:
19 headers:
20 description: Additional headers.
21 type: dict
22 networkId:
23 description:
24 - Information module for Networks Sm Users Info.
25 - NetworkId path parameter. Network ID.
26 type: str
27 ids:
28 description:
29 - Information module for Networks Sm Users Info.
30 - Ids query parameter. Filter users by id(s).
31 elements: str
32 type: list
33 usernames:
34 description:
35 - Information module for Networks Sm Users Info.
36 - Usernames query parameter. Filter users by username(s).
37 elements: str
38 type: list
39 emails:
40 description:
41 - Information module for Networks Sm Users Info.
42 - Emails query parameter. Filter users by email(s).
43 elements: str
44 type: list
45 scope:
46 description:
47 - Information module for Networks Sm Users Info.
48 - >
49 Scope query parameter. Specifiy a scope (one of all, none, withAny, withAll,
50 withoutAny, withoutAll) and a set of tags.
51 elements: str
52 type: list
53 requirements:
54 - meraki >= 2.4.9
55 - python >= 3.5
56 seealso:
57 - name: Cisco Meraki documentation for sm getNetworkSmUsers
58 description: Complete reference of the getNetworkSmUsers API.
59 link: https://developer.cisco.com/meraki/api-v1/#!get-network-sm-users
60 notes:
61 - SDK Method used are
62 sm.Sm.get_network_sm_users,
63 - Paths used are
64 get /networks/{networkId}/sm/users,
65 """
66
67 EXAMPLES = r"""
68 - name: Get all networks _sm _users
69 cisco.meraki.networks_sm_users_info:
70 meraki_api_key: "{{ meraki_api_key }}"
71 meraki_base_url: "{{ meraki_base_url }}"
72 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
73 meraki_certificate_path: "{{ meraki_certificate_path }}"
74 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
75 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
76 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
77 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
78 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
79 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
80 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
81 meraki_output_log: "{{ meraki_output_log }}"
82 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
83 meraki_log_path: "{{ meraki_log_path }}"
84 meraki_print_console: "{{ meraki_print_console }}"
85 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
86 meraki_simulate: "{{ meraki_simulate }}"
87 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
88 meraki_caller: "{{ meraki_caller }}"
89 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
90 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
91 ids: []
92 usernames: []
93 emails: []
94 scope: []
95 networkId: string
96 register: result
97 """
98 RETURN = r"""
99 meraki_response:
100 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
101 returned: always
102 type: list
103 elements: dict
104 sample: >
105 [
106 {
107 "id": "string",
108 "email": "string",
109 "fullName": "string",
110 "username": "string",
111 "hasPassword": true,
112 "tags": "string",
113 "adGroups": [
114 "string"
115 ],
116 "azureAdGroups": [
117 "string"
118 ],
119 "samlGroups": [
120 "string"
121 ],
122 "asmGroups": [
123 "string"
124 ],
125 "isExternal": true,
126 "displayName": "string",
127 "hasIdentityCertificate": true,
128 "userThumbnail": "string"
129 }
130 ]
131 """