| 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_wireless_zigbee_devices_info |
| 9 |
short_description: Information module for organizations _wireless _zigbee _devices |
| 10 |
description: |
| 11 |
- Information module for Organizations Wireless Zigbee Devices Info. |
| 12 |
- Get all organizations _wireless _zigbee _devices. |
| 13 |
- List the Zigbee wireless devices for an organization or the supplied networks. |
| 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 Wireless Zigbee Devices Info. |
| 26 |
- OrganizationId path parameter. Organization ID. |
| 27 |
type: str |
| 28 |
perPage: |
| 29 |
description: |
| 30 |
- Information module for Organizations Wireless Zigbee Devices Info. |
| 31 |
- PerPage query parameter. The number of entries per page returned. Acceptable |
| 32 |
range is 3 - 1000. Default is 10. |
| 33 |
type: int |
| 34 |
startingAfter: |
| 35 |
description: |
| 36 |
- Information module for Organizations Wireless Zigbee Devices 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 Wireless Zigbee Devices 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 Wireless Zigbee Devices Info. |
| 57 |
- > |
| 58 |
NetworkIds query parameter. Parameter of networks you want the zigbee devices |
| 59 |
for. E.g. NetworkIds=N_12345678&networkIds=N_3456. |
| 60 |
elements: str |
| 61 |
type: list |
| 62 |
isEnrolled: |
| 63 |
description: |
| 64 |
- Information module for Organizations Wireless Zigbee Devices Info. |
| 65 |
- IsEnrolled query parameter. Filter devices based on if they are enrolled or |
| 66 |
not. |
| 67 |
type: bool |
| 68 |
search: |
| 69 |
description: |
| 70 |
- Information module for Organizations Wireless Zigbee Devices Info. |
| 71 |
- Search query parameter. Filter devices by their name, tag or serial. |
| 72 |
type: str |
| 73 |
requirements: |
| 74 |
- meraki >= 2.4.9 |
| 75 |
- python >= 3.5 |
| 76 |
seealso: |
| 77 |
- name: Cisco Meraki documentation for wireless getOrganizationWirelessZigbeeDevices |
| 78 |
description: Complete reference of the getOrganizationWirelessZigbeeDevices API. |
| 79 |
link: https://developer.cisco.com/meraki/api-v1/#!get-organization-wireless-zigbee-devices |
| 80 |
notes: |
| 81 |
- SDK Method used are |
| 82 |
wireless.Wireless.get_organization_wireless_zigbee_devices, |
| 83 |
- Paths used are |
| 84 |
get /organizations/{organizationId}/wireless/zigbee/devices, |
| 85 |
""" |
| 86 |
|
| 87 |
EXAMPLES = r""" |
| 88 |
- name: Get all organizations _wireless _zigbee _devices |
| 89 |
cisco.meraki.organizations_wireless_zigbee_devices_info: |
| 90 |
meraki_api_key: "{{ meraki_api_key }}" |
| 91 |
meraki_base_url: "{{ meraki_base_url }}" |
| 92 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 93 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 94 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 95 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 96 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 97 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 98 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 99 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 100 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 101 |
meraki_output_log: "{{ meraki_output_log }}" |
| 102 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 103 |
meraki_log_path: "{{ meraki_log_path }}" |
| 104 |
meraki_print_console: "{{ meraki_print_console }}" |
| 105 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 106 |
meraki_simulate: "{{ meraki_simulate }}" |
| 107 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 108 |
meraki_caller: "{{ meraki_caller }}" |
| 109 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 110 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 111 |
perPage: 0 |
| 112 |
startingAfter: string |
| 113 |
endingBefore: string |
| 114 |
networkIds: [] |
| 115 |
isEnrolled: true |
| 116 |
search: string |
| 117 |
organizationId: string |
| 118 |
total_pages: -1 |
| 119 |
direction: next |
| 120 |
register: result |
| 121 |
""" |
| 122 |
RETURN = r""" |
| 123 |
meraki_response: |
| 124 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 125 |
returned: always |
| 126 |
type: list |
| 127 |
elements: dict |
| 128 |
sample: > |
| 129 |
[ |
| 130 |
{ |
| 131 |
"network": { |
| 132 |
"id": "string", |
| 133 |
"name": "string" |
| 134 |
}, |
| 135 |
"panId": "string", |
| 136 |
"channel": "string", |
| 137 |
"transmitPowerLevel": 0, |
| 138 |
"enrolled": true, |
| 139 |
"status": "string", |
| 140 |
"gateway": { |
| 141 |
"name": "string", |
| 142 |
"mac": "string", |
| 143 |
"serial": "string", |
| 144 |
"tags": [ |
| 145 |
"string" |
| 146 |
] |
| 147 |
}, |
| 148 |
"counts": { |
| 149 |
"doorLocks": { |
| 150 |
"byStatus": { |
| 151 |
"online": 0, |
| 152 |
"offline": 0, |
| 153 |
"dormant": 0 |
| 154 |
} |
| 155 |
} |
| 156 |
} |
| 157 |
} |
| 158 |
] |
| 159 |
""" |