Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_devices_controller_migrations_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_controller_migrations_info
9 short_description: Information module for organizations _devices _controller _migrations
10 description:
11 - Information module for Organizations Devices Controller Migrations Info.
12 - Get all organizations _devices _controller _migrations.
13 - Retrieve device migration statuses 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 Controller Migrations Info.
26 - OrganizationId path parameter. Organization ID.
27 type: str
28 serials:
29 description:
30 - Information module for Organizations Devices Controller Migrations Info.
31 - Serials query parameter. A list of Meraki Serials for which to retrieve migrations.
32 elements: str
33 type: list
34 networkIds:
35 description:
36 - Information module for Organizations Devices Controller Migrations Info.
37 - NetworkIds query parameter. Filter device migrations by network IDs.
38 elements: str
39 type: list
40 target:
41 description:
42 - Information module for Organizations Devices Controller Migrations Info.
43 - Target query parameter. Filter device migrations by target destination.
44 type: str
45 perPage:
46 description:
47 - Information module for Organizations Devices Controller Migrations Info.
48 - PerPage query parameter. The number of entries per page returned. Acceptable
49 range is 3 - 1000. Default is 100.
50 type: int
51 startingAfter:
52 description:
53 - Information module for Organizations Devices Controller Migrations Info.
54 - >
55 StartingAfter query parameter. A token used by the server to indicate the
56 start of the page. Often this is a timestamp or an ID but it is not limited
57 to those. This parameter should not be defined by client applications. The
58 link for the first, last, prev, or next page in the HTTP Link header should
59 define it.
60 type: str
61 endingBefore:
62 description:
63 - Information module for Organizations Devices Controller Migrations Info.
64 - >
65 EndingBefore query parameter. A token used by the server to indicate the end
66 of the page. Often this is a timestamp or an ID but it is not limited to those.
67 This parameter should not be defined by client applications. The link for
68 the first, last, prev, or next page in the HTTP Link header should define
69 it.
70 type: str
71 requirements:
72 - meraki >= 2.4.9
73 - python >= 3.5
74 seealso:
75 - name: Cisco Meraki documentation for organizations getOrganizationDevicesControllerMigrations
76 description: Complete reference of the getOrganizationDevicesControllerMigrations
77 API.
78 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-controller-migrations
79 notes:
80 - SDK Method used are
81 organizations.Organizations.get_organization_devices_controller_migrations,
82 - Paths used are
83 get /organizations/{organizationId}/devices/controller/migrations,
84 """
85
86 EXAMPLES = r"""
87 - name: Get all organizations _devices _controller _migrations
88 cisco.meraki.organizations_devices_controller_migrations_info:
89 meraki_api_key: "{{ meraki_api_key }}"
90 meraki_base_url: "{{ meraki_base_url }}"
91 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
92 meraki_certificate_path: "{{ meraki_certificate_path }}"
93 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
94 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
95 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
96 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
97 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
98 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
99 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
100 meraki_output_log: "{{ meraki_output_log }}"
101 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
102 meraki_log_path: "{{ meraki_log_path }}"
103 meraki_print_console: "{{ meraki_print_console }}"
104 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
105 meraki_simulate: "{{ meraki_simulate }}"
106 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
107 meraki_caller: "{{ meraki_caller }}"
108 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
109 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
110 serials: []
111 networkIds: []
112 target: string
113 perPage: 0
114 startingAfter: string
115 endingBefore: string
116 organizationId: string
117 total_pages: -1
118 direction: next
119 register: result
120 """
121 RETURN = r"""
122 meraki_response:
123 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
124 returned: always
125 type: dict
126 sample: >
127 {
128 "items": [
129 {
130 "serial": "string",
131 "target": "string",
132 "createdAt": "string",
133 "migratedAt": "string"
134 }
135 ],
136 "meta": {
137 "counts": {
138 "items": {
139 "total": 0,
140 "remaining": 0
141 }
142 }
143 }
144 }
145 """