Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_licensing_coterm_licenses_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_licensing_coterm_licenses_info
9 short_description: Information module for organizations _licensing _coterm _licenses
10 description:
11 - Information module for Organizations Licensing Coterm Licenses Info.
12 - Get all organizations _licensing _coterm _licenses.
13 - List the licenses in a coterm 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 Licensing Coterm Licenses Info.
26 - OrganizationId path parameter. Organization ID.
27 type: str
28 perPage:
29 description:
30 - Information module for Organizations Licensing Coterm Licenses Info.
31 - PerPage query parameter. The number of entries per page returned. Acceptable
32 range is 3 - 1000. Default is 1000.
33 type: int
34 startingAfter:
35 description:
36 - Information module for Organizations Licensing Coterm Licenses 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 Licensing Coterm Licenses 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 invalidated:
55 description:
56 - Information module for Organizations Licensing Coterm Licenses Info.
57 - Invalidated query parameter. Filter for licenses that are invalidated.
58 type: bool
59 expired:
60 description:
61 - Information module for Organizations Licensing Coterm Licenses Info.
62 - Expired query parameter. Filter for licenses that are expired.
63 type: bool
64 requirements:
65 - meraki >= 2.4.9
66 - python >= 3.5
67 seealso:
68 - name: Cisco Meraki documentation for licensing getOrganizationLicensingCotermLicenses
69 description: Complete reference of the getOrganizationLicensingCotermLicenses
70 API.
71 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-licensing-coterm-licenses
72 notes:
73 - SDK Method used are
74 licensing.Licensing.get_organization_licensing_coterm_licenses,
75 - Paths used are
76 get /organizations/{organizationId}/licensing/coterm/licenses,
77 """
78
79 EXAMPLES = r"""
80 - name: Get all organizations _licensing _coterm _licenses
81 cisco.meraki.organizations_licensing_coterm_licenses_info:
82 meraki_api_key: "{{ meraki_api_key }}"
83 meraki_base_url: "{{ meraki_base_url }}"
84 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
85 meraki_certificate_path: "{{ meraki_certificate_path }}"
86 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
87 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
88 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
89 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
90 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
91 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
92 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
93 meraki_output_log: "{{ meraki_output_log }}"
94 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
95 meraki_log_path: "{{ meraki_log_path }}"
96 meraki_print_console: "{{ meraki_print_console }}"
97 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
98 meraki_simulate: "{{ meraki_simulate }}"
99 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
100 meraki_caller: "{{ meraki_caller }}"
101 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
102 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
103 perPage: 0
104 startingAfter: string
105 endingBefore: string
106 invalidated: true
107 expired: true
108 organizationId: string
109 total_pages: -1
110 direction: next
111 register: result
112 """
113 RETURN = r"""
114 meraki_response:
115 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
116 returned: always
117 type: list
118 elements: dict
119 sample: >
120 [
121 {
122 "key": "string",
123 "organizationId": "string",
124 "duration": 0,
125 "mode": "string",
126 "startedAt": "string",
127 "claimedAt": "string",
128 "invalidated": true,
129 "invalidatedAt": "string",
130 "expired": true,
131 "editions": [
132 {
133 "edition": "string",
134 "productType": "string"
135 }
136 ],
137 "counts": [
138 {
139 "model": "string",
140 "count": 0
141 }
142 ]
143 }
144 ]
145 """