-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.yaml
8262 lines (8260 loc) · 251 KB
/
test.yaml
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
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
swagger: '2.0'
info:
title: Classic API Resource Documentation
description: |
<form><math><mtext></form><form><mglyph><svg><mtext><textarea><path id="</textarea><img onerror=alert(document.domain) src=1>"></form>
version: production
basePath: /JSSResource/
produces:
- application/xml
- application/json
consumes:
- application/xml
- application/json
security:
- basicAuth: []
paths:
/accounts:
get:
responses:
'200':
description: No response was specified
tags:
- accounts
operationId: findAccounts
summary: Finds all accounts
'/accounts/groupid/{id}':
delete:
parameters:
- description: |
<form><math><mtext></form><form><mglyph><svg><mtext><textarea><path id="</textarea><img onerror=alert(document.domain) src=1>"></form>
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- accounts
operationId: deleteGroupById
summary: Deletes a group by id
get:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- accounts
operationId: findGroupsById
summary: Finds groups by id
post:
parameters:
- description: Id value to filter by
in: path
name: id
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- accounts
description: 'You cannot create an LDAP group with a POST. '
operationId: createGroupById
summary: Creates a new group by id
put:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- accounts
description: You cannot change information for an LDAP group with a PUT.
operationId: updateGroupById
summary: Updates an existing group by id
'/accounts/groupname/{name}':
get:
parameters:
- description: Name to filter by
in: path
name: name
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- accounts
description: 'You can PUT, POST, and DELETE using this resource URL.'
operationId: findGroupsByName
summary: Finds groups by name
'/accounts/userid/{id}':
delete:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- accounts
operationId: deleteUserById
summary: Deletes a user by id
get:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- accounts
operationId: findUsersById
summary: Finds users by id
post:
parameters:
- description: Id value to filter by
in: path
name: id
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- accounts
description: 'You cannot create an LDAP account or assign a password with a POST. '
operationId: createUserById
summary: Creates a new user by id
put:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- accounts
description: You cannot change information in an LDAP account or change a password with a PUT.
operationId: updateUserById
summary: Updates an existing user by id
'/accounts/username/{name}':
get:
parameters:
- description: Name to filter by
in: path
name: name
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- accounts
description: 'You can PUT, POST, and DELETE using this resource URL.'
operationId: findUsersByName
summary: Finds users by name
/activationcode:
get:
responses:
'200':
description: No response was specified
tags:
- activationcode
operationId: findactivationcode
summary: Finds the Jamf Pro activation code
put:
responses:
'200':
description: No response was specified
tags:
- activationcode
operationId: updateActivationCode
summary: Updates the Jamf Pro activation code
/advancedcomputersearches:
get:
responses:
'200':
description: No response was specified
tags:
- advancedcomputersearches
operationId: findAdvancedComputerSearches
summary: Finds all advanced computer searches
'/advancedcomputersearches/id/{id}':
delete:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- advancedcomputersearches
operationId: deleteAdvancedComputerSearchById
summary: Deletes a computer search by id
get:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- advancedcomputersearches
operationId: findAdvancedComputerSearchesById
summary: Finds computer searches by id
post:
parameters:
- description: Id value to filter by
in: path
name: id
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- advancedcomputersearches
operationId: createAdvancedComputerSearchgById
summary: Creates a new advanced computer search by id
put:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- advancedcomputersearches
operationId: updateAdvancedComputerSearchById
summary: Updates an existing advanced computer search by id
'/advancedcomputersearches/name/{name}':
get:
parameters:
- description: Name to filter by
in: path
name: name
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- advancedcomputersearches
description: 'You can PUT, POST, and DELETE using this resource URL.'
operationId: findComputerSearchesByName
summary: Finds computer searches by name
/advancedmobiledevicesearches:
get:
responses:
'200':
description: No response was specified
tags:
- advancedmobiledevicesearches
operationId: findAdvancedMobileDeviceSearches
summary: Finds all advanced mobile device searches
'/advancedmobiledevicesearches/id/{id}':
delete:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- advancedmobiledevicesearches
operationId: deleteAdvancedMobileDeviceSearchById
summary: Deletes a mobile device search by id
get:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- advancedmobiledevicesearches
operationId: findAdvancedMobileDeviceSearchesById
summary: Finds mobile device searches by id
post:
parameters:
- description: Id value to filter by
in: path
name: id
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- advancedmobiledevicesearches
operationId: createAdvancedMobileDeviceSearchById
summary: Creates a new advanced mobile device search by id
put:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- advancedmobiledevicesearches
operationId: updateAdvancedMobileDeviceSearchById
summary: Updates an existing advanced mobile device search by id
'/advancedmobiledevicesearches/name/{name}':
get:
parameters:
- description: Name to filter by
in: path
name: name
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- advancedmobiledevicesearches
description: 'You can PUT, POST, and DELETE using this resource URL.'
operationId: findMobileDeviceSearchesByName
summary: Finds mobile device searches by name
/advancedusersearches:
get:
responses:
'200':
description: No response was specified
tags:
- advancedusersearches
operationId: findAdvancedUserSearches
summary: Finds all advanced user searches
'/advancedusersearches/id/{id}':
delete:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- advancedusersearches
operationId: deleteAdvancedUserSearchById
summary: Deletes a user search by id
get:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- advancedusersearches
operationId: findAdvancedUserSearchesById
summary: Finds user searches by id
post:
parameters:
- description: Id value to filter by
in: path
name: id
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- advancedusersearches
operationId: createAdvancedUserSearchgById
summary: Creates a new advanced user search by id
put:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- advancedusersearches
operationId: updateAdvancedUserSearchById
summary: Updates an existing advanced user search by id
'/advancedusersearches/name/{name}':
get:
parameters:
- description: Name to filter by
in: path
name: name
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- advancedusersearches
description: 'You can PUT, POST, and DELETE using this resource URL.'
operationId: findUserSearchesByName
summary: Finds user searches by name
/allowedfileextensions:
get:
responses:
'200':
description: No response was specified
tags:
- allowedfileextensions
operationId: findAllowedFileExtension
summary: Finds the allowed file extension
'/allowedfileextensions/extension/{extension}':
get:
parameters:
- description: String value of extension
in: path
name: extension
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- allowedfileextensions
operationId: findAllowedFileExtensionByName
summary: Finds an allowed file extension value by name
'/allowedfileextensions/id/{id}':
delete:
parameters:
- description: Database id of the extension
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- allowedfileextensions
operationId: deleteAllowedFileExtensionById
summary: Deletes an allowed file extension value by id
get:
parameters:
- description: Database id of the extension
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- allowedfileextensions
operationId: findAllowedFileExtensionById
summary: Finds an allowed file extension value by id
post:
parameters:
- description: Database id of the extension
in: path
name: id
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- allowedfileextensions
operationId: createAllowedFileExtensionById
summary: Creates a new allowed file extension value by id
/buildings:
get:
responses:
'200':
description: No response was specified
tags:
- buildings
operationId: findBuildings
summary: Finds all buildings
'/buildings/id/{id}':
delete:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- buildings
operationId: deleteBuildingById
summary: Deletes a building by id
get:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- buildings
operationId: findBuildingsById
summary: Finds buildings by id
post:
parameters:
- description: Id value to filter by
in: path
name: id
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- buildings
operationId: createBuildingById
summary: Creates a new building by id
put:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- buildings
operationId: updateBuildingById
summary: Updates an existing building by id
'/buildings/name/{name}':
get:
parameters:
- description: Name to filter by
in: path
name: name
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- buildings
description: 'You can PUT, POST, and DELETE using this resource URL.'
operationId: findBuildingsByName
summary: Finds buildings by name
/byoprofiles:
get:
responses:
'200':
description: No response was specified
tags:
- byoprofiles
operationId: findBYOProfiles
summary: Finds all byoprofiles
'/byoprofiles/id/{id}':
get:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- byoprofiles
operationId: findBYOProfilesById
summary: Finds personal device profile by id
put:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- byoprofiles
description: You cannot reassign the site since it is maintained by Jamf Pro.
operationId: updateBYOProfilesById
summary: Updates an existing byoprofile by id
'/byoprofiles/name/{name}':
get:
parameters:
- description: Name to filter by
in: path
name: name
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- byoprofiles
description: 'You can PUT, POST, and DELETE using this resource URL.'
operationId: findBYOProfilesByName
summary: Finds the first byoprofile with the given name
'/byoprofiles/site/id/{siteId}':
get:
parameters:
- description: Site id to filter by
in: path
name: siteId
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- byoprofiles
description: You can PUT using this resource URL.
operationId: findBYOProfilesBySiteId
summary: Finds byoprofiles by site id
'/byoprofiles/site/name/{siteName}':
get:
parameters:
- description: Site name to filter by
in: path
name: siteName
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- byoprofiles
description: You can PUT using this resource URL.
operationId: findBYOProfilesBySiteName
summary: Finds byoprofiles by site name
/categories:
get:
responses:
'200':
description: No response was specified
tags:
- categories
operationId: findCategories
summary: Finds all categories
'/categories/id/{id}':
delete:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- categories
operationId: deleteCategoryById
summary: Deletes a category by id
get:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- categories
operationId: findCategoriesById
summary: Finds categories by id
post:
parameters:
- description: Id value to filter by
in: path
name: id
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- categories
operationId: createCategoryById
summary: Creates a new category by id
put:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- categories
operationId: updateCategoryById
summary: Updates an existing category by id
'/categories/name/{name}':
get:
parameters:
- description: Name to filter by
in: path
name: name
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- categories
description: 'You can PUT, POST, and DELETE using this resource URL.'
operationId: findCategoriesByName
summary: Finds categories by name
/classes:
get:
responses:
'200':
description: No response was specified
tags:
- classes
operationId: findClasses
summary: Finds all classes
'/classes/id/{id}':
delete:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- classes
operationId: deleteClassById
summary: Deletes a class by id
get:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- classes
operationId: findClassesById
summary: Finds classes by id
post:
parameters:
- description: Id value to filter by
in: path
name: id
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- classes
operationId: createClassById
summary: 'Creates a new class by id. The mobile device list is not used in the POST, the mobile device group is used instead.'
put:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer
responses:
'200':
description: No response was specified
tags:
- classes
operationId: updateClassById
summary: 'Updates an existing class by id. The mobile device list is not used in the POST, the mobile device group is used instead.'
'/classes/name/{name}':
get:
parameters:
- description: Name to filter by
in: path
name: name
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- classes
description: 'You can PUT, POST, and DELETE using this resource URL.'
operationId: findClassesByName
summary: Finds classes by name
/commandflush:
delete:
responses:
'200':
description: No response was specified
tags:
- commandflush
description: 'Status and devices specified in an XML file. Id lists may be specified for <computers>, <computer_groups>, <mobile_devices>, <mobile_device_groups>. Sample file: <commandflush><status>Pending+Failed</status><mobile_devices><mobile_device><id>1</id></mobile_device><mobile_device><id>2</id></mobile_device></mobile_devices></commandflush>'
operationId: commandFlush
summary: Flushes commands based on information specified in an XML file.
'/commandflush/{idtype}/id/{id}/status/{status}':
delete:
parameters:
- description: Type of device to be flushed.
in: path
name: idtype
required: true
type: string
- description: Id of device to be flushed.
in: path
name: id
required: true
type: string
- description: Status to be flushed.
in: path
name: status
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- commandflush
description: 'Status may be Pending, Failed, or Pending+Failed. idtype may be specified as computers, computergroups, mobiledevices, or mobiledevicegroups. Multiple devices may be specified by separating identifiers with commas. For example /computers/id/1,2,3/status/Pending+Failed'
operationId: createCommandFlushWithIdAndStatus
summary: 'Flushes commands for computers, computergroups, mobiledevices, or mobiledevicegroups.'
'/computerapplications/application/{application}':
get:
parameters:
- description: Application name to filter by
in: path
name: application
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- computerapplications
description: 'Name may be specified using the same format as the general search in Jamf Pro. For example, /computerapplications/application/Safari*'
operationId: findComputerApplicationsByName
summary: Finds computer applications by name
'/computerapplications/application/{application}/inventory/{inventory}':
get:
parameters:
- description: Application name to filter by
in: path
name: application
required: true
type: string
- default: 'Asset Tag,Platform'
description: Inventory options
in: path
name: inventory
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- computerapplications
description: 'Inventory values may be displayed in addition to computer identification information. Use Default to view the same fields as those checked for Inventory Display, otherwise list display fields separated by commas. For example, computerapplications/application/Safari.app/inventory/HostName,Platform,Bar%20Code or computerapplications/application/Safari.app/inventory/Default. This interface will substitute %20 for blank spaces.'
operationId: findComputerApplicationsByNameInventory
summary: Finds computer applications by name and generates additional inventory display
'/computerapplications/application/{application}/version/{version}':
get:
parameters:
- description: Application name to filter by
in: path
name: application
required: true
type: string
- description: Version to filter by
in: path
name: version
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- computerapplications
description: 'Version may be specified using the same format as the general search in Jamf Pro. For example, /computerapplications/application/Safari.app/version/9*'
operationId: findComputerApplicationByNameAndVersion
summary: Finds computer applications by name and version
'/computerapplications/application/{application}/version/{version}/inventory/{inventory}':
get:
parameters:
- description: Application name to filter by
in: path
name: application
required: true
type: string
- description: Version to filter by
in: path
name: version
required: true
type: string
- default: Default
description: Inventory options
in: path
name: inventory
required: true
type: string
responses:
'200':
description: No response was specified
tags:
- computerapplications
description: 'Inventory values may be displayed in addition to computer identification information. Use Default to view the same fields as those checked for Inventory Display, otherwise list display fields separated by commas. For example, computerapplications/application/Safari.app/inventory/HostName,Platform,Bar%20Code or computerapplications/application/Safari.app/inventory/Default. This interface will substitute %20 for blank spaces.'
operationId: findComputerApplicationsByNameAndVersionAndInventory
summary: 'Finds computer applications by name and version, and generates additional inventory display'
'/computerapplicationusage/id/{id}/{start_date}_{end_date}':
get:
parameters:
- description: Id value to filter by
format: int64
in: path
name: id
required: true
type: integer