@itentialopensource/adapter-meraki 0.8.0 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
package/PROPERTIES.md ADDED
@@ -0,0 +1,641 @@
1
+ ## Configuration
2
+
3
+ This section defines **all** the properties that are available for the adapter, including detailed information on what each property is for. If you are not using certain capabilities with this adapter, you do not need to define all of the properties. An example of how the properties for this adapter can be used with tests or IAP are provided in the sampleProperties.
4
+
5
+ ```json
6
+ {
7
+ "id": "ALL ADAPTER PROPERTIES!!!",
8
+ "properties": {
9
+ "host": "system.access.resolved",
10
+ "port": 443,
11
+ "base_path": "/",
12
+ "version": "v1",
13
+ "cache_location": "local",
14
+ "encode_pathvars": true,
15
+ "encode_queryvars": true,
16
+ "save_metric": true,
17
+ "stub": false,
18
+ "protocol": "https",
19
+ "authentication": {
20
+ "auth_method": "basic user_password",
21
+ "username": "username",
22
+ "password": "password",
23
+ "token": "token",
24
+ "invalid_token_error": 401,
25
+ "token_timeout": 0,
26
+ "token_cache": "local",
27
+ "auth_field": "header.headers.X-AUTH-TOKEN",
28
+ "auth_field_format": "{token}",
29
+ "auth_logging": false,
30
+ "client_id": "",
31
+ "client_secret": "",
32
+ "grant_type": ""
33
+ },
34
+ "healthcheck": {
35
+ "type": "startup",
36
+ "frequency": 300000,
37
+ "query_object": {}
38
+ },
39
+ "request": {
40
+ "number_redirects": 0,
41
+ "number_retries": 3,
42
+ "limit_retry_error": [401],
43
+ "failover_codes": [404, 405],
44
+ "attempt_timeout": 5000,
45
+ "global_request": {
46
+ "payload": {},
47
+ "uriOptions": {},
48
+ "addlHeaders": {},
49
+ "authData": {}
50
+ },
51
+ "healthcheck_on_timeout": false,
52
+ "return_raw": false,
53
+ "archiving": false,
54
+ "return_request": false
55
+ },
56
+ "ssl": {
57
+ "ecdhCurve": "",
58
+ "enabled": false,
59
+ "accept_invalid_cert": false,
60
+ "ca_file": "",
61
+ "key_file": "",
62
+ "cert_file": "",
63
+ "secure_protocol": "",
64
+ "ciphers": ""
65
+ },
66
+ "throttle": {
67
+ "throttle_enabled": false,
68
+ "number_pronghorns": 1,
69
+ "sync_async": "sync",
70
+ "max_in_queue": 1000,
71
+ "concurrent_max": 1,
72
+ "expire_timeout": 0,
73
+ "avg_runtime": 200,
74
+ "priorities": []
75
+ },
76
+ "proxy": {
77
+ "enabled": false,
78
+ "host": "localhost",
79
+ "port": 9999,
80
+ "protocol": "http",
81
+ "username": "",
82
+ "password": "",
83
+ },
84
+ "mongo": {
85
+ "host": "",
86
+ "port": 0,
87
+ "database": "",
88
+ "username": "",
89
+ "password": "",
90
+ "replSet": "",
91
+ "db_ssl": {
92
+ "enabled": false,
93
+ "accept_invalid_cert": false,
94
+ "ca_file": "",
95
+ "key_file": "",
96
+ "cert_file": ""
97
+ }
98
+ },
99
+ "devicebroker": {
100
+ "getDevice": [
101
+ {
102
+ "path": "/call/to/get/device/details",
103
+ "method": "GET",
104
+ "query": {},
105
+ "body": {},
106
+ "headers": {},
107
+ "handleFailure": "ignore",
108
+ "requestFields": {},
109
+ "responseFields": {}
110
+ }
111
+ ],
112
+ "getDevicesFiltered": [
113
+ {
114
+ "path": "/call/to/get/devices",
115
+ "method": "GET",
116
+ "query": {},
117
+ "body": {},
118
+ "headers": {},
119
+ "handleFailure": "ignore",
120
+ "requestFields": {},
121
+ "responseFields": {}
122
+ }
123
+ ],
124
+ "isAlive": [
125
+ {
126
+ "path": "/call/to/get/device/status",
127
+ "method": "GET",
128
+ "query": {},
129
+ "body": {},
130
+ "headers": {},
131
+ "handleFailure": "ignore",
132
+ "statusValue": "valueIfAlive"
133
+ "requestFields": {},
134
+ "responseFields": {}
135
+ }
136
+ ],
137
+ "getConfig": [
138
+ {
139
+ "path": "/call/to/get/device/config",
140
+ "method": "GET",
141
+ "query": {},
142
+ "body": {},
143
+ "headers": {},
144
+ "handleFailure": "ignore",
145
+ "requestFields": {},
146
+ "responseFields": {}
147
+ }
148
+ ],
149
+ "getCount": [
150
+ {
151
+ "path": "/call/to/get/devices",
152
+ "method": "GET",
153
+ "query": {},
154
+ "body": {},
155
+ "headers": {},
156
+ "handleFailure": "ignore"
157
+ }
158
+ ]
159
+ }
160
+ },
161
+ "type": "YOUR ADAPTER CLASS"
162
+ }
163
+ ```
164
+
165
+ ### Connection Properties
166
+
167
+ These base properties are used to connect to Meraki upon the adapter initially coming up. It is important to set these properties appropriately.
168
+
169
+ <table border="1" class="bordered-table">
170
+ <tr>
171
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
172
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
173
+ </tr>
174
+ <tr>
175
+ <td style="padding:15px">host</td>
176
+ <td style="padding:15px">Required. A fully qualified domain name or IP address.</td>
177
+ </tr>
178
+ <tr>
179
+ <td style="padding:15px">port</td>
180
+ <td style="padding:15px">Required. Used to connect to the server.</td>
181
+ </tr>
182
+ <tr>
183
+ <td style="padding:15px">base_path</td>
184
+ <td style="padding:15px">Optional. Used to define part of a path that is consistent for all or most endpoints. It makes the URIs easier to use and maintain but can be overridden on individual calls. An example **base_path** might be `/rest/api`. Default is ``.</td>
185
+ </tr>
186
+ <tr>
187
+ <td style="padding:15px">version</td>
188
+ <td style="padding:15px">Optional. Used to set a global version for action endpoints. This makes it faster to update the adapter when endpoints change. As with the base-path, version can be overridden on individual endpoints. Default is ``.</td>
189
+ </tr>
190
+ <tr>
191
+ <td style="padding:15px">cache_location</td>
192
+ <td style="padding:15px">Optional. Used to define where the adapter cache is located. The cache is used to maintain an entity list to improve performance. Storage locally is lost when the adapter is restarted. Storage in Redis is preserved upon adapter restart. Default is none which means no caching of the entity list.</td>
193
+ </tr>
194
+ <tr>
195
+ <td style="padding:15px">encode_pathvars</td>
196
+ <td style="padding:15px">Optional. Used to tell the adapter to encode path variables or not. The default behavior is to encode them so this property can be used to stop that behavior.</td>
197
+ </tr>
198
+ <tr>
199
+ <td style="padding:15px">encode_queryvars</td>
200
+ <td style="padding:15px">Optional. Used to tell the adapter to encode query parameters or not. The default behavior is to encode them so this property can be used to stop that behavior.</td>
201
+ </tr>
202
+ <tr>
203
+ <td style="padding:15px">save_metric</td>
204
+ <td style="padding:15px">Optional. Used to tell the adapter to save metric information (this does not impact metrics returned on calls). This allows the adapter to gather metrics over time. Metric data can be stored in a database or on the file system.</td>
205
+ </tr>
206
+ <tr>
207
+ <td style="padding:15px">stub</td>
208
+ <td style="padding:15px">Optional. Indicates whether the stub should run instead of making calls to Meraki (very useful during basic testing). Default is false (which means connect to Meraki).</td>
209
+ </tr>
210
+ <tr>
211
+ <td style="padding:15px">protocol</td>
212
+ <td style="padding:15px">Optional. Notifies the adapter whether to use HTTP or HTTPS. Default is HTTP.</td>
213
+ </tr>
214
+ </table>
215
+ <br>
216
+
217
+ A connectivity check tells IAP the adapter has loaded successfully.
218
+
219
+ ### Authentication Properties
220
+
221
+ The following properties are used to define the authentication process to Meraki.
222
+
223
+ >**Note**: Depending on the method that is used to authenticate with Meraki, you may not need to set all of the authentication properties.
224
+
225
+ <table border="1" class="bordered-table">
226
+ <tr>
227
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
228
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
229
+ </tr>
230
+ <tr>
231
+ <td style="padding:15px">auth_method</td>
232
+ <td style="padding:15px">Required. Used to define the type of authentication currently supported. Authentication methods currently supported are: `basic user_password`, `static_token`, `request_token`, and `no_authentication`.</td>
233
+ </tr>
234
+ <tr>
235
+ <td style="padding:15px">username</td>
236
+ <td style="padding:15px">Used to authenticate with Meraki on every request or when pulling a token that will be used in subsequent requests.</td>
237
+ </tr>
238
+ <tr>
239
+ <td style="padding:15px">password</td>
240
+ <td style="padding:15px">Used to authenticate with Meraki on every request or when pulling a token that will be used in subsequent requests.</td>
241
+ </tr>
242
+ <tr>
243
+ <td style="padding:15px">token</td>
244
+ <td style="padding:15px">Defines a static token that can be used on all requests. Only used with `static_token` as an authentication method (auth\_method).</td>
245
+ </tr>
246
+ <tr>
247
+ <td style="padding:15px">invalid_token_error</td>
248
+ <td style="padding:15px">Defines the HTTP error that is received when the token is invalid. Notifies the adapter to pull a new token and retry the request. Default is 401.</td>
249
+ </tr>
250
+ <tr>
251
+ <td style="padding:15px">token_timeout</td>
252
+ <td style="padding:15px">Defines how long a token is valid. Measured in milliseconds. Once a dynamic token is no longer valid, the adapter has to pull a new token. If the token_timeout is set to -1, the adapter will pull a token on every request to Meraki. If the timeout_token is 0, the adapter will use the expiration from the token response to determine when the token is no longer valid.</td>
253
+ </tr>
254
+ <tr>
255
+ <td style="padding:15px">token_cache</td>
256
+ <td style="padding:15px">Used to determine where the token should be stored (local memory or in Redis).</td>
257
+ </tr>
258
+ <tr>
259
+ <td style="padding:15px">auth_field</td>
260
+ <td style="padding:15px">Defines the request field the authentication (e.g., token are basic auth credentials) needs to be placed in order for the calls to work.</td>
261
+ </tr>
262
+ <tr>
263
+ <td style="padding:15px">auth_field_format</td>
264
+ <td style="padding:15px">Defines the format of the auth\_field. See examples below. Items enclosed in {} inform the adapter to perofrm an action prior to sending the data. It may be to replace the item with a value or it may be to encode the item.</td>
265
+ </tr>
266
+ <tr>
267
+ <td style="padding:15px">auth_logging</td>
268
+ <td style="padding:15px">Setting this true will add some additional logs but this should only be done when trying to debug an issue as certain credential information may be logged out when this is true.</td>
269
+ </tr>
270
+ <tr>
271
+ <td style="padding:15px">client_id</td>
272
+ <td style="padding:15px">Provide a client id when needed, this is common on some types of OAuth.</td>
273
+ </tr>
274
+ <tr>
275
+ <td style="padding:15px">client_secret</td>
276
+ <td style="padding:15px">Provide a client secret when needed, this is common on some types of OAuth.</td>
277
+ </tr>
278
+ <tr>
279
+ <td style="padding:15px">grant_type</td>
280
+ <td style="padding:15px">Provide a grant type when needed, this is common on some types of OAuth.</td>
281
+ </tr>
282
+ </table>
283
+ <br>
284
+
285
+ #### Examples of authentication field format
286
+
287
+ ```json
288
+ "{token}"
289
+ "Token {token}"
290
+ "{username}:{password}"
291
+ "Basic {b64}{username}:{password}{/b64}"
292
+ ```
293
+
294
+ ### Healthcheck Properties
295
+
296
+ The healthcheck properties defines the API that runs the healthcheck to tell the adapter that it can reach Meraki. There are currently three types of healthchecks.
297
+
298
+ - None - Not recommended. Adapter will not run a healthcheck. Consequently, unable to determine before making a request if the adapter can reach Meraki.
299
+ - Startup - Adapter will check for connectivity when the adapter initially comes up, but it will not check afterwards.
300
+ - Intermittent - Adapter will check connectivity to Meraki at a frequency defined in the `frequency` property.
301
+
302
+ <table border="1" class="bordered-table">
303
+ <tr>
304
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
305
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
306
+ </tr>
307
+ <tr>
308
+ <td style="padding:15px">type</td>
309
+ <td style="padding:15px">Required. The type of health check to run.</td>
310
+ </tr>
311
+ <tr>
312
+ <td style="padding:15px">frequency</td>
313
+ <td style="padding:15px">Required if intermittent. Defines how often the health check should run. Measured in milliseconds. Default is 300000.</td>
314
+ </tr>
315
+ <tr>
316
+ <td style="padding:15px">query_object</td>
317
+ <td style="padding:15px">Query parameters to be added to the adapter healthcheck call.</td>
318
+ </tr>
319
+ </table>
320
+ <br>
321
+
322
+ ### Request Properties
323
+
324
+ The request section defines properties to help handle requests.
325
+
326
+ <table border="1" class="bordered-table">
327
+ <tr>
328
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
329
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
330
+ </tr>
331
+ <tr>
332
+ <td style="padding:15px">number_redirects</td>
333
+ <td style="padding:15px">Optional. Tells the adapter that the request may be redirected and gives it a maximum number of redirects to allow before returning an error. Default is 0 - no redirects.</td>
334
+ </tr>
335
+ <tr>
336
+ <td style="padding:15px">number_retries</td>
337
+ <td style="padding:15px">Tells the adapter how many times to retry a request that has either aborted or reached a limit error before giving up and returning an error.</td>
338
+ </tr>
339
+ <tr>
340
+ <td style="padding:15px">limit_retry_error</td>
341
+ <td style="padding:15px">Optional. Can be either an integer or an array. Indicates the http error status number to define that no capacity was available and, after waiting a short interval, the adapter can retry the request. If an array is provvided, the array can contain integers or strings. Strings in the array are used to define ranges (e.g. "502-506"). Default is [0].</td>
342
+ </tr>
343
+ <tr>
344
+ <td style="padding:15px">failover_codes</td>
345
+ <td style="padding:15px">An array of error codes for which the adapter will send back a failover flag to IAP so that the Platform can attempt the action in another adapter.</td>
346
+ </tr>
347
+ <tr>
348
+ <td style="padding:15px">attempt_timeout</td>
349
+ <td style="padding:15px">Optional. Tells how long the adapter should wait before aborting the attempt. On abort, the adapter will do one of two things: 1) return the error; or 2) if **healthcheck\_on\_timeout** is set to true, it will abort the request and run a Healthcheck until it re-establishes connectivity to Meraki, and then will re-attempt the request that aborted. Default is 5000 milliseconds.</td>
350
+ </tr>
351
+ <tr>
352
+ <td style="padding:15px">global_request</td>
353
+ <td style="padding:15px">Optional. This is information that the adapter can include in all requests to the other system. This is easier to define and maintain than adding this information in either the code (adapter.js) or the action files.</td>
354
+ </tr>
355
+ <tr>
356
+ <td style="padding:15px">global_request -> payload</td>
357
+ <td style="padding:15px">Optional. Defines any information that should be included on all requests sent to the other system that have a payload/body.</td>
358
+ </tr>
359
+ <tr>
360
+ <td style="padding:15px">global_request -> uriOptions</td>
361
+ <td style="padding:15px">Optional. Defines any information that should be sent as untranslated query options (e.g. page, size) on all requests to the other system.</td>
362
+ </tr>
363
+ <tr>
364
+ <td style="padding:15px">global_request -> addlHeaders</td>
365
+ <td style="padding:15px">Optioonal. Defines any headers that should be sent on all requests to the other system.</td>
366
+ </tr>
367
+ <tr>
368
+ <td style="padding:15px">global_request -> authData</td>
369
+ <td style="padding:15px">Optional. Defines any additional authentication data used to authentice with the other system. This authData needs to be consistent on every request.</td>
370
+ </tr>
371
+ <tr>
372
+ <td style="padding:15px">healthcheck_on_timeout</td>
373
+ <td style="padding:15px">Required. Defines if the adapter should run a health check on timeout. If set to true, the adapter will abort the request and run a health check until it re-establishes connectivity and then it will re-attempt the request.</td>
374
+ </tr>
375
+ <tr>
376
+ <td style="padding:15px">return_raw</td>
377
+ <td style="padding:15px">Optional. Tells the adapter whether the raw response should be returned as well as the IAP response. This is helpful when running integration tests to save mock data. It does add overhead to the response object so it is not ideal from production.</td>
378
+ </tr>
379
+ <tr>
380
+ <td style="padding:15px">archiving</td>
381
+ <td style="padding:15px">Optional flag. Default is false. It archives the request, the results and the various times (wait time, Meraki time and overall time) in the `adapterid_results` collection in MongoDB. Although archiving might be desirable, be sure to develop a strategy before enabling this capability. Consider how much to archive and what strategy to use for cleaning up the collection in the database so that it does not become too large, especially if the responses are large.</td>
382
+ </tr>
383
+ <tr>
384
+ <td style="padding:15px">return_request</td>
385
+ <td style="padding:15px">Optional flag. Default is false. Will return the actual request that is made including headers. This should only be used during debugging issues as there could be credentials in the actual request.</td>
386
+ </tr>
387
+ </table>
388
+ <br>
389
+
390
+ ### SSL Properties
391
+
392
+ The SSL section defines the properties utilized for ssl authentication with Meraki. SSL can work two different ways: set the `accept\_invalid\_certs` flag to true (only recommended for lab environments), or provide a `ca\_file`.
393
+
394
+ <table border="1" class="bordered-table">
395
+ <tr>
396
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
397
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
398
+ </tr>
399
+ <tr>
400
+ <td style="padding:15px">enabled</td>
401
+ <td style="padding:15px">If SSL is required, set to true.</td>
402
+ </tr>
403
+ <tr>
404
+ <td style="padding:15px">accept_invalid_certs</td>
405
+ <td style="padding:15px">Defines if the adapter should accept invalid certificates (only recommended for lab environments). Required if SSL is enabled. Default is false.</td>
406
+ </tr>
407
+ <tr>
408
+ <td style="padding:15px">ca_file</td>
409
+ <td style="padding:15px">Defines the path name to the CA file used for SSL. If SSL is enabled and the accept invalid certifications is false, then ca_file is required.</td>
410
+ </tr>
411
+ <tr>
412
+ <td style="padding:15px">key_file</td>
413
+ <td style="padding:15px">Defines the path name to the Key file used for SSL. The key_file may be needed for some systems but it is not required for SSL.</td>
414
+ </tr>
415
+ <tr>
416
+ <td style="padding:15px">cert_file</td>
417
+ <td style="padding:15px">Defines the path name to the Certificate file used for SSL. The cert_file may be needed for some systems but it is not required for SSL.</td>
418
+ </tr>
419
+ <tr>
420
+ <td style="padding:15px">secure_protocol</td>
421
+ <td style="padding:15px">Defines the protocol (e.g., SSLv3_method) to use on the SSL request.</td>
422
+ </tr>
423
+ <tr>
424
+ <td style="padding:15px">ciphers</td>
425
+ <td style="padding:15px">Required if SSL enabled. Specifies a list of SSL ciphers to use.</td>
426
+ </tr>
427
+ <tr>
428
+ <td style="padding:15px">ecdhCurve</td>
429
+ <td style="padding:15px">During testing on some Node 8 environments, you need to set `ecdhCurve` to auto. If you do not, you will receive PROTO errors when attempting the calls. This is the only usage of this property and to our knowledge it only impacts Node 8 and 9.</td>
430
+ </tr>
431
+ </table>
432
+ <br>
433
+
434
+ ### Throttle Properties
435
+
436
+ The throttle section is used when requests to Meraki must be queued (throttled). All of the properties in this section are optional.
437
+
438
+ <table border="1" class="bordered-table">
439
+ <tr>
440
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
441
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
442
+ </tr>
443
+ <tr>
444
+ <td style="padding:15px">throttle_enabled</td>
445
+ <td style="padding:15px">Default is false. Defines if the adapter should use throttling or not.</td>
446
+ </tr>
447
+ <tr>
448
+ <td style="padding:15px">number_pronghorns</td>
449
+ <td style="padding:15px">Default is 1. Defines if throttling is done in a single Itential instance or whether requests are being throttled across multiple Itential instances (minimum = 1, maximum = 20). Throttling in a single Itential instance uses an in-memory queue so there is less overhead. Throttling across multiple Itential instances requires placing the request and queue information into a shared resource (e.g. database) so that each instance can determine what is running and what is next to run. Throttling across multiple instances requires additional I/O overhead.</td>
450
+ </tr>
451
+ <tr>
452
+ <td style="padding:15px">sync-async</td>
453
+ <td style="padding:15px">This property is not used at the current time (it is for future expansion of the throttling engine).</td>
454
+ </tr>
455
+ <tr>
456
+ <td style="padding:15px">max_in_queue</td>
457
+ <td style="padding:15px">Represents the maximum number of requests the adapter should allow into the queue before rejecting requests (minimum = 1, maximum = 5000). This is not a limit on what the adapter can handle but more about timely responses to requests. The default is currently 1000.</td>
458
+ </tr>
459
+ <tr>
460
+ <td style="padding:15px">concurrent_max</td>
461
+ <td style="padding:15px">Defines the number of requests the adapter can send to Meraki at one time (minimum = 1, maximum = 1000). The default is 1 meaning each request must be sent to Meraki in a serial manner.</td>
462
+ </tr>
463
+ <tr>
464
+ <td style="padding:15px">expire_timeout</td>
465
+ <td style="padding:15px">Default is 0. Defines a graceful timeout of the request session. After a request has completed, the adapter will wait additional time prior to sending the next request. Measured in milliseconds (minimum = 0, maximum = 60000).</td>
466
+ </tr>
467
+ <tr>
468
+ <td style="padding:15px">average_runtime</td>
469
+ <td style="padding:15px">Represents the approximate average of how long it takes Meraki to handle each request. Measured in milliseconds (minimum = 50, maximum = 60000). Default is 200. This metric has performance implications. If the runtime number is set too low, it puts extra burden on the CPU and memory as the requests will continually try to run. If the runtime number is set too high, requests may wait longer than they need to before running. The number does not need to be exact but your throttling strategy depends heavily on this number being within reason. If averages range from 50 to 250 milliseconds you might pick an average run-time somewhere in the middle so that when Meraki performance is exceptional you might run a little slower than you might like, but when it is poor you still run efficiently.</td>
470
+ </tr>
471
+ <tr>
472
+ <td style="padding:15px">priorities</td>
473
+ <td style="padding:15px">An array of priorities and how to handle them in relation to the throttle queue. Array of objects that include priority value and percent of queue to put the item ex { value: 1, percent: 10 }</td>
474
+ </tr>
475
+ </table>
476
+ <br>
477
+
478
+ ### Proxy Properties
479
+
480
+ The proxy section defines the properties to utilize when Meraki is behind a proxy server.
481
+
482
+ <table border="1" class="bordered-table">
483
+ <tr>
484
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
485
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
486
+ </tr>
487
+ <tr>
488
+ <td style="padding:15px">enabled</td>
489
+ <td style="padding:15px">Required. Default is false. If Meraki is behind a proxy server, set enabled flag to true.</td>
490
+ </tr>
491
+ <tr>
492
+ <td style="padding:15px">host</td>
493
+ <td style="padding:15px">Host information for the proxy server. Required if `enabled` is true.</td>
494
+ </tr>
495
+ <tr>
496
+ <td style="padding:15px">port</td>
497
+ <td style="padding:15px">Port information for the proxy server. Required if `enabled` is true.</td>
498
+ </tr>
499
+ <tr>
500
+ <td style="padding:15px">protocol</td>
501
+ <td style="padding:15px">The protocol (i.e., http, https, etc.) used to connect to the proxy. Default is http.</td>
502
+ </tr>
503
+ <tr>
504
+ <td style="padding:15px">username</td>
505
+ <td style="padding:15px">If there is authentication for the proxy, provide the username here.</td>
506
+ </tr>
507
+ <tr>
508
+ <td style="padding:15px">password</td>
509
+ <td style="padding:15px">If there is authentication for the proxy, provide the password here.</td>
510
+ </tr>
511
+ </table>
512
+ <br>
513
+
514
+ ### Mongo Properties
515
+
516
+ The mongo section defines the properties used to connect to a Mongo database. Mongo can be used for throttling as well as to persist metric data. If not provided, metrics will be stored in the file system.
517
+
518
+ <table border="1" class="bordered-table">
519
+ <tr>
520
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
521
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
522
+ </tr>
523
+ <tr>
524
+ <td style="padding:15px">host</td>
525
+ <td style="padding:15px">Optional. Host information for the mongo server.</td>
526
+ </tr>
527
+ <tr>
528
+ <td style="padding:15px">port</td>
529
+ <td style="padding:15px">Optional. Port information for the mongo server.</td>
530
+ </tr>
531
+ <tr>
532
+ <td style="padding:15px">database</td>
533
+ <td style="padding:15px">Optional. The database for the adapter to use for its data.</td>
534
+ </tr>
535
+ <tr>
536
+ <td style="padding:15px">username</td>
537
+ <td style="padding:15px">Optional. If credentials are required to access mongo, this is the user to login as.</td>
538
+ </tr>
539
+ <tr>
540
+ <td style="padding:15px">password</td>
541
+ <td style="padding:15px">Optional. If credentials are required to access mongo, this is the password to login with.</td>
542
+ </tr>
543
+ <tr>
544
+ <td style="padding:15px">replSet</td>
545
+ <td style="padding:15px">Optional. If the database is set up to use replica sets, define it here so it can be added to the database connection.</td>
546
+ </tr>
547
+ <tr>
548
+ <td style="padding:15px">db_ssl</td>
549
+ <td style="padding:15px">Optional. Contains information for SSL connectivity to the database.</td>
550
+ </tr>
551
+ <tr>
552
+ <td style="padding:15px">db_ssl -> enabled</td>
553
+ <td style="padding:15px">If SSL is required, set to true.</td>
554
+ </tr>
555
+ <tr>
556
+ <td style="padding:15px">db_ssl -> accept_invalid_cert</td>
557
+ <td style="padding:15px">Defines if the adapter should accept invalid certificates (only recommended for lab environments). Required if SSL is enabled. Default is false.</td>
558
+ </tr>
559
+ <tr>
560
+ <td style="padding:15px">db_ssl -> ca_file</td>
561
+ <td style="padding:15px">Defines the path name to the CA file used for SSL. If SSL is enabled and the accept invalid certifications is false, then ca_file is required.</td>
562
+ </tr>
563
+ <tr>
564
+ <td style="padding:15px">db_ssl -> key_file</td>
565
+ <td style="padding:15px">Defines the path name to the Key file used for SSL. The key_file may be needed for some systems but it is not required for SSL.</td>
566
+ </tr>
567
+ <tr>
568
+ <td style="padding:15px">db_ssl -> cert_file</td>
569
+ <td style="padding:15px">Defines the path name to the Certificate file used for SSL. The cert_file may be needed for some systems but it is not required for SSL.</td>
570
+ </tr>
571
+ </table>
572
+ <br>
573
+
574
+ ### Device Broker Properties
575
+
576
+ The device broker section defines the properties used integrate Meraki to the device broker. Each broker call is represented and has an array of calls that can be used to build the response. This describes the calls and then the fields which are available in the calls.
577
+
578
+ <table border="1" class="bordered-table">
579
+ <tr>
580
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
581
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
582
+ </tr>
583
+ <tr>
584
+ <td style="padding:15px">getDevice</td>
585
+ <td style="padding:15px">The array of calls used to get device details for the broker</td>
586
+ </tr>
587
+ <tr>
588
+ <td style="padding:15px">getDevicesFiltered</td>
589
+ <td style="padding:15px">The array of calls used to get devices for the broker</td>
590
+ </tr>
591
+ <tr>
592
+ <td style="padding:15px">isAlive</td>
593
+ <td style="padding:15px">The array of calls used to get device status for the broker</td>
594
+ </tr>
595
+ <tr>
596
+ <td style="padding:15px">getConfig</td>
597
+ <td style="padding:15px">The array of calls used to get device configuration for the broker</td>
598
+ </tr>
599
+ <tr>
600
+ <td style="padding:15px">getCount</td>
601
+ <td style="padding:15px">The array of calls used to get device configuration for the broker</td>
602
+ </tr>
603
+ <tr>
604
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> path</td>
605
+ <td style="padding:15px">The path, not including the base_path and version, for making this call</td>
606
+ </tr>
607
+ <tr>
608
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> method</td>
609
+ <td style="padding:15px">The rest method for making this call</td>
610
+ </tr>
611
+ <tr>
612
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> query</td>
613
+ <td style="padding:15px">Query object containing and query parameters and their values for this call</td>
614
+ </tr>
615
+ <tr>
616
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> body</td>
617
+ <td style="padding:15px">Body object containing the payload for this call</td>
618
+ </tr>
619
+ <tr>
620
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> headers</td>
621
+ <td style="padding:15px">Header object containing the headers for this call.</td>
622
+ </tr>
623
+ <tr>
624
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> handleFailure</td>
625
+ <td style="padding:15px">Tells the adapter whether to "fail" or "ignore" failures if they occur.</td>
626
+ </tr>
627
+ <tr>
628
+ <td style="padding:15px">isAlive -> statusValue</td>
629
+ <td style="padding:15px">Tells the adapter what value to look for in the status field to determine if the device is alive.</td>
630
+ </tr>
631
+ <tr>
632
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig -> requestFields</td>
633
+ <td style="padding:15px">Object containing fields the adapter should send on the request and where it should get the data. The where can be from a response to a getDevicesFiltered or a static value.</td>
634
+ </tr>
635
+ <tr>
636
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig -> responseFields</td>
637
+ <td style="padding:15px">Object containing fields the adapter should set to send back to iap and where the value should come from in the response or request data.</td>
638
+ </tr>
639
+ </table>
640
+ <br>
641
+