Skip to content

Commit 9dc604d

Browse files
committed
feat(marvisclient): add Marvis client events definitions API endpoint
1 parent cc70178 commit 9dc604d

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

‎src/mistapi/api/v1/const/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
insight_metrics,
2929
languages,
3030
license_types,
31+
marvisclient_events,
3132
marvisclient_versions,
3233
mxedge_events,
3334
mxedge_models,
@@ -58,6 +59,7 @@
5859
"insight_metrics",
5960
"languages",
6061
"license_types",
62+
"marvisclient_events",
6163
"marvisclient_versions",
6264
"mxedge_events",
6365
"mxedge_models",
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"""
2+
--------------------------------------------------------------------------------
3+
------------------------- Mist API Python CLI Session --------------------------
4+
5+
Written by: Thomas Munzer (tmunzer@juniper.net)
6+
Github : https://github.com/tmunzer/mistapi_python
7+
8+
This package is licensed under the MIT License.
9+
10+
--------------------------------------------------------------------------------
11+
"""
12+
13+
from mistapi import APISession as _APISession
14+
from mistapi.__api_response import APIResponse as _APIResponse
15+
16+
17+
def listMarvisClientEventsDefinitions(mist_session: _APISession) -> _APIResponse:
18+
"""
19+
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/constants/definitions/list-marvis-client-events-definitions
20+
21+
PARAMS
22+
-----------
23+
mistapi.APISession : mist_session
24+
mistapi session including authentication and Mist host information
25+
26+
RETURN
27+
-----------
28+
mistapi.APIResponse
29+
response from the API call
30+
"""
31+
32+
uri = "/api/v1/const/marvisclient_events"
33+
query_params: dict[str, str] = {}
34+
resp = mist_session.mist_get(uri=uri, query=query_params)
35+
return resp

0 commit comments

Comments
 (0)