Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_clients_policy_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_clients_policy_info
9 short_description: Information module for networks _clients _policy
10 description:
11 - Information module for Networks Clients Policy Info.
12 - Get all networks _clients _policy.
13 - >
14 Return the policy assigned to a client on the network. Clients can be identified
15 by a client key or either the MAC or IP depending on whether the network uses
16 Track-by-IP.
17 version_added: '1.0.0'
18 extends_documentation_fragment:
19 - cisco.meraki.module_info
20 author: Francisco Munoz (@fmunoz)
21 options:
22 headers:
23 description: Additional headers.
24 type: dict
25 networkId:
26 description:
27 - Information module for Networks Clients Policy Info.
28 - NetworkId path parameter. Network ID.
29 type: str
30 clientId:
31 description:
32 - Information module for Networks Clients Policy Info.
33 - ClientId path parameter. Client ID.
34 type: str
35 requirements:
36 - meraki >= 2.4.9
37 - python >= 3.5
38 seealso:
39 - name: Cisco Meraki documentation for networks getNetworkClientPolicy
40 description: Complete reference of the getNetworkClientPolicy API.
41 link: https://developer.cisco.com/meraki/api-v1/#!get-network-client-policy
42 notes:
43 - SDK Method used are
44 networks.Networks.get_network_client_policy,
45 - Paths used are
46 get /networks/{networkId}/clients/{clientId}/policy,
47 """
48
49 EXAMPLES = r"""
50 - name: Get all networks _clients _policy
51 cisco.meraki.networks_clients_policy_info:
52 meraki_api_key: "{{ meraki_api_key }}"
53 meraki_base_url: "{{ meraki_base_url }}"
54 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
55 meraki_certificate_path: "{{ meraki_certificate_path }}"
56 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
57 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
58 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
59 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
60 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
61 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
62 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
63 meraki_output_log: "{{ meraki_output_log }}"
64 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
65 meraki_log_path: "{{ meraki_log_path }}"
66 meraki_print_console: "{{ meraki_print_console }}"
67 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
68 meraki_simulate: "{{ meraki_simulate }}"
69 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
70 meraki_caller: "{{ meraki_caller }}"
71 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
72 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
73 networkId: string
74 clientId: string
75 register: result
76 """
77 RETURN = r"""
78 meraki_response:
79 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
80 returned: always
81 type: dict
82 sample: >
83 {
84 "mac": "string",
85 "devicePolicy": "string",
86 "groupPolicyId": "string",
87 "policiesBySsid": [
88 {
89 "ssidNumber": 0,
90 "devicePolicy": "string",
91 "groupPolicyId": "string"
92 }
93 ]
94 }
95 """