You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# MISTAPI - Python Package to use MIST API
2
-
2
+
3
3
4
4
## MIT LICENSE
5
-
5
+
6
6
Copyright (c) 2023 Thomas Munzer
7
7
8
8
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@@ -85,7 +85,7 @@ This class accepts different parameters, all optionals:
85
85
| logging_log_level | int | 10 | The minimum log level to log on the file, using `logging` schema (0 = Disabled, 10 = Debug, 20 = Info, 30 = Warning, 40 = Error, 50 = Critical). This is only used when the script calling `mistapi` is using Python `logging` package and is configured to log to a file |
86
86
| https_proxy | string | None | configure the package to use an HTTP/HTTPS (e.g. http://user:passowrd@myproxy.com:3128)|
87
87
88
-
### 2. `login()` function must be called to validate the authentication.
88
+
### 2. `login()` function must be called to validate the authentication.
89
89
90
90
#### 2.1. If the env file is provided and all the required information is valid, the session is validated:
91
91
```python3
@@ -116,7 +116,7 @@ True
116
116
4) Global 03 (host: api.ac2.mist.com)
117
117
5) Global 04 (host: api.gc2.mist.com)
118
118
119
-
Select a Cloud (0 to 5, or q to exit):
119
+
Select a Cloud (0 to 5, or q to exit):
120
120
```
121
121
* if not authentication (`apitoken` or `email`/`password`) has been configured, an interactive input will ask for it. If login/password authentication is used and 2FA is requested by the Mist Cloud, the 2FA code will be asked.
122
122
```python3
@@ -125,7 +125,7 @@ Select a Cloud (0 to 5, or q to exit):
@@ -175,7 +175,7 @@ Select a Site (0 to 6, or q to exit): 0
175
175
```
176
176
177
177
* get the next page orall the pages from a request
178
-
For some requests, the Mist Cloud is using pagination to limit the size of the response.
178
+
For some requests, the Mist Cloud is using pagination to limit the size of the response.
179
179
The required information the find the next page can either in the HTTP header (headers `X-Page-Total`, `X-Page-Limit`and`X-Page-Page`) orwith the `next` key in the JSON document.
180
180
To make it easier to request the next page orall the pages, the `mistapi` package is possessing the response to extract or generate the URI to retrieve the next page.
181
181
```python3
@@ -219,23 +219,23 @@ Help on function getOrgStats in module mistapi.api.v1.orgs.stats:
0 commit comments