Skip to content

Commit ca5ee5f

Browse files
committed
0.59.0
1 parent 2606713 commit ca5ee5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+813
-83
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "mistapi"
7-
version = "0.58.0"
7+
version = "0.59.0"
88
authors = [{ name = "Thomas Munzer", email = "[email protected]" }]
99
description = "Python package to simplify the Mist System APIs usage"
1010
keywords = ["Mist", "Juniper", "API"]

src/mistapi/__version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "0.58.0"
1+
__version__ = "0.59.0"
22
__author__ = "Thomas Munzer <[email protected]>"

src/mistapi/api/v1/msps/orgs.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ def searchMspOrgs(
109109
usage_types: list | None = None,
110110
limit: int = 100,
111111
sort: str = "timestamp",
112+
start: str | None = None,
113+
end: str | None = None,
114+
search_after: str | None = None,
112115
) -> _APIResponse:
113116
"""
114117
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/msps/orgs/search-msp-orgs
@@ -132,6 +135,9 @@ def searchMspOrgs(
132135
List of types that enabled by usage
133136
limit : int, default: 100
134137
sort : str, default: timestamp
138+
start : str
139+
end : str
140+
search_after : str
135141
136142
RETURN
137143
-----------
@@ -155,6 +161,12 @@ def searchMspOrgs(
155161
query_params["limit"] = str(limit)
156162
if sort:
157163
query_params["sort"] = str(sort)
164+
if start:
165+
query_params["start"] = str(start)
166+
if end:
167+
query_params["end"] = str(end)
168+
if search_after:
169+
query_params["search_after"] = str(search_after)
158170
resp = mist_session.mist_get(uri=uri, query=query_params)
159171
return resp
160172

src/mistapi/api/v1/msps/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def searchMspOrgGroup(
1818
mist_session: _APISession,
1919
msp_id: str,
2020
type: str,
21-
q: str | None = None,
21+
q: str,
2222
limit: int = 100,
2323
start: str | None = None,
2424
end: str | None = None,

src/mistapi/api/v1/orgs/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from mistapi.api.v1.orgs import (
1414
orgs,
15-
ssr,
1615
aamwprofiles,
1716
admins,
1817
alarms,
@@ -73,6 +72,7 @@
7372
ssl_proxy_cert,
7473
ssoroles,
7574
ssos,
75+
ssr,
7676
stats,
7777
subscriptions,
7878
templates,
@@ -94,7 +94,6 @@
9494

9595
__all__ = [
9696
"orgs",
97-
"ssr",
9897
"aamwprofiles",
9998
"admins",
10099
"alarms",
@@ -155,6 +154,7 @@
155154
"ssl_proxy_cert",
156155
"ssoroles",
157156
"ssos",
157+
"ssr",
158158
"stats",
159159
"subscriptions",
160160
"templates",

src/mistapi/api/v1/orgs/alarms.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def searchOrgAlarms(
138138
duration: str = "1d",
139139
limit: int = 100,
140140
sort: str = "timestamp",
141+
search_after: str | None = None,
141142
) -> _APIResponse:
142143
"""
143144
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/alarms/search-org-alarms
@@ -161,6 +162,7 @@ def searchOrgAlarms(
161162
duration : str, default: 1d
162163
limit : int, default: 100
163164
sort : str, default: timestamp
165+
search_after : str
164166
165167
RETURN
166168
-----------
@@ -186,6 +188,8 @@ def searchOrgAlarms(
186188
query_params["limit"] = str(limit)
187189
if sort:
188190
query_params["sort"] = str(sort)
191+
if search_after:
192+
query_params["search_after"] = str(search_after)
189193
resp = mist_session.mist_get(uri=uri, query=query_params)
190194
return resp
191195

src/mistapi/api/v1/orgs/clients.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def searchOrgWirelessClientEvents(
203203
duration: str = "1d",
204204
sort: str = "timestamp",
205205
limit: int = 100,
206+
search_after: str | None = None,
206207
) -> _APIResponse:
207208
"""
208209
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/clients/wireless/search-org-wireless-client-events
@@ -235,6 +236,7 @@ def searchOrgWirelessClientEvents(
235236
duration : str, default: 1d
236237
sort : str, default: timestamp
237238
limit : int, default: 100
239+
search_after : str
238240
239241
RETURN
240242
-----------
@@ -272,6 +274,8 @@ def searchOrgWirelessClientEvents(
272274
query_params["sort"] = str(sort)
273275
if limit:
274276
query_params["limit"] = str(limit)
277+
if search_after:
278+
query_params["search_after"] = str(search_after)
275279
resp = mist_session.mist_get(uri=uri, query=query_params)
276280
return resp
277281

@@ -299,6 +303,7 @@ def searchOrgWirelessClients(
299303
end: str | None = None,
300304
duration: str = "1d",
301305
sort: str = "timestamp",
306+
search_after: str | None = None,
302307
) -> _APIResponse:
303308
"""
304309
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/clients/wireless/search-org-wireless-clients
@@ -334,6 +339,7 @@ def searchOrgWirelessClients(
334339
end : str
335340
duration : str, default: 1d
336341
sort : str, default: timestamp
342+
search_after : str
337343
338344
RETURN
339345
-----------
@@ -383,6 +389,8 @@ def searchOrgWirelessClients(
383389
query_params["duration"] = str(duration)
384390
if sort:
385391
query_params["sort"] = str(sort)
392+
if search_after:
393+
query_params["search_after"] = str(search_after)
386394
resp = mist_session.mist_get(uri=uri, query=query_params)
387395
return resp
388396

@@ -490,6 +498,7 @@ def searchOrgWirelessClientSessions(
490498
end: str | None = None,
491499
duration: str = "1d",
492500
sort: str = "timestamp",
501+
search_after: str | None = None,
493502
) -> _APIResponse:
494503
"""
495504
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/clients/wireless/search-org-wireless-client-sessions
@@ -522,6 +531,7 @@ def searchOrgWirelessClientSessions(
522531
end : str
523532
duration : str, default: 1d
524533
sort : str, default: timestamp
534+
search_after : str
525535
526536
RETURN
527537
-----------
@@ -563,6 +573,8 @@ def searchOrgWirelessClientSessions(
563573
query_params["duration"] = str(duration)
564574
if sort:
565575
query_params["sort"] = str(sort)
576+
if search_after:
577+
query_params["search_after"] = str(search_after)
566578
resp = mist_session.mist_get(uri=uri, query=query_params)
567579
return resp
568580

src/mistapi/api/v1/orgs/devices.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ def searchOrgDeviceEvents(
242242
end: str | None = None,
243243
duration: str = "1d",
244244
sort: str = "timestamp",
245+
search_after: str | None = None,
245246
) -> _APIResponse:
246247
"""
247248
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/devices/search-org-device-events
@@ -270,6 +271,7 @@ def searchOrgDeviceEvents(
270271
end : str
271272
duration : str, default: 1d
272273
sort : str, default: timestamp
274+
search_after : str
273275
274276
RETURN
275277
-----------
@@ -305,6 +307,8 @@ def searchOrgDeviceEvents(
305307
query_params["duration"] = str(duration)
306308
if sort:
307309
query_params["sort"] = str(sort)
310+
if search_after:
311+
query_params["search_after"] = str(search_after)
308312
resp = mist_session.mist_get(uri=uri, query=query_params)
309313
return resp
310314

@@ -371,11 +375,13 @@ def searchOrgDeviceLastConfigs(
371375
mac: str | None = None,
372376
name: str | None = None,
373377
version: str | None = None,
378+
cert_expiry_duration: str | None = None,
374379
start: str | None = None,
375380
end: str | None = None,
376381
limit: int = 100,
377382
duration: str = "1d",
378383
sort: str = "timestamp",
384+
search_after: str | None = None,
379385
) -> _APIResponse:
380386
"""
381387
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/devices/search-org-device-last-configs
@@ -395,11 +401,13 @@ def searchOrgDeviceLastConfigs(
395401
mac : str
396402
name : str
397403
version : str
404+
cert_expiry_duration : str
398405
start : str
399406
end : str
400407
limit : int, default: 100
401408
duration : str, default: 1d
402409
sort : str, default: timestamp
410+
search_after : str
403411
404412
RETURN
405413
-----------
@@ -417,6 +425,8 @@ def searchOrgDeviceLastConfigs(
417425
query_params["name"] = str(name)
418426
if version:
419427
query_params["version"] = str(version)
428+
if cert_expiry_duration:
429+
query_params["cert_expiry_duration"] = str(cert_expiry_duration)
420430
if start:
421431
query_params["start"] = str(start)
422432
if end:
@@ -427,6 +437,8 @@ def searchOrgDeviceLastConfigs(
427437
query_params["duration"] = str(duration)
428438
if sort:
429439
query_params["sort"] = str(sort)
440+
if search_after:
441+
query_params["search_after"] = str(search_after)
430442
resp = mist_session.mist_get(uri=uri, query=query_params)
431443
return resp
432444

@@ -512,6 +524,7 @@ def searchOrgDevices(
512524
end: str | None = None,
513525
duration: str = "1d",
514526
sort: str = "timestamp",
527+
search_after: str | None = None,
515528
) -> _APIResponse:
516529
"""
517530
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/devices/search-org-devices
@@ -571,6 +584,7 @@ def searchOrgDevices(
571584
end : str
572585
duration : str, default: 1d
573586
sort : str, default: timestamp
587+
search_after : str
574588
575589
RETURN
576590
-----------
@@ -664,6 +678,8 @@ def searchOrgDevices(
664678
query_params["duration"] = str(duration)
665679
if sort:
666680
query_params["sort"] = str(sort)
681+
if search_after:
682+
query_params["search_after"] = str(search_after)
667683
resp = mist_session.mist_get(uri=uri, query=query_params)
668684
return resp
669685

src/mistapi/api/v1/orgs/events.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def searchOrgEvents(
2323
end: str | None = None,
2424
duration: str = "1d",
2525
sort: str = "timestamp",
26+
search_after: str | None = None,
2627
) -> _APIResponse:
2728
"""
2829
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/events/search-org-events
@@ -44,6 +45,7 @@ def searchOrgEvents(
4445
end : str
4546
duration : str, default: 1d
4647
sort : str, default: timestamp
48+
search_after : str
4749
4850
RETURN
4951
-----------
@@ -65,6 +67,8 @@ def searchOrgEvents(
6567
query_params["duration"] = str(duration)
6668
if sort:
6769
query_params["sort"] = str(sort)
70+
if search_after:
71+
query_params["search_after"] = str(search_after)
6872
resp = mist_session.mist_get(uri=uri, query=query_params)
6973
return resp
7074

@@ -128,6 +132,7 @@ def searchOrgSystemEvents(
128132
end: str | None = None,
129133
duration: str = "1d",
130134
sort: str = "timestamp",
135+
search_after: str | None = None,
131136
) -> _APIResponse:
132137
"""
133138
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/events/search-org-system-events
@@ -148,6 +153,7 @@ def searchOrgSystemEvents(
148153
end : str
149154
duration : str, default: 1d
150155
sort : str, default: timestamp
156+
search_after : str
151157
152158
RETURN
153159
-----------
@@ -167,5 +173,7 @@ def searchOrgSystemEvents(
167173
query_params["duration"] = str(duration)
168174
if sort:
169175
query_params["sort"] = str(sort)
176+
if search_after:
177+
query_params["search_after"] = str(search_after)
170178
resp = mist_session.mist_get(uri=uri, query=query_params)
171179
return resp

src/mistapi/api/v1/orgs/inventory.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ def searchOrgInventory(
326326
status: str | None = None,
327327
text: str | None = None,
328328
limit: int = 100,
329-
page: int = 1,
330329
sort: str = "timestamp",
330+
search_after: str | None = None,
331331
) -> _APIResponse:
332332
"""
333333
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/inventory/search-org-inventory
@@ -355,8 +355,8 @@ def searchOrgInventory(
355355
status : str
356356
text : str
357357
limit : int, default: 100
358-
page : int, default: 1
359358
sort : str, default: timestamp
359+
search_after : str
360360
361361
RETURN
362362
-----------
@@ -390,9 +390,9 @@ def searchOrgInventory(
390390
query_params["text"] = str(text)
391391
if limit:
392392
query_params["limit"] = str(limit)
393-
if page:
394-
query_params["page"] = str(page)
395393
if sort:
396394
query_params["sort"] = str(sort)
395+
if search_after:
396+
query_params["search_after"] = str(search_after)
397397
resp = mist_session.mist_get(uri=uri, query=query_params)
398398
return resp

0 commit comments

Comments
 (0)