Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_licenses_assign_seats.py

raw symbols SCIP
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_licenses_assign_seats
9 short_description: Resource module for organizations _licenses _assignseats
10 description:
11 - Manage operation create of the resource organizations _licenses _assignseats.
12 - Assign SM seats to a network. This will increase the managed SM device limit of
13 the network.
14 version_added: '1.0.0'
15 extends_documentation_fragment:
16 - cisco.meraki.module
17 author: Francisco Munoz (@fmunoz)
18 options:
19 licenseId:
20 description: The ID of the SM license to assign seats from.
21 type: str
22 networkId:
23 description: The ID of the SM network to assign the seats to.
24 type: str
25 organizationId:
26 description: OrganizationId path parameter. Organization ID.
27 type: str
28 seatCount:
29 description: The number of seats to assign to the SM network. Must be less than
30 or equal to the total number of seats of the license.
31 type: int
32 requirements:
33 - meraki >= 2.4.9
34 - python >= 3.5
35 seealso:
36 - name: Cisco Meraki documentation for organizations assignOrganizationLicensesSeats
37 description: Complete reference of the assignOrganizationLicensesSeats API.
38 link: https://developer.cisco.com/meraki/api-v1/#!assign-organization-licenses-seats
39 notes:
40 - SDK Method used are
41 organizations.Organizations.assign_organization_licenses_seats,
42 - Paths used are
43 post /organizations/{organizationId}/licenses/assignSeats,
44 """
45
46 EXAMPLES = r"""
47 - name: Create
48 cisco.meraki.organizations_licenses_assign_seats:
49 meraki_api_key: "{{ meraki_api_key }}"
50 meraki_base_url: "{{ meraki_base_url }}"
51 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
52 meraki_certificate_path: "{{ meraki_certificate_path }}"
53 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
54 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
55 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
56 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
57 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
58 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
59 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
60 meraki_output_log: "{{ meraki_output_log }}"
61 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
62 meraki_log_path: "{{ meraki_log_path }}"
63 meraki_print_console: "{{ meraki_print_console }}"
64 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
65 meraki_simulate: "{{ meraki_simulate }}"
66 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
67 meraki_caller: "{{ meraki_caller }}"
68 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
69 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
70 licenseId: '1234'
71 networkId: N_24329156
72 organizationId: string
73 seatCount: 20
74 """
75 RETURN = r"""
76 meraki_response:
77 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
78 returned: always
79 type: dict
80 sample: >
81 {
82 "resultingLicenses": [
83 {
84 "id": "string",
85 "licenseType": "string",
86 "licenseKey": "string",
87 "orderNumber": "string",
88 "deviceSerial": "string",
89 "networkId": "string",
90 "state": "string",
91 "seatCount": 0,
92 "totalDurationInDays": 0,
93 "durationInDays": 0,
94 "permanentlyQueuedLicenses": [
95 {
96 "id": "string",
97 "licenseType": "string",
98 "licenseKey": "string",
99 "orderNumber": "string",
100 "durationInDays": 0
101 }
102 ],
103 "claimDate": "string",
104 "activationDate": "string",
105 "expirationDate": "string",
106 "headLicenseId": "string"
107 }
108 ]
109 }
110 """