1- # Release Notes
1+ # CHANGELOG
22
33## Version 0.59.1 (December 2024)
44
77
88This release introduces significant enhancements to the Mist API Python SDK, including new endpoints, improved pagination support, and updated API specifications.
99
10- ### New Features
11-
12- #### New API Endpoints
13-
14- ** Organization Statistics:**
15- - ` countOrgOspfStats ` : Count OSPF statistics for organization
16- - ` searchOrgOspfStats ` : Search OSPF peer statistics across organization
17- - ` countOrgOspfNeighbors ` : Count OSPF neighbors for organization
18- - ` getOrgOspfNeighborStats ` : Get OSPF neighbor statistics
19-
20- ** Site Statistics:**
21- - ` countSiteOspfStats ` : Count OSPF statistics for site
22- - ` searchSiteOspfStats ` : Search OSPF peer statistics for site
23- - ` countSiteOspfNeighbors ` : Count OSPF neighbors for site
24- - ` getOspfNeighborStatsForSiteDevice ` : Get OSPF neighbor statistics for site device
25-
26- ** Site Insights:**
27- - ` getSiteInsightMetricsForGateway ` : Get insight metrics for specific gateway devices
28- - ` getSiteInsightMetricsForSwitch ` : Get insight metrics for specific switch devices
29-
30- ** Organization SSR (Session Smart Router):**
31- - ` exportOrgSsrIdTokens ` : Export SSR identity tokens for bulk operations
32- - ` getOrgSsrRegistrationCommands ` : Get registration commands for SSR devices (replaces deprecated 128T endpoint)
33-
34- ** MSP Organizations:**
35- - ` searchMspOrgs ` : Search and filter organizations within an MSP
36-
37- ** Site Synthetic Testing:**
38- - New endpoints for synthetic test management and monitoring
10+ ---
3911
40- ### API Enhancements
12+ ## 1. FUNCTIONS ADDED
4113
42- #### Enhanced Pagination Support
43- Added ` search_after ` parameter to multiple search endpoints for improved pagination:
14+ ### ** src/mistapi/api/v1/orgs/ssr.py **
15+ - ` exportOrgSsrIdTokens(mist_session, org_id, body) ` - Export SSR identity tokens
4416
45- ** Organization Level:**
46- - ` searchOrgAssets `
47- - ` searchOrgBgpStats `
48- - ` searchOrgClients `
49- - ` searchOrgDevices `
50- - ` searchOrgEvents `
17+ ### ** src/mistapi/api/v1/orgs/stats.py**
18+ - ` countOrgOspfStats(mist_session, org_id, distinct, start, end, limit, sort, search_after) ` - Count OSPF stats at org level
19+ - ` searchOrgOspfStats(mist_session, org_id, site_id, mac, peer_ip, port_id, state, vrf_name, start, end, duration, limit, sort, search_after) ` - Search OSPF peer stats
5120
52- ** Site Level:**
53- - ` searchSiteAssets `
54- - ` searchSiteBgpStats `
55- - ` searchSiteCalls `
56- - ` searchSiteDiscoveredSwitchesMetrics `
57- - ` searchSiteDevices `
21+ ### ** src/mistapi/api/v1/sites/devices.py**
22+ - ` setSiteDevicesGbpTag(mist_session, site_id, body) ` - Set Group-Based Policy tags for devices
5823
59- #### Updated Parameters
60- - ** Client Fingerprint Search ** : Added ` vty ` as valid ` client_type ` option (wireless, wired, vty)
61- - ** PSK Portals ** : Updated field types and improved request handling
62- - ** SSR Registration ** : Enhanced documentation for ` asset_ids ` parameter with HTTP body preference
24+ ### ** src/mistapi/api/v1/sites/insights.py **
25+ - ` getSiteInsightMetricsForGateway(mist_session, site_id, metric, device_id, start, end, duration, interval, limit, page) ` - Get insight metrics for gateways
26+ - ` getSiteInsightMetricsForMxEdge(mist_session, site_id, metric, mxedge_id, start, end, duration, interval, limit, page) ` - Get insight metrics for MxEdges
27+ - ` getSiteInsightMetricsForSwitch(mist_session, site_id, metric, device_id, start, end, duration, interval, limit, page) ` - Get insight metrics for switches
6328
64- ### API Updates
29+ ### ** src/mistapi/api/v1/sites/stats.py**
30+ - ` countSiteOspfStats(mist_session, site_id, distinct, start, end, limit, sort, search_after) ` - Count OSPF stats at site level
31+ - ` searchSiteOspfStats(mist_session, site_id, mac, peer_ip, port_id, state, vrf_name, start, end, duration, limit, sort, search_after) ` - Search OSPF peer stats for site
6532
66- #### Renamed Endpoints (Backwards Compatible)
67- - ` getOrg128TRegistrationCommands ` → ` getOrgSsrRegistrationCommands ` (128T branding to SSR)
6833
69- #### Updated API Documentation
70- - Improved parameter descriptions across multiple endpoints
71- - Enhanced inline documentation for better developer experience
72- - Updated query parameter handling for consistency
34+ ---
7335
74- ### Additional Changes
36+ ## 3. FUNCTIONS DEPRECATED
7537
76- ** Inventory Management:**
77- - Enhanced inventory claim and release operations
78- - Improved device adoption workflows
38+ - ` getOrg128TRegistrationCommands ` in ** src/mistapi/api/v1/orgs/ssr.py** (replaced by ` getOrgSsrRegistrationCommands ` )
7939
80- ** Device Statistics:**
81- - Extended device metrics collection
82- - Enhanced BGP, OSPF, and other routing protocol statistics
40+ ---
8341
84- ** Webhook Management:**
85- - Improved webhook configuration and testing
86- - Enhanced event subscription handling
42+ ## 4. PARAMETER CHANGES
43+
44+ ### ** A. Added ` search_after ` parameter (for improved pagination)**
45+
46+ ** MSPs Module:**
47+ - ** src/mistapi/api/v1/msps/orgs.py**
48+ - ` searchMspOrgs ` : Added ` start ` , ` end ` , ` search_after `
49+
50+ ** Orgs Module - Alarms:**
51+ - ** src/mistapi/api/v1/orgs/alarms.py**
52+ - ` searchOrgAlarms ` : Added ` search_after `
53+
54+ ** Orgs Module - Clients:**
55+ - ** src/mistapi/api/v1/orgs/clients.py**
56+ - ` searchOrgWirelessClientEvents ` : Added ` search_after `
57+ - ` searchOrgWirelessClients ` : Added ` search_after `
58+ - ` searchOrgWirelessClientSessions ` : Added ` search_after `
59+
60+ ** Orgs Module - Devices:**
61+ - ** src/mistapi/api/v1/orgs/devices.py**
62+ - ` searchOrgDeviceEvents ` : Added ` search_after `
63+ - ` searchOrgDevices ` : Added ` search_after `
64+
65+ ** Orgs Module - Events:**
66+ - ** src/mistapi/api/v1/orgs/events.py**
67+ - ` searchOrgEvents ` : Added ` search_after `
68+ - ` searchOrgSystemEvents ` : Added ` search_after `
69+
70+ ** Orgs Module - MxEdges:**
71+ - ** src/mistapi/api/v1/orgs/mxedges.py**
72+ - ` searchOrgMistEdgeEvents ` : Added ` search_after `
73+
74+ ** Orgs Module - NAC Clients:**
75+ - ** src/mistapi/api/v1/orgs/nac_clients.py**
76+ - ` searchOrgNacClientEvents ` : Added ` search_after `
77+
78+ ** Orgs Module - Other Devices:**
79+ - ** src/mistapi/api/v1/orgs/otherdevices.py**
80+ - ` searchOrgOtherDeviceEvents ` : Added ` search_after `
81+
82+ ** Orgs Module - Sites:**
83+ - ** src/mistapi/api/v1/orgs/sites.py**
84+ - ` searchOrgSites ` : Added ` search_after `
85+
86+ ** Orgs Module - Stats:**
87+ - ** src/mistapi/api/v1/orgs/stats.py**
88+ - ` searchOrgAssets ` : Added ` search_after `
89+ - ` searchOrgBgpStats ` : Added ` search_after `
90+ - ` searchOrgSwOrGwPorts ` : Added ` search_after `
91+ - ` searchOrgTunnelsStats ` : Added ` search_after `
92+ - ` searchOrgPeerPathStats ` : Added ` search_after `
93+
94+ ** Orgs Module - WAN Clients:**
95+ - ** src/mistapi/api/v1/orgs/wan_clients.py**
96+ - ` searchOrgWanClientEvents ` : Added ` search_after `
97+
98+ ** Orgs Module - Webhooks:**
99+ - ** src/mistapi/api/v1/orgs/webhooks.py**
100+ - ` searchOrgWebhooksDeliveries ` : Added ` search_after `
101+
102+ ** Orgs Module - Wired Clients:**
103+ - ** src/mistapi/api/v1/orgs/wired_clients.py**
104+ - ` searchOrgWiredClients ` : Added ` search_after `
105+
106+ ** Sites Module - Alarms:**
107+ - ** src/mistapi/api/v1/sites/alarms.py**
108+ - ` searchSiteAlarms ` : Added ` search_after `
109+
110+ ** Sites Module - Clients:**
111+ - ** src/mistapi/api/v1/sites/clients.py**
112+ - ` searchSiteWirelessClientEvents ` : Added ` search_after `
113+ - ` searchSiteWirelessClients ` : Added ` search_after `
114+ - ` searchSiteWirelessClientSessions ` : Added ` search_after `
115+
116+ ** Sites Module - Devices:**
117+ - ** src/mistapi/api/v1/sites/devices.py**
118+ - ` searchSiteDeviceConfigHistory ` : Added ` search_after `
119+ - ` searchSiteDeviceEvents ` : Added ` search_after `
120+ - ` searchSiteDeviceLastConfigs ` : Added ` search_after `
121+ - ` searchSiteDevices ` : Added ` search_after `
122+
123+ ** Sites Module - Events:**
124+ - ** src/mistapi/api/v1/sites/events.py**
125+ - ` searchSiteSystemEvents ` : Added ` search_after `
126+
127+ ** Sites Module - Guests:**
128+ - ** src/mistapi/api/v1/sites/guests.py**
129+ - ` searchSiteGuestAuthorization ` : Added ` search_after `
130+
131+ ** Sites Module - Insights:**
132+ - ** src/mistapi/api/v1/sites/insights.py**
133+ - ` searchOrgClientFingerprints ` : Added ` search_after `
134+
135+ ** Sites Module - Stats:**
136+ - ** src/mistapi/api/v1/sites/stats.py**
137+ - ` searchSiteAssets ` : Added ` search_after `
138+ - ` searchSiteBgpStats ` : Added ` search_after `
139+ - ` searchSiteCalls ` : Added ` search_after `
140+ - ` searchSiteDiscoveredSwitchesMetrics ` : Added ` search_after `
141+
142+ ### ** B. Other Parameter Updates**
143+
144+ ** Sites Module - Insights:**
145+ - ** src/mistapi/api/v1/sites/insights.py**
146+ - ` searchOrgClientFingerprints ` : Parameter ` client_type ` now accepts ` 'vty' ` in addition to ` 'wireless' ` and ` 'wired' `
87147
88- ### Bug Fixes
148+ ---
89149
90- - Fixed parameter type inconsistencies in various endpoints
91- - Corrected query parameter serialization issues
92- - Improved error handling for edge cases
150+ ## Summary Statistics
93151
94- ### Documentation
152+ - ** Functions Added** : 9
153+ - ** Functions Renamed** : 1
154+ - ** Functions Deprecated** : 1
155+ - ** Functions with Parameter Changes** : 40+ (primarily ` search_after ` additions)
156+ - ** Total Files Modified** : 40
157+ - ** Lines Added** : 812
158+ - ** Lines Removed** : 85
95159
96- - Updated API endpoint references to latest Mist documentation
97- - Improved parameter descriptions and examples
98- - Enhanced inline code documentation
160+ ---
99161
100- ### Resources
162+ ## Resources
101163
102164- ** Full API Documentation** : [ Mist API Documentation] ( https://doc.mist-lab.fr )
103165- ** GitHub Repository** : [ mistapi_python] ( https://github.com/tmunzer/mistapi_python )
@@ -115,4 +177,4 @@ Previous stable release. See commit history for details.
115177
116178** Author
** : Thomas Munzer
< [email protected] > 117179** License** : MIT License
118- ** Python Compatibility** : Python 3.10 +
180+ ** Python Compatibility** : Python 3.8 +
0 commit comments