Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_appliance_firewall_firewalled_services.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_firewall_firewalled_services
9 short_description: Resource module for networks _appliance _firewall _firewalledservices
10 description:
11 - Manage operation update of the resource networks _appliance _firewall _firewalledservices.
12 - Updates the accessibility settings for the given service 'ICMP', 'web', or 'SNMP'
13 .
14 version_added: '1.0.0'
15 extends_documentation_fragment:
16 - cisco.meraki.module
17 author: Francisco Munoz (@fmunoz)
18 options:
19 access:
20 description: A string indicating the rule for which IPs are allowed to use the
21 specified service. Acceptable values are "blocked" (no remote IPs can access
22 the service), "restricted" (only allowed IPs can access the service), and "unrestriced"
23 (any remote IP can access the service). This field is required.
24 type: str
25 allowedIps:
26 description: An array of allowed CIDRs that can access the service. This field
27 is required if "access" is set to "restricted". Otherwise this field is ignored.
28 elements: str
29 type: list
30 networkId:
31 description: NetworkId path parameter. Network ID.
32 type: str
33 service:
34 description: Service path parameter.
35 type: str
36 requirements:
37 - meraki >= 2.4.9
38 - python >= 3.5
39 seealso:
40 - name: Cisco Meraki documentation for appliance updateNetworkApplianceFirewallFirewalledService
41 description: Complete reference of the updateNetworkApplianceFirewallFirewalledService
42 API.
43 link: https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-firewall-firewalled-service
44 notes:
45 - SDK Method used are
46 appliance.Appliance.update_network_appliance_firewall_firewalled_service,
47 - Paths used are
48 put /networks/{networkId}/appliance/firewall/firewalledServices/{service},
49 """
50
51 EXAMPLES = r"""
52 - name: Update by id
53 cisco.meraki.networks_appliance_firewall_firewalled_services:
54 meraki_api_key: "{{ meraki_api_key }}"
55 meraki_base_url: "{{ meraki_base_url }}"
56 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
57 meraki_certificate_path: "{{ meraki_certificate_path }}"
58 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
59 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
60 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
61 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
62 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
63 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
64 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
65 meraki_output_log: "{{ meraki_output_log }}"
66 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
67 meraki_log_path: "{{ meraki_log_path }}"
68 meraki_print_console: "{{ meraki_print_console }}"
69 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
70 meraki_simulate: "{{ meraki_simulate }}"
71 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
72 meraki_caller: "{{ meraki_caller }}"
73 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
74 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
75 state: present
76 access: restricted
77 allowedIps:
78 - 123.123.123.1
79 networkId: string
80 service: string
81 """
82 RETURN = r"""
83 meraki_response:
84 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
85 returned: always
86 type: dict
87 sample: >
88 {
89 "service": "string",
90 "access": "string",
91 "allowedIps": [
92 "string"
93 ]
94 }
95 """