Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_appliance_security_intrusion.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_appliance_security_intrusion
9 short_description: Resource module for networks _appliance _security _intrusion
10 description:
11 - Manage operation update of the resource networks _appliance _security _intrusion.
12 - Set the supported intrusion settings for an MX network.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 idsRulesets:
19 description: Set the detection ruleset 'connectivity'/'balanced'/'security' (optional
20 - omitting will leave current config unchanged). Default value is 'balanced'
21 if none currently saved.
22 type: str
23 mode:
24 description: Set mode to 'disabled'/'detection'/'prevention' (optional - omitting
25 will leave current config unchanged).
26 type: str
27 networkId:
28 description: NetworkId path parameter. Network ID.
29 type: str
30 protectedNetworks:
31 description: Set the included/excluded networks from the intrusion engine (optional
32 - omitting will leave current config unchanged). This is available only in 'passthrough'
33 mode.
34 suboptions:
35 excludedCidr:
36 description: List of IP addresses or subnets being excluded from protection
37 (required if 'useDefault' is false).
38 elements: str
39 type: list
40 includedCidr:
41 description: List of IP addresses or subnets being protected (required if
42 'useDefault' is false).
43 elements: str
44 type: list
45 useDefault:
46 description: True/false whether to use special IPv4 addresses https //tools.ietf.org/html/rfc5735
47 (required). Default value is true if none currently saved.
48 type: bool
49 type: dict
50 requirements:
51 - meraki >= 2.4.9
52 - python >= 3.5
53 seealso:
54 - name: Cisco Meraki documentation for appliance updateNetworkApplianceSecurityIntrusion
55 description: Complete reference of the updateNetworkApplianceSecurityIntrusion
56 API.
57 link: https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-security-intrusion
58 notes:
59 - SDK Method used are
60 appliance.Appliance.update_network_appliance_security_intrusion,
61 - Paths used are
62 put /networks/{networkId}/appliance/security/intrusion,
63 """
64
65 EXAMPLES = r"""
66 - name: Update all
67 cisco.meraki.networks_appliance_security_intrusion:
68 meraki_api_key: "{{ meraki_api_key }}"
69 meraki_base_url: "{{ meraki_base_url }}"
70 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
71 meraki_certificate_path: "{{ meraki_certificate_path }}"
72 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
73 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
74 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
75 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
76 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
77 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
78 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
79 meraki_output_log: "{{ meraki_output_log }}"
80 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
81 meraki_log_path: "{{ meraki_log_path }}"
82 meraki_print_console: "{{ meraki_print_console }}"
83 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
84 meraki_simulate: "{{ meraki_simulate }}"
85 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
86 meraki_caller: "{{ meraki_caller }}"
87 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
88 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
89 state: present
90 idsRulesets: balanced
91 mode: prevention
92 networkId: string
93 protectedNetworks:
94 excludedCidr:
95 - 10.0.0.0/8
96 - 127.0.0.0/8
97 includedCidr:
98 - 10.0.0.0/8
99 - 127.0.0.0/8
100 - 169.254.0.0/16
101 - 172.16.0.0/12
102 useDefault: false
103 """
104 RETURN = r"""
105 meraki_response:
106 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
107 returned: always
108 type: dict
109 sample: >
110 {
111 "mode": "string",
112 "idsRulesets": "string",
113 "protectedNetworks": {
114 "useDefault": true,
115 "includedCidr": [
116 "string"
117 ],
118 "excludedCidr": [
119 "string"
120 ]
121 }
122 }
123 """