Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_policies_by_client_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: networks_policies_by_client_info
9 short_description: Information module for networks _policies _byclient
10 description:
11 - Information module for Networks Policies Byclient Info.
12 - Get all networks _policies _byclient.
13 - Get policies for all clients with policies.
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 Policies Byclient Info.
26 - NetworkId path parameter. Network ID.
27 type: str
28 perPage:
29 description:
30 - Information module for Networks Policies Byclient Info.
31 - PerPage query parameter. The number of entries per page returned. Acceptable
32 range is 3 - 1000. Default is 50.
33 type: int
34 startingAfter:
35 description:
36 - Information module for Networks Policies Byclient 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 Networks Policies Byclient 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 t0:
55 description:
56 - Information module for Networks Policies Byclient Info.
57 - T0 query parameter. The beginning of the timespan for the data. The maximum
58 lookback period is 31 days from today.
59 type: str
60 timespan:
61 description:
62 - Information module for Networks Policies Byclient Info.
63 - >
64 Timespan query parameter. The timespan for which the information will be fetched.
65 If specifying timespan, do not specify parameter t0. The value must be in
66 seconds and be less than or equal to 31 days. The default is 1 day.
67 type: float
68 requirements:
69 - meraki >= 2.4.9
70 - python >= 3.5
71 seealso:
72 - name: Cisco Meraki documentation for networks getNetworkPoliciesByClient
73 description: Complete reference of the getNetworkPoliciesByClient API.
74 link: https://developer.cisco.com/meraki/api-v1/#!get-network-policies-by-client
75 notes:
76 - SDK Method used are
77 networks.Networks.get_network_policies_by_client,
78 - Paths used are
79 get /networks/{networkId}/policies/byClient,
80 """
81
82 EXAMPLES = r"""
83 - name: Get all networks _policies _byclient
84 cisco.meraki.networks_policies_by_client_info:
85 meraki_api_key: "{{ meraki_api_key }}"
86 meraki_base_url: "{{ meraki_base_url }}"
87 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
88 meraki_certificate_path: "{{ meraki_certificate_path }}"
89 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
90 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
91 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
92 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
93 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
94 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
95 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
96 meraki_output_log: "{{ meraki_output_log }}"
97 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
98 meraki_log_path: "{{ meraki_log_path }}"
99 meraki_print_console: "{{ meraki_print_console }}"
100 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
101 meraki_simulate: "{{ meraki_simulate }}"
102 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
103 meraki_caller: "{{ meraki_caller }}"
104 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
105 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
106 perPage: 0
107 startingAfter: string
108 endingBefore: string
109 t0: string
110 timespan: 0
111 networkId: string
112 total_pages: -1
113 direction: next
114 register: result
115 """
116 RETURN = r"""
117 meraki_response:
118 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
119 returned: always
120 type: list
121 elements: dict
122 sample: >
123 [
124 {
125 "name": "string",
126 "clientId": "string",
127 "assigned": [
128 {
129 "name": "string",
130 "type": "string",
131 "groupPolicyId": "string",
132 "ssid": [
133 {
134 "ssidNumber": 0
135 }
136 ]
137 }
138 ]
139 }
140 ]
141 """