Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/administered_licensing_subscription_subscriptions_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: administered_licensing_subscription_subscriptions_info
9 short_description: Information module for administered _licensing _subscription _subscriptions
10 description:
11 - Information module for Administered Licensing Subscription Subscriptions Info.
12 - Get all administered _licensing _subscription _subscriptions.
13 - List available subscriptions.
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 perPage:
24 description:
25 - Information module for Administered Licensing Subscription Subscriptions Info.
26 - PerPage query parameter. The number of entries per page returned. Acceptable
27 range is 3 - 1000. Default is 1000.
28 type: int
29 startingAfter:
30 description:
31 - Information module for Administered Licensing Subscription Subscriptions Info.
32 - >
33 StartingAfter query parameter. A token used by the server to indicate the
34 start of the page. Often this is a timestamp or an ID but it is not limited
35 to those. This parameter should not be defined by client applications. The
36 link for the first, last, prev, or next page in the HTTP Link header should
37 define it.
38 type: str
39 endingBefore:
40 description:
41 - Information module for Administered Licensing Subscription Subscriptions Info.
42 - >
43 EndingBefore query parameter. A token used by the server to indicate the end
44 of the page. Often this is a timestamp or an ID but it is not limited to those.
45 This parameter should not be defined by client applications. The link for
46 the first, last, prev, or next page in the HTTP Link header should define
47 it.
48 type: str
49 subscriptionIds:
50 description:
51 - Information module for Administered Licensing Subscription Subscriptions Info.
52 - SubscriptionIds query parameter. List of subscription ids to fetch.
53 elements: str
54 type: list
55 organizationIds:
56 description:
57 - Information module for Administered Licensing Subscription Subscriptions Info.
58 - OrganizationIds query parameter. Organizations to get associated subscriptions
59 for.
60 elements: str
61 type: list
62 statuses:
63 description:
64 - Information module for Administered Licensing Subscription Subscriptions Info.
65 - Statuses query parameter. List of statuses that returned subscriptions can
66 have.
67 elements: str
68 type: list
69 productTypes:
70 description:
71 - Information module for Administered Licensing Subscription Subscriptions Info.
72 - ProductTypes query parameter. List of product types that returned subscriptions
73 need to have entitlements for.
74 elements: str
75 type: list
76 skus:
77 description:
78 - Information module for Administered Licensing Subscription Subscriptions Info.
79 - Skus query parameter. List of SKUs that returned subscriptions need to have
80 entitlements for.
81 elements: str
82 type: list
83 name:
84 description:
85 - Information module for Administered Licensing Subscription Subscriptions Info.
86 - Name query parameter. Search for subscription name.
87 type: str
88 startDate:
89 description:
90 - Information module for Administered Licensing Subscription Subscriptions Info.
91 - >
92 StartDate query parameter. Filter subscriptions by start date, ISO 8601 format.
93 To filter with a range of dates, use 'startDate<option>=?' in the request.
94 Accepted options include lt, gt, lte, gte.
95 type: str
96 endDate:
97 description:
98 - Information module for Administered Licensing Subscription Subscriptions Info.
99 - >
100 EndDate query parameter. Filter subscriptions by end date, ISO 8601 format.
101 To filter with a range of dates, use 'endDate<option>=?' in the request. Accepted
102 options include lt, gt, lte, gte.
103 type: str
104 requirements:
105 - meraki >= 2.4.9
106 - python >= 3.5
107 seealso:
108 - name: Cisco Meraki documentation for licensing getAdministeredLicensingSubscriptionSubscriptions
109 description: Complete reference of the getAdministeredLicensingSubscriptionSubscriptions
110 API.
111 link: https://developer.cisco.com/meraki/api-v1/#!get-administered-licensing-subscription-subscriptions
112 notes:
113 - SDK Method used are
114 licensing.Licensing.get_administered_licensing_subscription_subscriptions,
115 - Paths used are
116 get /administered/licensing/subscription/subscriptions,
117 """
118
119 EXAMPLES = r"""
120 - name: Get all administered _licensing _subscription _subscriptions
121 cisco.meraki.administered_licensing_subscription_subscriptions_info:
122 meraki_api_key: "{{ meraki_api_key }}"
123 meraki_base_url: "{{ meraki_base_url }}"
124 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
125 meraki_certificate_path: "{{ meraki_certificate_path }}"
126 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
127 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
128 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
129 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
130 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
131 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
132 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
133 meraki_output_log: "{{ meraki_output_log }}"
134 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
135 meraki_log_path: "{{ meraki_log_path }}"
136 meraki_print_console: "{{ meraki_print_console }}"
137 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
138 meraki_simulate: "{{ meraki_simulate }}"
139 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
140 meraki_caller: "{{ meraki_caller }}"
141 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
142 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
143 perPage: 0
144 startingAfter: string
145 endingBefore: string
146 subscriptionIds: []
147 organizationIds: []
148 statuses: []
149 productTypes: []
150 skus: []
151 name: string
152 startDate: string
153 endDate: string
154 total_pages: -1
155 direction: next
156 register: result
157 """
158 RETURN = r"""
159 meraki_response:
160 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
161 returned: always
162 type: list
163 elements: dict
164 sample: >
165 [
166 {
167 "subscriptionId": "string",
168 "name": "string",
169 "description": "string",
170 "status": "string",
171 "startDate": "string",
172 "endDate": "string",
173 "lastUpdatedAt": "string",
174 "webOrderId": "string",
175 "type": "string",
176 "smartAccount": {
177 "status": "string",
178 "account": {
179 "id": "string",
180 "name": "string",
181 "domain": "string"
182 }
183 },
184 "renewalRequested": true,
185 "productTypes": [
186 "string"
187 ],
188 "entitlements": [
189 {
190 "sku": "string",
191 "seats": {
192 "assigned": 0,
193 "available": 0,
194 "limit": 0
195 }
196 }
197 ],
198 "counts": {
199 "seats": {
200 "assigned": 0,
201 "available": 0,
202 "limit": 0
203 },
204 "networks": 0,
205 "organizations": 0
206 },
207 "enterpriseAgreement": {
208 "suites": [
209 "string"
210 ]
211 }
212 }
213 ]
214 """