Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_appliance_warm_spare.py

raw symbols SCIP
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_warm_spare
9 short_description: Resource module for networks _appliance _warmspare
10 description:
11 - Manage operation update of the resource networks _appliance _warmspare.
12 - Update MX warm spare settings.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 enabled:
19 description: Enable warm spare.
20 type: bool
21 networkId:
22 description: NetworkId path parameter. Network ID.
23 type: str
24 spareSerial:
25 description: Serial number of the warm spare appliance.
26 type: str
27 uplinkMode:
28 description: Uplink mode, either virtual or public.
29 type: str
30 virtualIp1:
31 description: The WAN 1 shared IP.
32 type: str
33 virtualIp2:
34 description: The WAN 2 shared IP.
35 type: str
36 requirements:
37 - meraki >= 2.4.9
38 - python >= 3.5
39 seealso:
40 - name: Cisco Meraki documentation for appliance updateNetworkApplianceWarmSpare
41 description: Complete reference of the updateNetworkApplianceWarmSpare API.
42 link: https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-warm-spare
43 notes:
44 - SDK Method used are
45 appliance.Appliance.update_network_appliance_warm_spare,
46 - Paths used are
47 put /networks/{networkId}/appliance/warmSpare,
48 """
49
50 EXAMPLES = r"""
51 - name: Update all
52 cisco.meraki.networks_appliance_warm_spare:
53 meraki_api_key: "{{ meraki_api_key }}"
54 meraki_base_url: "{{ meraki_base_url }}"
55 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
56 meraki_certificate_path: "{{ meraki_certificate_path }}"
57 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
58 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
59 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
60 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
61 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
62 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
63 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
64 meraki_output_log: "{{ meraki_output_log }}"
65 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
66 meraki_log_path: "{{ meraki_log_path }}"
67 meraki_print_console: "{{ meraki_print_console }}"
68 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
69 meraki_simulate: "{{ meraki_simulate }}"
70 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
71 meraki_caller: "{{ meraki_caller }}"
72 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
73 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
74 state: present
75 enabled: true
76 networkId: string
77 spareSerial: Q234-ABCD-5678
78 uplinkMode: virtual
79 virtualIp1: 1.2.3.4
80 virtualIp2: 1.2.3.4
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 "enabled": true,
90 "primarySerial": "string",
91 "spareSerial": "string",
92 "uplinkMode": "string",
93 "wan1": {
94 "ip": "string",
95 "subnet": "string"
96 },
97 "wan2": {
98 "ip": "string",
99 "subnet": "string"
100 }
101 }
102 """