-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
37 lines (25 loc) · 1.06 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Constants
# Meraki dashboard API key, set either at instantiation or as an environment variable
API_KEY = 'PASTE_YOUR_MERAKI_API_KEY_HERE'
# Base URL preceding all endpoint resources
DEFAULT_BASE_URL = 'https://api.meraki.com/api/v1'
# Maximum number of seconds for each API call
SINGLE_REQUEST_TIMEOUT = 60
# Path for TLS/SSL certificate verification if behind local proxy
CERTIFICATE_PATH = ''
# Retry if 429 rate limit error encountered?
WAIT_ON_RATE_LIMIT = True
# Retry up to this many times when encountering 429s or other server-side errors
MAXIMUM_RETRIES = 2
# Create an output log file?
OUTPUT_LOG = False
# Path to output log; by default, working directory of script if not specified
LOG_PATH = ''
# Log file name appended with date and timestamp
LOG_FILE_PREFIX = 'meraki_api'
# If output log used, output to console too?
PRINT_TO_CONSOLE = False
# Simulate POST/PUT/DELETE calls to prevent changes?
SIMULATE_API_CALLS = False
# Output CSV format filename for Meraki devices list
OUTPUT_FILENAME = "meraki_devices.csv"