Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_devices_availabilities_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_devices_availabilities_info
9 short_description: Information module for organizations _devices _availabilities
10 description:
11 - Information module for Organizations Devices Availabilities Info.
12 - Get all organizations _devices _availabilities.
13 - >
14 List the availability information for devices in an organization. The data returned
15 by this endpoint is updated every 5 minutes.
16 version_added: '1.0.0'
17 extends_documentation_fragment:
18 - cisco.meraki.module_info
19 - cisco.meraki.module_info_pagination
20 author: Francisco Munoz (@fmunoz)
21 options:
22 headers:
23 description: Additional headers.
24 type: dict
25 organizationId:
26 description:
27 - Information module for Organizations Devices Availabilities Info.
28 - OrganizationId path parameter. Organization ID.
29 type: str
30 perPage:
31 description:
32 - Information module for Organizations Devices Availabilities Info.
33 - PerPage query parameter. The number of entries per page returned. Acceptable
34 range is 3 - 1000. Default is 1000.
35 type: int
36 startingAfter:
37 description:
38 - Information module for Organizations Devices Availabilities Info.
39 - >
40 StartingAfter query parameter. A token used by the server to indicate the
41 start of the page. Often this is a timestamp or an ID but it is not limited
42 to those. This parameter should not be defined by client applications. The
43 link for the first, last, prev, or next page in the HTTP Link header should
44 define it.
45 type: str
46 endingBefore:
47 description:
48 - Information module for Organizations Devices Availabilities Info.
49 - >
50 EndingBefore query parameter. A token used by the server to indicate the end
51 of the page. Often this is a timestamp or an ID but it is not limited to those.
52 This parameter should not be defined by client applications. The link for
53 the first, last, prev, or next page in the HTTP Link header should define
54 it.
55 type: str
56 networkIds:
57 description:
58 - Information module for Organizations Devices Availabilities Info.
59 - >
60 NetworkIds query parameter. Optional parameter to filter device availabilities
61 by network ID. This filter uses multiple exact matches.
62 elements: str
63 type: list
64 productTypes:
65 description:
66 - Information module for Organizations Devices Availabilities Info.
67 - >
68 ProductTypes query parameter. Optional parameter to filter device availabilities
69 by device product types. This filter uses multiple exact matches. Valid types
70 are wireless, appliance, switch, camera, cellularGateway, sensor, wirelessController,
71 and campusGateway.
72 elements: str
73 type: list
74 serials:
75 description:
76 - Information module for Organizations Devices Availabilities Info.
77 - >
78 Serials query parameter. Optional parameter to filter device availabilities
79 by device serial numbers. This filter uses multiple exact matches.
80 elements: str
81 type: list
82 tags:
83 description:
84 - Information module for Organizations Devices Availabilities Info.
85 - >
86 Tags query parameter. An optional parameter to filter devices by tags. The
87 filtering is case-sensitive. If tags are included, 'tagsFilterType' should
88 also be included (see below). This filter uses multiple exact matches.
89 elements: str
90 type: list
91 tagsFilterType:
92 description:
93 - Information module for Organizations Devices Availabilities Info.
94 - >
95 TagsFilterType query parameter. An optional parameter of value 'withAnyTags'
96 or 'withAllTags' to indicate whether to return devices which contain ANY or
97 ALL of the included tags. If no type is included, 'withAnyTags' will be selected.
98 type: str
99 statuses:
100 description:
101 - Information module for Organizations Devices Availabilities Info.
102 - >
103 Statuses query parameter. Optional parameter to filter device availabilities
104 by device status. This filter uses multiple exact matches.
105 elements: str
106 type: list
107 requirements:
108 - meraki >= 2.4.9
109 - python >= 3.5
110 seealso:
111 - name: Cisco Meraki documentation for organizations getOrganizationDevicesAvailabilities
112 description: Complete reference of the getOrganizationDevicesAvailabilities API.
113 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-availabilities
114 notes:
115 - SDK Method used are
116 organizations.Organizations.get_organization_devices_availabilities,
117 - Paths used are
118 get /organizations/{organizationId}/devices/availabilities,
119 """
120
121 EXAMPLES = r"""
122 - name: Get all organizations _devices _availabilities
123 cisco.meraki.organizations_devices_availabilities_info:
124 meraki_api_key: "{{ meraki_api_key }}"
125 meraki_base_url: "{{ meraki_base_url }}"
126 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
127 meraki_certificate_path: "{{ meraki_certificate_path }}"
128 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
129 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
130 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
131 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
132 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
133 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
134 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
135 meraki_output_log: "{{ meraki_output_log }}"
136 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
137 meraki_log_path: "{{ meraki_log_path }}"
138 meraki_print_console: "{{ meraki_print_console }}"
139 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
140 meraki_simulate: "{{ meraki_simulate }}"
141 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
142 meraki_caller: "{{ meraki_caller }}"
143 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
144 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
145 perPage: 0
146 startingAfter: string
147 endingBefore: string
148 networkIds: []
149 productTypes: []
150 serials: []
151 tags: []
152 tagsFilterType: string
153 statuses: []
154 organizationId: string
155 total_pages: -1
156 direction: next
157 register: result
158 """
159 RETURN = r"""
160 meraki_response:
161 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
162 returned: always
163 type: list
164 elements: dict
165 sample: >
166 [
167 {
168 "mac": "string",
169 "name": "string",
170 "network": {
171 "id": "string"
172 },
173 "productType": "string",
174 "serial": "string",
175 "status": "string",
176 "tags": [
177 "string"
178 ]
179 }
180 ]
181 """