Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_firmware_upgrades_info.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: organizations_firmware_upgrades_info
9 short_description: Information module for organizations _firmware _upgrades
10 description:
11 - Information module for Organizations Firmware Upgrades Info.
12 - Get all organizations _firmware _upgrades.
13 - Get firmware upgrade information for an organization.
14 version_added: '1.0.0'
15 extends_documentation_fragment:
16 - cisco.meraki.module_info
17 - cisco.meraki.module_info_pagination
18 author: Francisco Munoz (@fmunoz)
19 options:
20 headers:
21 description: Additional headers.
22 type: dict
23 organizationId:
24 description:
25 - Information module for Organizations Firmware Upgrades Info.
26 - OrganizationId path parameter. Organization ID.
27 type: str
28 perPage:
29 description:
30 - Information module for Organizations Firmware Upgrades Info.
31 - PerPage query parameter. The number of entries per page returned. Acceptable
32 range is 3 - 1000. Default is 1000.
33 type: int
34 startingAfter:
35 description:
36 - Information module for Organizations Firmware Upgrades Info.
37 - >
38 StartingAfter query parameter. A token used by the server to indicate the
39 start of the page. Often this is a timestamp or an ID but it is not limited
40 to those. This parameter should not be defined by client applications. The
41 link for the first, last, prev, or next page in the HTTP Link header should
42 define it.
43 type: str
44 endingBefore:
45 description:
46 - Information module for Organizations Firmware Upgrades Info.
47 - >
48 EndingBefore query parameter. A token used by the server to indicate the end
49 of the page. Often this is a timestamp or an ID but it is not limited to those.
50 This parameter should not be defined by client applications. The link for
51 the first, last, prev, or next page in the HTTP Link header should define
52 it.
53 type: str
54 status:
55 description:
56 - Information module for Organizations Firmware Upgrades Info.
57 - Status query parameter. Optional parameter to filter the upgrade by status.
58 elements: str
59 type: list
60 productTypes:
61 description:
62 - Information module for Organizations Firmware Upgrades Info.
63 - ProductTypes query parameter. Optional parameter to filter the upgrade by
64 product type.
65 elements: str
66 type: list
67 requirements:
68 - meraki >= 2.4.9
69 - python >= 3.5
70 seealso:
71 - name: Cisco Meraki documentation for organizations getOrganizationFirmwareUpgrades
72 description: Complete reference of the getOrganizationFirmwareUpgrades API.
73 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-firmware-upgrades
74 notes:
75 - SDK Method used are
76 organizations.Organizations.get_organization_firmware_upgrades,
77 - Paths used are
78 get /organizations/{organizationId}/firmware/upgrades,
79 """
80
81 EXAMPLES = r"""
82 - name: Get all organizations _firmware _upgrades
83 cisco.meraki.organizations_firmware_upgrades_info:
84 meraki_api_key: "{{ meraki_api_key }}"
85 meraki_base_url: "{{ meraki_base_url }}"
86 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
87 meraki_certificate_path: "{{ meraki_certificate_path }}"
88 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
89 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
90 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
91 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
92 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
93 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
94 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
95 meraki_output_log: "{{ meraki_output_log }}"
96 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
97 meraki_log_path: "{{ meraki_log_path }}"
98 meraki_print_console: "{{ meraki_print_console }}"
99 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
100 meraki_simulate: "{{ meraki_simulate }}"
101 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
102 meraki_caller: "{{ meraki_caller }}"
103 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
104 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
105 perPage: 0
106 startingAfter: string
107 endingBefore: string
108 status: []
109 productTypes: []
110 organizationId: string
111 total_pages: -1
112 direction: next
113 register: result
114 """
115 RETURN = r"""
116 meraki_response:
117 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
118 returned: always
119 type: list
120 elements: dict
121 sample: >
122 [
123 {
124 "upgradeId": "string",
125 "upgradeBatchId": "string",
126 "network": {
127 "id": "string",
128 "name": "string"
129 },
130 "status": "string",
131 "time": "string",
132 "completedAt": "string",
133 "productTypes": "string",
134 "toVersion": {
135 "id": "string",
136 "shortName": "string",
137 "firmware": "string",
138 "releaseType": "string",
139 "releaseDate": "string"
140 },
141 "fromVersion": {
142 "id": "string",
143 "shortName": "string",
144 "firmware": "string",
145 "releaseType": "string",
146 "releaseDate": "string"
147 }
148 }
149 ]
150 """