-
Notifications
You must be signed in to change notification settings - Fork 2
/
config-configurator.schema.json
812 lines (812 loc) · 51.6 KB
/
config-configurator.schema.json
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
{
"$id": "https://developer.microsoft.com/wifi-ztp/ztpd/config-configurator.schema.json",
"$schema": "http://json-schema.org/draft-07/schema",
"default": {},
"description": "ztpd Device Provisioning Protocol (DPP) configurator role configuration.",
"examples": [
{
"bootstrap.info": {
"expirationTime": 1440,
"providers": [
{
"type": "file",
"name": "azure-dps-records",
"expirationTime": 300,
"path": "/etc/ztpd/config-bootstrapinfo.json",
"decodingInfo": {
"pointer": "/",
"pointerBase": "/optionalDeviceInformation/WifiDpp",
"propertyMap": {
"dppUri": "Uri",
"publicKeyHash": "BootstrapKeyEccPubHashChirp"
}
}
},
{
"type": "azuredps",
"name": "Azure DPS (SAS Authentication)",
"expirationTime": 600,
"serviceEndpointUri": "wifizerotouch.azure-devices-provisioning.net",
"authentication": {
"authorityUrl": "https://login.microsoftonline.com/ceb07937-2105-4e4a-aade-3b8b5c8b1208/oauth2/v2.0/token",
"connectionString": "HostName=wifizerotouch.azure-devices-provisioning.net;SharedAccessKeyName=serviceread;SharedAccessKey=ab+CD0/eFghIJkLm1NoP2qRsTU3PlaCeHOLdErGHIJk="
}
},
{
"type": "azuredps",
"name": "Azure DPS (OAuth2 Authentication)",
"expirationTime": 900,
"serviceEndpointUri": "wifizerotouch.azure-devices-provisioning.net",
"authentication": {
"authorityUrl": "https://login.microsoftonline.com/ceb07937-2105-4e4a-aade-3b8b5c8b1208/oauth2/v2.0/token",
"clientId": "fd9d9681-8b12-4971-854a-ae16a2fff32d",
"clientSecret": "3cgcxvQ9--PlaCeholdErnkeR_G3.7eD-2",
"resourceUri": "https://azure-devices-provisioning.net/.default"
}
}
]
},
"network.configuration": {
"default": {
"discovery": {
"ssid": "xmarksthespot",
"ssidCharset": 106
},
"credentials": [
{
"akm": "psk",
"passphrase": "thetruthisoutthere"
},
{
"akm": "psk",
"psk": "746865747275746869736f75747468657265"
},
{
"akm": "sae",
"passphrase": "thetruthisoutthere"
}
]
}
}
}
],
"required": [
"bootstrap.info",
"network.configuration"
],
"title": "ztpd configurator configuration.",
"type": "object",
"properties": {
"bootstrap.info": {
"$id": "#/properties/bootstrap.info",
"default": {},
"description": "Device provisioning protocol bootstrapping information.",
"examples": [
{
"expirationTime": 1440,
"providers": [
{
"type": "file",
"name": "azure-dps-records",
"expirationTime": 300,
"path": "/etc/ztpd/config-bootstrapinfo.json",
"decodingInfo": {
"pointer": "/",
"pointerBase": "/optionalDeviceInformation/WifiDpp",
"propertyMap": {
"dppUri": "Uri",
"publicKeyHash": "BootstrapKeyEccPubHashChirp"
}
}
},
{
"type": "azuredps",
"name": "Azure DPS (SAS Authentication)",
"expirationTime": 600,
"serviceEndpointUri": "wifizerotouch.azure-devices-provisioning.net",
"authentication": {
"authorityUrl": "https://login.microsoftonline.com/ceb07937-2105-4e4a-aade-3b8b5c8b1208/oauth2/v2.0/token",
"connectionString": "HostName=wifizerotouch.azure-devices-provisioning.net;SharedAccessKeyName=serviceread;SharedAccessKey=ab+CD0/eFghIJkLm1NoP2qRsTU3PlaCeHOLdErGHIJk="
}
},
{
"type": "azuredps",
"name": "Azure DPS (OAuth2 Authentication)",
"expirationTime": 900,
"serviceEndpointUri": "wifizerotouch.azure-devices-provisioning.net",
"authentication": {
"authorityUrl": "https://login.microsoftonline.com/ceb07937-2105-4e4a-aade-3b8b5c8b1208/oauth2/v2.0/token",
"clientId": "fd9d9681-8b12-4971-854a-ae16a2fff32d",
"clientSecret": "3cgcxvQ9--PlaCeholdErnkeR_G3.7eD-2",
"resourceUri": "https://azure-devices-provisioning.net/.default"
}
}
]
}
],
"required": [
"expirationTime",
"providers"
],
"title": "Device Provisioning Protocol (DPP) bootstrapping information.",
"type": "object",
"properties": {
"expirationTime": {
"$id": "#/properties/bootstrap.info/properties/expirationTime",
"default": 0,
"description": "The global expiration time in minutes of bootstrapping records. If a specific provider does not specify an expiration time, this value is used.",
"examples": [
1440
],
"title": "Bootstrapping record expiration time (seconds).",
"type": "integer"
},
"providers": {
"$id": "#/properties/bootstrap.info/properties/providers",
"default": [],
"description": "Array of supported bootstrapping information providers. Each bootstrapping information provider manages records which describe the enrollee devices the configurator is capable of proivisioning.",
"examples": [
[
{
"type": "file",
"name": "azure-dps-records",
"expirationTime": 300,
"path": "/etc/ztpd/config-bootstrapinfo.json",
"decodingInfo": {
"pointer": "/",
"pointerBase": "/optionalDeviceInformation/WifiDpp",
"propertyMap": {
"dppUri": "Uri",
"publicKeyHash": "BootstrapKeyEccPubHashChirp"
}
}
},
{
"type": "azuredps",
"name": "Azure DPS (SAS Authentication)",
"expirationTime": 600,
"serviceEndpointUri": "wifizerotouch.azure-devices-provisioning.net",
"authentication": {
"authorityUrl": "https://login.microsoftonline.com/ceb07937-2105-4e4a-aade-3b8b5c8b1208/oauth2/v2.0/token",
"connectionString": "HostName=wifizerotouch.azure-devices-provisioning.net;SharedAccessKeyName=serviceread;SharedAccessKey=ab+CD0/eFghIJkLm1NoP2qRsTU3PlaCeHOLdErGHIJk="
}
}
]
],
"title": "Bootstrapping information providers.",
"type": "array",
"additionalItems": false,
"items": {
"$id": "#/properties/bootstrap.info/properties/providers/items",
"anyOf": [
{
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/0",
"default": {},
"description": "Bootstrapping information provider settings when type is 'file'.",
"examples": [
{
"type": "file",
"name": "azure-dps-records",
"expirationTime": 300,
"path": "/etc/ztpd/config-bootstrapinfo.json",
"decodingInfo": {
"pointer": "/",
"pointerBase": "/optionalDeviceInformation/WifiDpp",
"propertyMap": {
"dppUri": "Uri",
"publicKeyHash": "BootstrapKeyEccPubHashChirp"
}
}
}
],
"required": [
"type",
"name",
"expirationTime",
"path",
"decodingInfo"
],
"title": "File-based bootstrapping information provider configuration.",
"type": "object",
"properties": {
"type": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/0/properties/type",
"const": "file",
"default": "",
"description": "The type of bootstrapping information provider.",
"examples": [
"file"
],
"title": "Bootstrapping information provider type.",
"type": "string"
},
"name": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/0/properties/name",
"default": "",
"description": "The name to associate with this instance of the bootstrapping information provider. This name will appear in log messages to identify the provider in question.",
"examples": [
"azure-dps-records"
],
"title": "Bootstrapping information provider name.",
"type": "string"
},
"expirationTime": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/0/properties/expirationTime",
"default": 0,
"description": "The expiration time in minutes of bootstrapping records. If no value is specified, the records never expire and consequently will never be updated.",
"examples": [
300
],
"title": "Bootstrapping information provider record expiration time (seconds).",
"type": "integer"
},
"path": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/0/properties/path",
"default": "",
"description": "The absolute filesystem path to the json file containing bootstrapping information.",
"examples": [
"/etc/ztpd/config-bootstrapinfo.json"
],
"title": "Bootstrapping information file path.",
"type": "string"
},
"decodingInfo": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/0/properties/decodingInfo",
"type": "object",
"title": "Bootstrapping provider information decoding map.",
"description": "Information describing how to map objects in the file to required Device Provisioning Protocol (DPP) enrollee identification information.",
"default": {},
"examples": [
{
"pointer": "/",
"pointerBase": "/optionalDeviceInformation/WifiDpp",
"propertyMap": {
"dppUri": "Uri",
"publicKeyHash": "BootstrapKeyEccPubHashChirp"
}
}
],
"required": [
"pointer",
"pointerBase",
"propertyMap"
],
"properties": {
"pointer": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/0/properties/decodingInfo/properties/pointer",
"default": "",
"description": "A JSON pointer referencing the array that contains Device Provisioning Protocol (DPP) enrollee identification.",
"examples": [
"/"
],
"title": "Enrollee bootstrapping information array JSON pointer.",
"type": "string"
},
"pointerBase": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/0/properties/decodingInfo/properties/pointerBase",
"default": "",
"description": "A JSON pointer, relative to the JSON pointer specified in the \"pointer\" property, referencing the sub-object containing the Device Provisioning Protocol (DPP) enrollee identification information.",
"examples": [
"/optionalDeviceInformation/WifiDpp"
],
"title": "Enrollee bootstrapping information object JSON pointer.",
"type": "string"
},
"propertyMap": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/0/properties/decodingInfo/properties/propertyMap",
"default": {},
"description": "A table of properties mapping JSON property names to required Device Provisioning Protocol (DPP) values.",
"examples": [
{
"dppUri": "Uri",
"publicKeyHash": "BootstrapKeyEccPubHashChirp"
}
],
"required": [
"dppUri",
"publicKeyHash"
],
"title": "Device Provisioning Protocol (DPP) Enrollee property map.",
"type": "object",
"properties": {
"dppUri": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/0/properties/decodingInfo/properties/propertyMap/properties/dppUri",
"default": "",
"description": "The name of the JSON property which holds the Device Provisioning Protocol bootstrapping URI.",
"examples": [
"Uri"
],
"title": "Device Provisioning Protocol (DPP) Bootstrapping URI property name.",
"type": "string"
},
"publicKeyHash": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/0/properties/decodingInfo/properties/propertyMap/properties/publicKeyHash",
"default": "",
"description": "The name of the JSON property which holds the Device Provisioning Protocol (DPP) public bootstrapping key \"chirp\" hash.",
"examples": [
"BootstrapKeyEccPubHashChirp"
],
"title": "Device Provisioning Protocol (DPP) Bootstrapping public key chirp hash name.",
"type": "string"
}
}
}
}
}
}
},
{
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/1",
"default": {},
"description": "Bootstrapping information provider settings when type is 'azuredps' and uses Shared Access Signature (SAS) token authentication.",
"examples": [
{
"type": "azuredps",
"name": "Azure DPS (SAS Authentication)",
"expirationTime": 600,
"serviceEndpointUri": "wifizerotouch.azure-devices-provisioning.net",
"authentication": {
"authorityUrl": "https://login.microsoftonline.com/ceb07937-2105-4e4a-aade-3b8b5c8b1208/oauth2/v2.0/token",
"connectionString": "HostName=wifizerotouch.azure-devices-provisioning.net;SharedAccessKeyName=serviceread;SharedAccessKey=ab+CD0/eFghIJkLm1NoP2qRsTU3PlaCeHOLdErGHIJk="
}
}
],
"required": [
"type",
"name",
"serviceEndpointUri",
"authentication"
],
"title": "Azure Device Provisioning Service (DPS) based bootstrapping information provider configuration.",
"type": "object",
"properties": {
"type": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/1/properties/type",
"default": "",
"description": "The type of bootstrapping information provider.",
"examples": [
"azuredps"
],
"title": "Bootstrapping information provider type.",
"type": "string"
},
"name": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/1/properties/name",
"default": "",
"description": "The name to associate with this instance of the bootstrapping information provider. This name will appear in log messages to identify the provider in question.",
"examples": [
"Azure DPS (SAS Authentication)"
],
"title": "Bootstrapping information provider name.",
"type": "string"
},
"expirationTime": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/1/properties/expirationTime",
"default": 0,
"description": "The expiration time in minutes of bootstrapping records. If no value is specified, the records never expire and consequently will never be updated.",
"examples": [
600
],
"title": "Bootstrapping record expiration time (seconds).",
"type": "integer"
},
"serviceEndpointUri": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/1/properties/serviceEndpointUri",
"default": "",
"description": "The service endpoint URI of the Device Provisioning Service (DPS) instance.",
"examples": [
"wifizerotouch.azure-devices-provisioning.net"
],
"title": "Azure Device Provisioning Service (DPS) endpoint URI.",
"type": "string"
},
"authentication": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/1/properties/authentication",
"type": "object",
"title": "Shared Access Key (SAS) authentication configuration.",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
{
"authorityUrl": "https://login.microsoftonline.com/ceb07937-2105-4e4a-aade-3b8b5c8b1208/oauth2/v2.0/token",
"connectionString": "HostName=wifizerotouch.azure-devices-provisioning.net;SharedAccessKeyName=serviceread;SharedAccessKey=ab+CD0/eFghIJkLm1NoP2qRsTU3PlaCeHOLdErGHIJk="
}
],
"required": [
"authorityUrl",
"connectionString"
],
"properties": {
"authorityUrl": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/1/properties/authentication/properties/authorityUrl",
"default": "",
"description": "The OAuth2 authority url endpoint which grants authorization tokens.",
"examples": [
"https://login.microsoftonline.com/ceb07937-2105-4e4a-aade-3b8b5c8b1208/oauth2/v2.0/token"
],
"title": "SAS Authority URL.",
"type": "string"
},
"connectionString": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/1/properties/authentication/properties/connectionString",
"default": "",
"description": "The connection string for the Device Provisioning Service (DPS) instance. See https://docs.microsoft.com/en-us/azure/iot-dps/quick-setup-auto-provision-cli#get-the-connection-string-for-the-iot-hub.",
"examples": [
"HostName=wifizerotouch.azure-devices-provisioning.net;SharedAccessKeyName=serviceread;SharedAccessKey=ab+CD0/eFghIJkLm1NoP2qRsTU3PlaCeHOLdErGHIJk="
],
"title": "SAS connection string.",
"type": "string"
}
}
}
}
},
{
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/2",
"default": {},
"description": "Bootstrapping information provider settings when type is 'azuredps' and uses Client Credential grant type OAuth2 authentication.",
"examples": [
{
"type": "azuredps",
"name": "Azure DPS (OAuth2 Authentication)",
"expirationTime": 900,
"serviceEndpointUri": "wifizerotouch.azure-devices-provisioning.net",
"authentication": {
"authorityUrl": "https://login.microsoftonline.com/ceb07937-2105-4e4a-aade-3b8b5c8b1208/oauth2/v2.0/token",
"clientId": "fd9d9681-8b12-4971-854a-ae16a2fff32d",
"clientSecret": "3cgcxvQ9--PlaCeholdErnkeR_G3.7eD-2",
"resourceUri": "https://azure-devices-provisioning.net/.default"
}
}
],
"required": [
"type",
"name",
"serviceEndpointUri",
"authentication"
],
"title": "Azure Device Provisioning Service (DPS) based bootstrapping information provider using OAuth2.",
"type": "object",
"properties": {
"type": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/2/properties/type",
"default": "",
"description": "The type of bootstrapping information provider.",
"examples": [
"azuredps"
],
"title": "Bootstrapping information provider type.",
"type": "string"
},
"name": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/2/properties/name",
"default": "",
"description": "The name to associate with this instance of the bootstrapping information provider. This name will appear in log messages to identify the provider in question.",
"examples": [
"Azure DPS (SAS Authentication)"
],
"title": "Bootstrapping information provider name.",
"type": "string"
},
"expirationTime": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/2/properties/expirationTime",
"default": 0,
"description": "The expiration time in minutes of bootstrapping records. If no value is specified, the records never expire and consequently will never be updated.",
"examples": [
600
],
"title": "Bootstrapping record expiration time (seconds).",
"type": "integer"
},
"serviceEndpointUri": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/2/properties/serviceEndpointUri",
"default": "",
"description": "The service endpoint URI of the Device Provisioning Service (DPS) instance.",
"examples": [
"wifizerotouch.azure-devices-provisioning.net"
],
"title": "Azure Device Provisioning Service (DPS) endpoint URI.",
"type": "string"
},
"authentication": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/2/properties/authentication",
"type": "object",
"title": "OAuth2 client credential grant type authentication configuration.",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
{
"authorityUrl": "https://login.microsoftonline.com/ceb07937-2105-4e4a-aade-3b8b5c8b1208/oauth2/v2.0/token",
"clientId": "fd9d9681-8b12-4971-854a-ae16a2fff32d",
"clientSecret": "3cgcxvQ9--PlaCeholdErnkeR_G3.7eD-2",
"resourceUri": "https://azure-devices-provisioning.net/.default"
}
],
"required": [
"authorityUrl",
"clientId",
"clientSecret",
"resourceUri"
],
"properties": {
"authorityUrl": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/2/properties/authentication/properties/authorityUrl",
"default": "",
"description": "The authority url endpoint which grants OAuth2 authorization tokens.",
"examples": [
"https://login.microsoftonline.com/ceb07937-2105-4e4a-aade-3b8b5c8b1208/oauth2/v2.0/token"
],
"title": "OAuth2 authority URL.",
"type": "string"
},
"clientId": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/2/properties/authentication/properties/clientId",
"default": "",
"description": "The 'client_id' for client credential grant type OAuth2 authentication.",
"examples": [
"fd9d9681-8b12-4971-854a-ae16a2fff32d"
],
"title": "OAuth2 client identifier.",
"type": "string"
},
"clientSecret": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/2/properties/authentication/properties/clientSecret",
"default": "",
"description": "The 'client_secret' for client credential grant type OAuth2 authentication.",
"examples": [
"3cgcxvQ9--PlaCeholdErnkeR_G3.7eD-2"
],
"title": "OAuth2 client secret.",
"type": "string"
},
"resourceUri": {
"$id": "#/properties/bootstrap.info/properties/providers/items/anyOf/2/properties/authentication/properties/resourceUri",
"default": "The resource URI of the endpoint that can be accessed with the requested token.",
"description": "",
"examples": [
"https://azure-devices-provisioning.net/.default"
],
"title": "OAuth2 resource URI.",
"type": "string"
}
}
}
}
}
]
}
}
}
},
"network.configuration": {
"$id": "#/properties/network.configuration",
"default": {},
"description": "Network provisioning information mapping network configuration information to enrollee identities.",
"examples": [
{
"default": {
"discovery": {
"ssid": "xmarksthespot",
"ssidCharset": 106
},
"credentials": [
{
"akm": "psk",
"passphrase": "thetruthisoutthere"
},
{
"akm": "psk",
"psk": "746865747275746869736f75747468657265"
},
{
"akm": "sae",
"passphrase": "thetruthisoutthere"
}
]
}
}
],
"required": [
"default"
],
"title": "Network configuration for provisioning.",
"type": "object",
"properties": {
"default": {
"$id": "#/properties/network.configuration/properties/default",
"default": {},
"description": "The default network to provision when a specific network for an enrollee has not been configured.",
"examples": [
{
"discovery": {
"ssid": "xmarksthespot",
"ssidCharset": 106
},
"credentials": [
{
"akm": "psk",
"passphrase": "thetruthisoutthere"
},
{
"akm": "psk",
"psk": "746865747275746869736f75747468657265"
},
{
"akm": "sae",
"passphrase": "thetruthisoutthere"
}
]
}
],
"required": [
"discovery",
"credentials"
],
"title": "Default network configuration.",
"type": "object",
"properties": {
"discovery": {
"$id": "#/properties/network.configuration/properties/default/properties/discovery",
"default": {},
"description": "Target network discovery properties.",
"examples": [
{
"ssid": "xmarksthespot",
"ssidCharset": 106
}
],
"required": [
"ssid",
"ssidCharset"
],
"title": "Network discovery information.",
"type": "object",
"properties": {
"ssid": {
"$id": "#/properties/network.configuration/properties/default/properties/discovery/properties/ssid",
"default": "",
"description": "The service set identifier (SSID) of the target network to provision.",
"examples": [
"xmarksthespot"
],
"title": "Service Set Identifier (SSID).",
"type": "string"
},
"ssidCharset": {
"$id": "#/properties/network.configuration/properties/default/properties/discovery/properties/ssidCharset",
"default": 0,
"description": "The value of the character set that would be used to convert the SSID octet string into characters. This must be an MIBenum value from https://www.iana.org/assignments/character-sets/character-sets.xhtml.",
"examples": [
106
],
"title": "Service Set Identifier (SSID) character set.",
"type": "integer"
}
}
},
"credentials": {
"$id": "#/properties/network.configuration/properties/default/properties/credentials",
"default": [],
"description": "An explanation about the purpose of this instance.",
"examples": [
[
{
"akm": "psk",
"passphrase": "thetruthisoutthere"
},
{
"akm": "psk",
"psk": "746865747275746869736f75747468657265"
},
{
"akm": "sae",
"passphrase": "thetruthisoutthere"
}
]
],
"minItems": 1,
"title": "Network credentials.",
"type": "array",
"additionalItems": false,
"items": {
"$id": "#/properties/network.configuration/properties/default/properties/credentials/items",
"minItems": 1,
"uniqueItems": true,
"type": "object",
"anyOf": [
{
"$id": "#/properties/network.configuration/properties/default/properties/credentials/items/anyOf/0",
"default": {},
"description": "The network configuration when a passphrase is specified.",
"examples": [
{
"akm": "psk",
"passphrase": "thetruthisoutthere"
}
],
"required": [
"akm",
"passphrase"
],
"title": "Network configuration for a passphrase.",
"type": "object",
"properties": {
"akm": {
"$id": "#/properties/network.configuration/properties/default/properties/credentials/items/anyOf/0/properties/akm",
"default": "",
"description": "The authentication and key management scheme for the network.",
"enum": [
"psk",
"sae"
],
"examples": [
"psk"
],
"title": "Network authentication and key management scheme.",
"type": "string"
},
"passphrase": {
"$id": "#/properties/network.configuration/properties/default/properties/credentials/items/anyOf/0/properties/passphrase",
"default": "",
"description": "The passphrase for the network, encoded as ASCII.",
"examples": [
"thetruthisoutthere"
],
"title": "Network passphrase.",
"maxLength": 63,
"minLength": 8,
"type": "string"
}
}
},
{
"$id": "#/properties/network.configuration/properties/default/properties/credentials/items/anyOf/1",
"default": {},
"description": "The network configuration when a pre-shared key (psk) is specified.",
"examples": [
{
"akm": "psk",
"psk": "746865747275746869736f75747468657265"
}
],
"required": [
"akm",
"psk"
],
"title": "Network configuration for a pre-shared key.",
"type": "object",
"properties": {
"akm": {
"$id": "#/properties/network.configuration/properties/default/properties/credentials/items/anyOf/1/properties/akm",
"default": "",
"description": "The authentication and key management scheme for the network.",
"examples": [
"psk"
],
"title": "Network authentication and key management scheme.",
"const": "psk",
"type": "string"
},
"psk": {
"$id": "#/properties/network.configuration/properties/default/properties/credentials/items/anyOf/1/properties/psk",
"default": "",
"description": "The pre-shared key (psk) for the network, encoded as hexadecimal.",
"examples": [
"746865747275746869736f75747468657265"
],
"title": "Network pre-shared key.",
"maxLength": 126,
"minLength": 16,
"type": "string"
}
}
}
]
}
}
}
}
}
}
}
}