Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_licensing_coterm_licenses_move.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_licensing_coterm_licenses_move
9 short_description: Resource module for organizations _licensing _coterm _licenses
10 _move
11 description:
12 - Manage operation create of the resource organizations _licensing _coterm _licenses
13 _move.
14 - Moves a license to a different organization coterm only .
15 version_added: '1.0.0'
16 extends_documentation_fragment:
17 - cisco.meraki.module
18 author: Francisco Munoz (@fmunoz)
19 options:
20 destination:
21 description: Destination data for the license move.
22 suboptions:
23 mode:
24 description: The claim mode of the moved license.
25 type: str
26 organizationId:
27 description: The organization to move the license to.
28 type: str
29 type: dict
30 licenses:
31 description: The list of licenses to move.
32 elements: dict
33 suboptions:
34 counts:
35 description: The counts to move from the license by model type.
36 elements: dict
37 suboptions:
38 count:
39 description: The number of counts to move.
40 type: int
41 model:
42 description: The license model type to move counts of.
43 type: str
44 type: list
45 key:
46 description: The license key to move counts from.
47 type: str
48 type: list
49 organizationId:
50 description: OrganizationId path parameter. Organization ID.
51 type: str
52 requirements:
53 - meraki >= 2.4.9
54 - python >= 3.5
55 seealso:
56 - name: Cisco Meraki documentation for licensing moveOrganizationLicensingCotermLicenses
57 description: Complete reference of the moveOrganizationLicensingCotermLicenses
58 API.
59 link: https://developer.cisco.com/meraki/api-v1/#!move-organization-licensing-coterm-licenses
60 notes:
61 - SDK Method used are
62 licensing.Licensing.move_organization_licensing_coterm_licenses,
63 - Paths used are
64 post /organizations/{organizationId}/licensing/coterm/licenses/move,
65 """
66
67 EXAMPLES = r"""
68 - name: Create
69 cisco.meraki.organizations_licensing_coterm_licenses_move:
70 meraki_api_key: "{{ meraki_api_key }}"
71 meraki_base_url: "{{ meraki_base_url }}"
72 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
73 meraki_certificate_path: "{{ meraki_certificate_path }}"
74 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
75 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
76 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
77 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
78 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
79 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
80 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
81 meraki_output_log: "{{ meraki_output_log }}"
82 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
83 meraki_log_path: "{{ meraki_log_path }}"
84 meraki_print_console: "{{ meraki_print_console }}"
85 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
86 meraki_simulate: "{{ meraki_simulate }}"
87 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
88 meraki_caller: "{{ meraki_caller }}"
89 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
90 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
91 destination:
92 mode: addDevices
93 organizationId: '123'
94 licenses:
95 - counts:
96 - count: 5
97 model: MR Enterprise
98 key: Z2AA-BBBB-CCCC
99 organizationId: string
100 """
101 RETURN = r"""
102 meraki_response:
103 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
104 returned: always
105 type: dict
106 sample: >
107 {
108 "remainderLicenses": [
109 {
110 "key": "string",
111 "organizationId": "string",
112 "duration": 0,
113 "mode": "string",
114 "startedAt": "string",
115 "claimedAt": "string",
116 "invalidated": true,
117 "invalidatedAt": "string",
118 "expired": true,
119 "editions": [
120 {
121 "edition": "string",
122 "productType": "string"
123 }
124 ],
125 "counts": [
126 {
127 "model": "string",
128 "count": 0
129 }
130 ]
131 }
132 ],
133 "movedLicenses": [
134 {
135 "key": "string",
136 "organizationId": "string",
137 "duration": 0,
138 "mode": "string",
139 "startedAt": "string",
140 "claimedAt": "string",
141 "invalidated": true,
142 "invalidatedAt": "string",
143 "expired": true,
144 "editions": [
145 {
146 "edition": "string",
147 "productType": "string"
148 }
149 ],
150 "counts": [
151 {
152 "model": "string",
153 "count": 0
154 }
155 ]
156 }
157 ]
158 }
159 """