Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_appliance_settings.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_settings
9 short_description: Resource module for networks _appliance _settings
10 description:
11 - Manage operation update of the resource networks _appliance _settings.
12 - Update the appliance 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 clientTrackingMethod:
19 description: Client tracking method of a network.
20 type: str
21 deploymentMode:
22 description: Deployment mode of a network.
23 type: str
24 dynamicDns:
25 description: Dynamic DNS settings for a network.
26 suboptions:
27 enabled:
28 description: Dynamic DNS enabled.
29 type: bool
30 prefix:
31 description: Dynamic DNS url prefix. DDNS must be enabled to update.
32 type: str
33 type: dict
34 networkId:
35 description: NetworkId path parameter. Network ID.
36 type: str
37 requirements:
38 - meraki >= 2.4.9
39 - python >= 3.5
40 seealso:
41 - name: Cisco Meraki documentation for appliance updateNetworkApplianceSettings
42 description: Complete reference of the updateNetworkApplianceSettings API.
43 link: https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-settings
44 notes:
45 - SDK Method used are
46 appliance.Appliance.update_network_appliance_settings,
47 - Paths used are
48 put /networks/{networkId}/appliance/settings,
49 """
50
51 EXAMPLES = r"""
52 - name: Update all
53 cisco.meraki.networks_appliance_settings:
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 clientTrackingMethod: MAC address
77 deploymentMode: routed
78 dynamicDns:
79 enabled: true
80 prefix: test
81 networkId: string
82 """
83 RETURN = r"""
84 meraki_response:
85 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
86 returned: always
87 type: dict
88 sample: >
89 {
90 "clientTrackingMethod": "string",
91 "deploymentMode": "string",
92 "dynamicDns": {
93 "enabled": true,
94 "prefix": "string",
95 "url": "string"
96 }
97 }
98 """