Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_devices_provisioning_statuses_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_provisioning_statuses_info
9 short_description: Information module for organizations _devices _provisioning _statuses
10 description:
11 - Information module for Organizations Devices Provisioning Statuses Info.
12 - Get all organizations _devices _provisioning _statuses.
13 - List the provisioning statuses information for devices in 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 Devices Provisioning Statuses Info.
26 - OrganizationId path parameter. Organization ID.
27 type: str
28 perPage:
29 description:
30 - Information module for Organizations Devices Provisioning Statuses 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 Devices Provisioning Statuses 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 Devices Provisioning Statuses 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 networkIds:
55 description:
56 - Information module for Organizations Devices Provisioning Statuses Info.
57 - >
58 NetworkIds query parameter. Optional parameter to filter device by network
59 ID. This filter uses multiple exact matches.
60 elements: str
61 type: list
62 productTypes:
63 description:
64 - Information module for Organizations Devices Provisioning Statuses Info.
65 - >
66 ProductTypes query parameter. Optional parameter to filter device by device
67 product types. This filter uses multiple exact matches.
68 elements: str
69 type: list
70 serials:
71 description:
72 - Information module for Organizations Devices Provisioning Statuses Info.
73 - >
74 Serials query parameter. Optional parameter to filter device by device serial
75 numbers. This filter uses multiple exact matches.
76 elements: str
77 type: list
78 status:
79 description:
80 - Information module for Organizations Devices Provisioning Statuses Info.
81 - >
82 Status query parameter. An optional parameter to filter devices by the provisioning
83 status. Accepted statuses unprovisioned, incomplete, complete.
84 type: str
85 tags:
86 description:
87 - Information module for Organizations Devices Provisioning Statuses Info.
88 - >
89 Tags query parameter. An optional parameter to filter devices by tags. The
90 filtering is case-sensitive. If tags are included, 'tagsFilterType' should
91 also be included (see below). This filter uses multiple exact matches.
92 elements: str
93 type: list
94 tagsFilterType:
95 description:
96 - Information module for Organizations Devices Provisioning Statuses Info.
97 - >
98 TagsFilterType query parameter. An optional parameter of value 'withAnyTags'
99 or 'withAllTags' to indicate whether to return devices which contain ANY or
100 ALL of the included tags. If no type is included, 'withAnyTags' will be selected.
101 type: str
102 requirements:
103 - meraki >= 2.4.9
104 - python >= 3.5
105 seealso:
106 - name: Cisco Meraki documentation for organizations getOrganizationDevicesProvisioningStatuses
107 description: Complete reference of the getOrganizationDevicesProvisioningStatuses
108 API.
109 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-provisioning-statuses
110 notes:
111 - SDK Method used are
112 organizations.Organizations.get_organization_devices_provisioning_statuses,
113 - Paths used are
114 get /organizations/{organizationId}/devices/provisioning/statuses,
115 """
116
117 EXAMPLES = r"""
118 - name: Get all organizations _devices _provisioning _statuses
119 cisco.meraki.organizations_devices_provisioning_statuses_info:
120 meraki_api_key: "{{ meraki_api_key }}"
121 meraki_base_url: "{{ meraki_base_url }}"
122 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
123 meraki_certificate_path: "{{ meraki_certificate_path }}"
124 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
125 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
126 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
127 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
128 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
129 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
130 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
131 meraki_output_log: "{{ meraki_output_log }}"
132 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
133 meraki_log_path: "{{ meraki_log_path }}"
134 meraki_print_console: "{{ meraki_print_console }}"
135 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
136 meraki_simulate: "{{ meraki_simulate }}"
137 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
138 meraki_caller: "{{ meraki_caller }}"
139 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
140 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
141 perPage: 0
142 startingAfter: string
143 endingBefore: string
144 networkIds: []
145 productTypes: []
146 serials: []
147 status: string
148 tags: []
149 tagsFilterType: string
150 organizationId: string
151 total_pages: -1
152 direction: next
153 register: result
154 """
155 RETURN = r"""
156 meraki_response:
157 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
158 returned: always
159 type: list
160 elements: dict
161 sample: >
162 [
163 {
164 "mac": "string",
165 "name": "string",
166 "network": {
167 "id": "string"
168 },
169 "productType": "string",
170 "serial": "string",
171 "status": "string",
172 "tags": [
173 "string"
174 ]
175 }
176 ]
177 """