Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_netflow.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_netflow
9 short_description: Resource module for networks _netflow
10 description:
11 - Manage operation update of the resource networks _netflow.
12 - Update the NetFlow traffic reporting settings for a network.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 collectorIp:
19 description: The IPv4 address of the NetFlow collector.
20 type: str
21 collectorPort:
22 description: The port that the NetFlow collector will be listening on.
23 type: int
24 etaDstPort:
25 description: The port that the Encrypted Traffic Analytics collector will be listening
26 on.
27 type: int
28 etaEnabled:
29 description: Boolean indicating whether Encrypted Traffic Analytics is enabled
30 (true) or disabled (false).
31 type: bool
32 networkId:
33 description: NetworkId path parameter. Network ID.
34 type: str
35 reportingEnabled:
36 description: Boolean indicating whether NetFlow traffic reporting is enabled (true)
37 or disabled (false).
38 type: bool
39 requirements:
40 - meraki >= 2.4.9
41 - python >= 3.5
42 seealso:
43 - name: Cisco Meraki documentation for networks updateNetworkNetflow
44 description: Complete reference of the updateNetworkNetflow API.
45 link: https://developer.cisco.com/meraki/api-v1/#!update-network-netflow
46 notes:
47 - SDK Method used are
48 networks.Networks.update_network_netflow,
49 - Paths used are
50 put /networks/{networkId}/netflow,
51 """
52
53 EXAMPLES = r"""
54 - name: Update all
55 cisco.meraki.networks_netflow:
56 meraki_api_key: "{{ meraki_api_key }}"
57 meraki_base_url: "{{ meraki_base_url }}"
58 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
59 meraki_certificate_path: "{{ meraki_certificate_path }}"
60 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
61 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
62 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
63 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
64 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
65 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
66 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
67 meraki_output_log: "{{ meraki_output_log }}"
68 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
69 meraki_log_path: "{{ meraki_log_path }}"
70 meraki_print_console: "{{ meraki_print_console }}"
71 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
72 meraki_simulate: "{{ meraki_simulate }}"
73 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
74 meraki_caller: "{{ meraki_caller }}"
75 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
76 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
77 state: present
78 collectorIp: string
79 collectorPort: 0
80 etaDstPort: 0
81 etaEnabled: true
82 networkId: string
83 reportingEnabled: true
84 """
85 RETURN = r"""
86 meraki_response:
87 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
88 returned: always
89 type: dict
90 sample: >
91 {
92 "reportingEnabled": true,
93 "collectorIp": "string",
94 "collectorPort": 0,
95 "etaEnabled": true,
96 "etaDstPort": 0
97 }
98 """