Skip to content

Commit 8e169a0

Browse files
committed
0.54.2
1 parent db85f56 commit 8e169a0

35 files changed

+166
-342
lines changed

mist_openapi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 911de74a176cc45da2c167d071f4775ae18746e6
1+
Subproject commit 4ee057410f45f51b85af299a2c99e963ea331c44

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "mistapi"
10-
version = "0.54.1"
10+
version = "0.54.2"
1111
authors = [{name="Thomas Munzer", email="tmunzer@juniper.net"}]
1212
description = "Python package to simplify the Mist System APIs usage"
1313
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.54.1"
1+
__version__ = "0.54.2"
22
__author__ = "Thomas Munzer <tmunzer@juniper.net>"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ def addInstallerDeviceImageFile(mist_session:_APISession, org_id:str, image_name
218218
BODY PARAMS
219219
-----------
220220
auto_deviceprofile_assignment : bool
221-
whether to auto assign device to deviceprofile by name
221+
Whether to auto assign device to deviceprofile by name
222222
csv : str
223-
path to the file to upload. csv file for ap name mapping, optional
223+
path to the file to upload. CSV file for ap name mapping, optional
224224
file : str
225-
path to the file to upload. ekahau or ibwave file
225+
path to the file to upload. Ekahau or ibwave file
226226
json : any
227227
228228
RETURN

src/mistapi/api/v1/installer/orgs/sites.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ def importInstallerMapFile(mist_session:_APISession, org_id:str, site_name:str,
106106
BODY PARAMS
107107
-----------
108108
auto_deviceprofile_assignment : bool
109-
whether to auto assign device to deviceprofile by name
109+
Whether to auto assign device to deviceprofile by name
110110
csv : str
111-
path to the file to upload. csv file for ap name mapping, optional
111+
path to the file to upload. CSV file for ap name mapping, optional
112112
file : str
113-
path to the file to upload. ekahau or ibwave file
113+
path to the file to upload. Ekahau or ibwave file
114114
json : any
115115
116116
RETURN

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def listMspAuditLogs(mist_session:_APISession, msp_id:str, site_id:str=None, adm
3333
admin_name : str
3434
message : str
3535
sort : str{'-timestamp', 'admin_id', 'site_id', 'timestamp'}
36-
sort order
36+
Sort order
3737
start : int
3838
end : int
3939
duration : str, default: 1d

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def searchMspOrgs(mist_session:_APISession, msp_id:str, name:str=None, org_id:st
111111
sub_insufficient : bool
112112
trial_enabled : bool
113113
usage_types : list
114-
a list of types that enabled by usage
114+
List of types that enabled by usage
115115
limit : int, default: 100
116116
117117
RETURN

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def searchMspOrgGroup(mist_session:_APISession, msp_id:str, type:str, q:str=None
3030
QUERY PARAMS
3131
------------
3232
type : str{'orgs'}
33-
orgs
33+
Orgs
3434
q : str
3535
limit : int, default: 100
3636
start : int

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def listOrgSuppressedAlarms(mist_session:_APISession, org_id:str, scope:str="sit
8787
QUERY PARAMS
8888
------------
8989
scope : str{'org', 'site'}, default: site
90-
returns both scopes if not specified
90+
Returns both scopes if not specified
9191
9292
RETURN
9393
-----------

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,32 @@ def claimOrgLicense(mist_session:_APISession, org_id:str, body:object) -> _APIRe
4040
uri = f"/api/v1/orgs/{org_id}/claim"
4141
resp = mist_session.mist_post(uri=uri, body=body)
4242
return resp
43+
44+
def GetOrgLicenseAsyncClaimStatus(mist_session:_APISession, org_id:str, detail:bool=None) -> _APIResponse:
45+
"""
46+
API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/licenses/get-org-license-async-claim-status
47+
48+
PARAMS
49+
-----------
50+
mistapi.APISession : mist_session
51+
mistapi session including authentication and Mist host information
52+
53+
PATH PARAMS
54+
-----------
55+
org_id : str
56+
57+
QUERY PARAMS
58+
------------
59+
detail : bool
60+
61+
RETURN
62+
-----------
63+
mistapi.APIResponse
64+
response from the API call
65+
"""
66+
uri = f"/api/v1/orgs/{org_id}/claim/status"
67+
query_params={}
68+
if detail: query_params["detail"]=detail
69+
resp = mist_session.mist_get(uri=uri, query=query_params)
70+
return resp
4371

0 commit comments

Comments
 (0)