Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_firmware_upgrades_rollbacks.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_firmware_upgrades_rollbacks
9 short_description: Resource module for networks _firmwareupgrades _rollbacks
10 description:
11 - Manage operation create of the resource networks _firmwareupgrades _rollbacks.
12 - Rollback a Firmware Upgrade 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 networkId:
19 description: NetworkId path parameter. Network ID.
20 type: str
21 product:
22 description: Product type to rollback (if the network is a combined network).
23 type: str
24 reasons:
25 description: Reasons for the rollback.
26 elements: dict
27 suboptions:
28 category:
29 description: Reason for the rollback.
30 type: str
31 comment:
32 description: Additional comment about the rollback.
33 type: str
34 type: list
35 time:
36 description: Scheduled time for the rollback.
37 type: str
38 toVersion:
39 description: Version to downgrade to (if the network has firmware flexibility).
40 suboptions:
41 id:
42 description: The version ID.
43 type: str
44 type: dict
45 requirements:
46 - meraki >= 2.4.9
47 - python >= 3.5
48 seealso:
49 - name: Cisco Meraki documentation for networks createNetworkFirmwareUpgradesRollback
50 description: Complete reference of the createNetworkFirmwareUpgradesRollback API.
51 link: https://developer.cisco.com/meraki/api-v1/#!create-network-firmware-upgrades-rollback
52 notes:
53 - SDK Method used are
54 networks.Networks.create_network_firmware_upgrades_rollback,
55 - Paths used are
56 post /networks/{networkId}/firmwareUpgrades/rollbacks,
57 """
58
59 EXAMPLES = r"""
60 - name: Create
61 cisco.meraki.networks_firmware_upgrades_rollbacks:
62 meraki_api_key: "{{ meraki_api_key }}"
63 meraki_base_url: "{{ meraki_base_url }}"
64 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
65 meraki_certificate_path: "{{ meraki_certificate_path }}"
66 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
67 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
68 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
69 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
70 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
71 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
72 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
73 meraki_output_log: "{{ meraki_output_log }}"
74 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
75 meraki_log_path: "{{ meraki_log_path }}"
76 meraki_print_console: "{{ meraki_print_console }}"
77 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
78 meraki_simulate: "{{ meraki_simulate }}"
79 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
80 meraki_caller: "{{ meraki_caller }}"
81 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
82 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
83 networkId: string
84 product: switch
85 reasons:
86 - category: performance
87 comment: Network was slower with the upgrade
88 time: '2020-10-21T02:00:00Z'
89 toVersion:
90 id: '7857'
91 """
92 RETURN = r"""
93 meraki_response:
94 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
95 returned: always
96 type: dict
97 sample: >
98 {
99 "product": "string",
100 "status": "string",
101 "upgradeBatchId": "string",
102 "time": "string",
103 "toVersion": {
104 "id": "string",
105 "firmware": "string",
106 "shortName": "string",
107 "releaseType": "string",
108 "releaseDate": "string"
109 },
110 "reasons": [
111 {
112 "category": "string",
113 "comment": "string"
114 }
115 ]
116 }
117 """