@@ -89,3 +89,91 @@ def createSiteMapStack(
8989 uri = f"/api/v1/sites/{ site_id } /mapstacks"
9090 resp = mist_session .mist_post (uri = uri , body = body )
9191 return resp
92+
93+
94+ def getSiteMapStack (
95+ mist_session : _APISession , site_id : str , mapstack_id : str
96+ ) -> _APIResponse :
97+ """
98+ API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/sites/map-stacks/get-site-map-stack
99+
100+ PARAMS
101+ -----------
102+ mistapi.APISession : mist_session
103+ mistapi session including authentication and Mist host information
104+
105+ PATH PARAMS
106+ -----------
107+ site_id : str
108+ mapstack_id : str
109+
110+ RETURN
111+ -----------
112+ mistapi.APIResponse
113+ response from the API call
114+ """
115+
116+ uri = f"/api/v1/sites/{ site_id } /mapstacks/{ mapstack_id } "
117+ query_params : dict [str , str ] = {}
118+ resp = mist_session .mist_get (uri = uri , query = query_params )
119+ return resp
120+
121+
122+ def deleteSiteMapStack (
123+ mist_session : _APISession , site_id : str , mapstack_id : str
124+ ) -> _APIResponse :
125+ """
126+ API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/sites/map-stacks/delete-site-map-stack
127+
128+ PARAMS
129+ -----------
130+ mistapi.APISession : mist_session
131+ mistapi session including authentication and Mist host information
132+
133+ PATH PARAMS
134+ -----------
135+ site_id : str
136+ mapstack_id : str
137+
138+ RETURN
139+ -----------
140+ mistapi.APIResponse
141+ response from the API call
142+ """
143+
144+ uri = f"/api/v1/sites/{ site_id } /mapstacks/{ mapstack_id } "
145+ query_params : dict [str , str ] = {}
146+ resp = mist_session .mist_delete (uri = uri , query = query_params )
147+ return resp
148+
149+
150+ def updateSiteMapStack (
151+ mist_session : _APISession , site_id : str , mapstack_id : str , body : dict
152+ ) -> _APIResponse :
153+ """
154+ API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/sites/map-stacks/update-site-map-stack
155+
156+ PARAMS
157+ -----------
158+ mistapi.APISession : mist_session
159+ mistapi session including authentication and Mist host information
160+
161+ PATH PARAMS
162+ -----------
163+ site_id : str
164+ mapstack_id : str
165+
166+ BODY PARAMS
167+ -----------
168+ body : dict
169+ JSON object to send to Mist Cloud (see API doc above for more details)
170+
171+ RETURN
172+ -----------
173+ mistapi.APIResponse
174+ response from the API call
175+ """
176+
177+ uri = f"/api/v1/sites/{ site_id } /mapstacks/{ mapstack_id } "
178+ resp = mist_session .mist_put (uri = uri , body = body )
179+ return resp
0 commit comments