Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_devices_details_bulk_update.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_details_bulk_update
9 short_description: Resource module for organizations _devices _details _bulk _update
10 description:
11 - Manage operation create of the resource organizations _devices _details _bulk
12 _update.
13 - Updating device details currently only used for Catalyst devices .
14 version_added: '1.0.0'
15 extends_documentation_fragment:
16 - cisco.meraki.module
17 author: Francisco Munoz (@fmunoz)
18 options:
19 details:
20 description: An array of details.
21 elements: dict
22 suboptions:
23 name:
24 description: Name of device detail.
25 type: str
26 value:
27 description: Value of device detail.
28 type: str
29 type: list
30 organizationId:
31 description: OrganizationId path parameter. Organization ID.
32 type: str
33 serials:
34 description: A list of serials of devices to update.
35 elements: str
36 type: list
37 requirements:
38 - meraki >= 2.4.9
39 - python >= 3.5
40 seealso:
41 - name: Cisco Meraki documentation for organizations bulkUpdateOrganizationDevicesDetails
42 description: Complete reference of the bulkUpdateOrganizationDevicesDetails API.
43 link: https://developer.cisco.com/meraki/api-v1/#!bulk-update-organization-devices-details
44 notes:
45 - SDK Method used are
46 organizations.Organizations.bulk_update_organization_devices_details,
47 - Paths used are
48 post /organizations/{organizationId}/devices/details/bulkUpdate,
49 """
50
51 EXAMPLES = r"""
52 - name: Create
53 cisco.meraki.organizations_devices_details_bulk_update:
54 meraki_api_key: "{{ meraki_api_key }}"
55 meraki_base_url: "{{ meraki_base_url }}"
56 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
57 meraki_certificate_path: "{{ meraki_certificate_path }}"
58 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
59 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
60 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
61 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
62 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
63 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
64 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
65 meraki_output_log: "{{ meraki_output_log }}"
66 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
67 meraki_log_path: "{{ meraki_log_path }}"
68 meraki_print_console: "{{ meraki_print_console }}"
69 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
70 meraki_simulate: "{{ meraki_simulate }}"
71 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
72 meraki_caller: "{{ meraki_caller }}"
73 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
74 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
75 details:
76 - name: username
77 value: ABC
78 - name: password
79 value: ABC123
80 - name: enable password
81 value: ABC123
82 organizationId: string
83 serials:
84 - Q234-ABCD-0001
85 - Q234-ABCD-0002
86 - Q234-ABCD-0003
87 """
88 RETURN = r"""
89 meraki_response:
90 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
91 returned: always
92 type: dict
93 sample: >
94 {
95 "serials": [
96 "string"
97 ]
98 }
99 """