ruby-jss 0.7.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ruby-jss might be problematic. Click here for more details.

Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +29 -22
  3. data/README.md +66 -86
  4. data/bin/jamfHelperBackgrounder +148 -0
  5. data/bin/netseg-update +0 -1
  6. data/lib/jss.rb +20 -9
  7. data/lib/jss/api_connection.rb +369 -295
  8. data/lib/jss/api_object.rb +651 -418
  9. data/lib/jss/api_object/account.rb +69 -77
  10. data/lib/jss/api_object/advanced_search.rb +201 -236
  11. data/lib/jss/api_object/advanced_search/advanced_computer_search.rb +42 -42
  12. data/lib/jss/api_object/advanced_search/advanced_mobile_device_search.rb +33 -43
  13. data/lib/jss/api_object/advanced_search/advanced_user_search.rb +33 -43
  14. data/lib/jss/api_object/building.rb +39 -52
  15. data/lib/jss/api_object/categorizable.rb +221 -0
  16. data/lib/jss/api_object/category.rb +81 -89
  17. data/lib/jss/api_object/computer.rb +486 -525
  18. data/lib/jss/api_object/computer_invitation.rb +73 -86
  19. data/lib/jss/api_object/criteriable.rb +6 -7
  20. data/lib/jss/api_object/ebook.rb +21 -0
  21. data/lib/jss/api_object/extendable.rb +6 -8
  22. data/lib/jss/api_object/group.rb +0 -3
  23. data/lib/jss/api_object/locatable.rb +19 -20
  24. data/lib/jss/api_object/mac_application.rb +21 -0
  25. data/lib/jss/api_object/mobile_device.rb +30 -21
  26. data/lib/jss/api_object/mobile_device_application.rb +447 -0
  27. data/lib/jss/api_object/mobile_device_configuration_profile.rb +21 -0
  28. data/lib/jss/api_object/osx_configuration_profile.rb +0 -3
  29. data/lib/jss/api_object/package.rb +21 -34
  30. data/lib/jss/api_object/peripheral.rb +16 -18
  31. data/lib/jss/api_object/policy.rb +5 -83
  32. data/lib/jss/api_object/purchasable.rb +11 -13
  33. data/lib/jss/api_object/scopable.rb +11 -12
  34. data/lib/jss/api_object/script.rb +3 -17
  35. data/lib/jss/api_object/self_servable.rb +419 -205
  36. data/lib/jss/api_object/self_servable/icon.rb +179 -0
  37. data/lib/jss/api_object/updatable.rb +35 -34
  38. data/lib/jss/api_object/uploadable.rb +72 -70
  39. data/lib/jss/api_object/user.rb +6 -7
  40. data/lib/jss/api_object/vppable.rb +117 -0
  41. data/lib/jss/client.rb +264 -225
  42. data/lib/jss/db_connection.rb +7 -5
  43. data/lib/jss/exceptions.rb +50 -42
  44. data/lib/jss/ruby_extensions.rb +8 -7
  45. data/lib/jss/ruby_extensions/object.rb +19 -0
  46. data/lib/jss/utility.rb +82 -40
  47. data/lib/jss/version.rb +1 -1
  48. metadata +37 -68
  49. data/bin/jss-webhook-server +0 -3
  50. data/lib/jss/webhooks.rb +0 -53
  51. data/lib/jss/webhooks/README.md +0 -269
  52. data/lib/jss/webhooks/configuration.rb +0 -213
  53. data/lib/jss/webhooks/data/sample_handlers/RestAPIOperation-executable +0 -91
  54. data/lib/jss/webhooks/data/sample_handlers/RestAPIOperation.rb +0 -45
  55. data/lib/jss/webhooks/data/sample_jsons/ComputerAdded.json +0 -27
  56. data/lib/jss/webhooks/data/sample_jsons/ComputerCheckIn.json +0 -27
  57. data/lib/jss/webhooks/data/sample_jsons/ComputerInventoryCompleted.json +0 -27
  58. data/lib/jss/webhooks/data/sample_jsons/ComputerPolicyFinished.json +0 -27
  59. data/lib/jss/webhooks/data/sample_jsons/ComputerPushCapabilityChanged.json +0 -27
  60. data/lib/jss/webhooks/data/sample_jsons/JSSShutdown.json +0 -14
  61. data/lib/jss/webhooks/data/sample_jsons/JSSStartup.json +0 -14
  62. data/lib/jss/webhooks/data/sample_jsons/MobileDeviceCheckIn.json +0 -26
  63. data/lib/jss/webhooks/data/sample_jsons/MobileDeviceCommandCompleted.json +0 -26
  64. data/lib/jss/webhooks/data/sample_jsons/MobileDeviceEnrolled.json +0 -26
  65. data/lib/jss/webhooks/data/sample_jsons/MobileDevicePushSent.json +0 -26
  66. data/lib/jss/webhooks/data/sample_jsons/MobileDeviceUnEnrolled.json +0 -26
  67. data/lib/jss/webhooks/data/sample_jsons/PatchSoftwareTitleUpdated.json +0 -14
  68. data/lib/jss/webhooks/data/sample_jsons/PushSent.json +0 -11
  69. data/lib/jss/webhooks/data/sample_jsons/RestAPIOperation.json +0 -15
  70. data/lib/jss/webhooks/data/sample_jsons/SCEPChallenge.json +0 -10
  71. data/lib/jss/webhooks/data/sample_jsons/SmartGroupComputerMembershipChange.json +0 -13
  72. data/lib/jss/webhooks/data/sample_jsons/SmartGroupMobileDeviceMembershipChange.json +0 -13
  73. data/lib/jss/webhooks/event.rb +0 -139
  74. data/lib/jss/webhooks/event/computer_added.rb +0 -38
  75. data/lib/jss/webhooks/event/computer_check_in.rb +0 -38
  76. data/lib/jss/webhooks/event/computer_inventory_completed.rb +0 -38
  77. data/lib/jss/webhooks/event/computer_policy_finished.rb +0 -38
  78. data/lib/jss/webhooks/event/computer_push_capability_changed.rb +0 -38
  79. data/lib/jss/webhooks/event/handlers.rb +0 -192
  80. data/lib/jss/webhooks/event/jss_shutdown.rb +0 -38
  81. data/lib/jss/webhooks/event/jss_startup.rb +0 -38
  82. data/lib/jss/webhooks/event/mobile_device_check_in.rb +0 -38
  83. data/lib/jss/webhooks/event/mobile_device_command_completed.rb +0 -38
  84. data/lib/jss/webhooks/event/mobile_device_enrolled.rb +0 -38
  85. data/lib/jss/webhooks/event/mobile_device_push_sent.rb +0 -38
  86. data/lib/jss/webhooks/event/mobile_device_unenrolled.rb +0 -38
  87. data/lib/jss/webhooks/event/patch_software_title_updated.rb +0 -38
  88. data/lib/jss/webhooks/event/push_sent.rb +0 -38
  89. data/lib/jss/webhooks/event/rest_api_operation.rb +0 -38
  90. data/lib/jss/webhooks/event/scep_challenge.rb +0 -38
  91. data/lib/jss/webhooks/event/smart_group_computer_membership_change.rb +0 -38
  92. data/lib/jss/webhooks/event/smart_group_mobile_device_membership_change.rb +0 -38
  93. data/lib/jss/webhooks/event/webhook.rb +0 -40
  94. data/lib/jss/webhooks/event_objects.rb +0 -112
  95. data/lib/jss/webhooks/event_objects/computer.rb +0 -49
  96. data/lib/jss/webhooks/event_objects/jss.rb +0 -36
  97. data/lib/jss/webhooks/event_objects/mobile_device.rb +0 -48
  98. data/lib/jss/webhooks/event_objects/patch_software_title_update.rb +0 -38
  99. data/lib/jss/webhooks/event_objects/push.rb +0 -33
  100. data/lib/jss/webhooks/event_objects/rest_api_operation.rb +0 -37
  101. data/lib/jss/webhooks/event_objects/scep_challenge.rb +0 -32
  102. data/lib/jss/webhooks/event_objects/smart_group.rb +0 -35
  103. data/lib/jss/webhooks/server_app.rb +0 -37
  104. data/lib/jss/webhooks/server_app/routes.rb +0 -27
  105. data/lib/jss/webhooks/server_app/routes/handle_webhook_event.rb +0 -39
  106. data/lib/jss/webhooks/server_app/routes/home.rb +0 -37
  107. data/lib/jss/webhooks/server_app/self_signed_cert.rb +0 -65
  108. data/lib/jss/webhooks/server_app/server.rb +0 -60
  109. data/lib/jss/webhooks/version.rb +0 -32
@@ -1,91 +0,0 @@
1
- #!/bin/bash
2
-
3
- ### Copyright 2017 Pixar
4
-
5
- ###
6
- ### Licensed under the Apache License, Version 2.0 (the "Apache License")
7
- ### with the following modification; you may not use this file except in
8
- ### compliance with the Apache License and the following modification to it:
9
- ### Section 6. Trademarks. is deleted and replaced with:
10
- ###
11
- ### 6. Trademarks. This License does not grant permission to use the trade
12
- ### names, trademarks, service marks, or product names of the Licensor
13
- ### and its affiliates, except as required to comply with Section 4(c) of
14
- ### the License and to reproduce the content of the NOTICE file.
15
- ###
16
- ### You may obtain a copy of the Apache License at
17
- ###
18
- ### http://www.apache.org/licenses/LICENSE-2.0
19
- ###
20
- ### Unless required by applicable law or agreed to in writing, software
21
- ### distributed under the Apache License with the above modification is
22
- ### distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23
- ### KIND, either express or implied. See the Apache License for the specific
24
- ### language governing permissions and limitations under the Apache License.
25
- ###
26
- ###
27
-
28
- # NOTE: Native bash doesn't have any easy way to parse JSON.
29
- # Instead, you should really use a tool like 'jq' https://stedolan.github.io/jq/.
30
- #
31
- # If you have jq, set its correct path in the JQ variable below.
32
- #
33
- # If not, this script will use a hacky, VERY inappropriate and breakable
34
- # way to parse JSON!
35
- # But, it works enough to demonstrate the idea of using bash to write a handler.
36
-
37
- # Enter your path to jq
38
- JQ=/usr/local/bin/jq
39
-
40
- # read all of stdin into a variable
41
- while read line ; do JSON="$JSON $line" ; done
42
-
43
- # use jq if we can
44
- if [ -x "$JQ" ] ; then
45
-
46
- hookname=`echo $JSON | "$JQ" -r '.webhook.name'`
47
- authname=`echo $JSON | "$JQ" -r '.event.authorizedUsername'`
48
- otype=`echo $JSON | "$JQ" -r '.event.objectTypeName'`
49
- oname=`echo $JSON | "$JQ" -r '.event.objectName'`
50
- oid=`echo $JSON | "$JQ" -r '.event.objectID'`
51
- optype=`echo $JSON | "$JQ" -r '.event.restAPIOperationType'`
52
-
53
- # otherwise, hacky bash parsing.
54
- else
55
-
56
- # use a comma as the field separator for the for-loop
57
- IFS=','
58
-
59
- # loop thru comma-separated chunks
60
- for chunk in $JSON ; do
61
- hookre='"name": "(.+)"'
62
- [[ $chunk =~ $hookre ]] && hookname="${BASH_REMATCH[1]}"
63
- authunamere='"authorizedUsername": "(.+)"'
64
- [[ $chunk =~ $authunamere ]] && authname="${BASH_REMATCH[1]}"
65
- otypere='"objectTypeName": "(.+)"'
66
- [[ $chunk =~ $otypere ]] && otype="${BASH_REMATCH[1]}"
67
- onamere='"objectName": "(.+)"'
68
- [[ $chunk =~ $onamere ]] && oname="${BASH_REMATCH[1]}"
69
- oidre='"objectID": (.+)'
70
- [[ $chunk =~ $oidre ]] && oid="${BASH_REMATCH[1]}"
71
- optypere='"restAPIOperationType": "(.+)"'
72
- [[ $chunk =~ $optypere ]] && optype="${BASH_REMATCH[1]}"
73
- done
74
-
75
- fi # if [ -x "$JQ" ] ; then
76
-
77
- # make an 'action' out of the operation type
78
- # or exit if we don't know or don't care.
79
- case $optype in
80
- GET) exit 0 ;;
81
- PUT) action=create ;;
82
- POST) action=update ;;
83
- DELETE) action=delete ;;
84
- *) exit 15 ;;
85
- esac
86
-
87
- # output
88
- echo "The JSS WebHook named '${hookname}' was just triggered.
89
- It indicates that Casper user '${authname}' just used the JSS API to ${action}
90
- the JSS ${otype}named '${oname}' (id ${oid})
91
- "
@@ -1,45 +0,0 @@
1
- ### Copyright 2017 Pixar
2
-
3
- ###
4
- ### Licensed under the Apache License, Version 2.0 (the "Apache License")
5
- ### with the following modification; you may not use this file except in
6
- ### compliance with the Apache License and the following modification to it:
7
- ### Section 6. Trademarks. is deleted and replaced with:
8
- ###
9
- ### 6. Trademarks. This License does not grant permission to use the trade
10
- ### names, trademarks, service marks, or product names of the Licensor
11
- ### and its affiliates, except as required to comply with Section 4(c) of
12
- ### the License and to reproduce the content of the NOTICE file.
13
- ###
14
- ### You may obtain a copy of the Apache License at
15
- ###
16
- ### http://www.apache.org/licenses/LICENSE-2.0
17
- ###
18
- ### Unless required by applicable law or agreed to in writing, software
19
- ### distributed under the Apache License with the above modification is
20
- ### distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
- ### KIND, either express or implied. See the Apache License for the specific
22
- ### language governing permissions and limitations under the Apache License.
23
- ###
24
- ###
25
-
26
- JSSWebHooks.event_handler do |event|
27
- eobject = event.event_object
28
- whook = event.webhook
29
-
30
- REPORT_ACTIONS = {
31
- 'PUT' => 'update',
32
- 'POST' => 'create',
33
- 'DELETE' => 'delete'
34
- }.freeze unless defined? REPORT_ACTIONS
35
-
36
- action = REPORT_ACTIONS[eobject.restAPIOperationType]
37
-
38
- return nil unless action
39
-
40
- puts <<-ENDMSG
41
- The JSS WebHook named '#{whook.name}' was just triggered.
42
- It indicates that Casper user '#{eobject.authorizedUsername}' just used the JSS API to #{action}
43
- the JSS #{eobject.objectTypeName} named '#{eobject.objectName}' (id #{eobject.objectID})
44
- ENDMSG
45
- end
@@ -1,27 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 1,
4
- "name": "ComputerAdded Webhook",
5
- "webhookEvent": "ComputerAdded"
6
- },
7
- "event": {
8
- "udid": "99848AF0-xxxx-XXXX-xxxx-B79B9F65D7F8",
9
- "deviceName": "wanderer",
10
- "model": "MacBookPro10,1",
11
- "macAddress": "yy:E0:yy:16:yy:E9",
12
- "alternateMacAddress": "32:xx:1A:xx:xx:60",
13
- "serialNumber": "VM87S764H831",
14
- "osVersion": "10.15.2",
15
- "osBuild": "48673",
16
- "userDirectoryID": "-1",
17
- "username": "username",
18
- "realName": "User Name",
19
- "emailAddress": "user@school.edu",
20
- "phone": "x3369",
21
- "position": "Apple Peeler",
22
- "department": "MacBack",
23
- "building": "Soho",
24
- "room": "s167",
25
- "jssID": 1322
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 2,
4
- "name": "ComputerCheckin Webhook",
5
- "webhookEvent": "ComputerCheckin"
6
- },
7
- "event": {
8
- "udid": "99848AF0-xxxx-XXXX-xxxx-B79B9F65D7F8",
9
- "deviceName": "wanderer",
10
- "model": "MacBookPro10,1",
11
- "macAddress": "yy:E0:yy:16:yy:E9",
12
- "alternateMacAddress": "32:xx:1A:xx:xx:60",
13
- "serialNumber": "VM87S764H831",
14
- "osVersion": "10.15.2",
15
- "osBuild": "48673",
16
- "userDirectoryID": "-1",
17
- "username": "username",
18
- "realName": "User Name",
19
- "emailAddress": "user@school.edu",
20
- "phone": "x3369",
21
- "position": "Apple Peeler",
22
- "department": "MacBack",
23
- "building": "Soho",
24
- "room": "s167",
25
- "jssID": 1322
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 3,
4
- "name": "ComputerInventoryCompleted Webhook",
5
- "webhookEvent": "ComputerInventoryCompleted"
6
- },
7
- "event": {
8
- "udid": "99848AF0-xxxx-XXXX-xxxx-B79B9F65D7F8",
9
- "deviceName": "wanderer",
10
- "model": "MacBookPro10,1",
11
- "macAddress": "yy:E0:yy:16:yy:E9",
12
- "alternateMacAddress": "32:xx:1A:xx:xx:60",
13
- "serialNumber": "VM87S764H831",
14
- "osVersion": "10.15.2",
15
- "osBuild": "48673",
16
- "userDirectoryID": "-1",
17
- "username": "username",
18
- "realName": "User Name",
19
- "emailAddress": "user@school.edu",
20
- "phone": "x3369",
21
- "position": "Apple Peeler",
22
- "department": "MacBack",
23
- "building": "Soho",
24
- "room": "s167",
25
- "jssID": 1322
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 4,
4
- "name": "ComputerPolicyFinished Webhook",
5
- "webhookEvent": "ComputerPolicyFinished"
6
- },
7
- "event": {
8
- "udid": "99848AF0-xxxx-XXXX-xxxx-B79B9F65D7F8",
9
- "deviceName": "wanderer",
10
- "model": "MacBookPro10,1",
11
- "macAddress": "yy:E0:yy:16:yy:E9",
12
- "alternateMacAddress": "32:xx:1A:xx:xx:60",
13
- "serialNumber": "VM87S764H831",
14
- "osVersion": "10.15.2",
15
- "osBuild": "48673",
16
- "userDirectoryID": "-1",
17
- "username": "username",
18
- "realName": "User Name",
19
- "emailAddress": "user@school.edu",
20
- "phone": "x3369",
21
- "position": "Apple Peeler",
22
- "department": "MacBack",
23
- "building": "Soho",
24
- "room": "s167",
25
- "jssID": 1322
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 5,
4
- "name": "ComputerPushCapabilityChanged Webhook",
5
- "webhookEvent": "ComputerPushCapabilityChanged"
6
- },
7
- "event": {
8
- "udid": "99848AF0-xxxx-XXXX-xxxx-B79B9F65D7F8",
9
- "deviceName": "wanderer",
10
- "model": "MacBookPro10,1",
11
- "macAddress": "yy:E0:yy:16:yy:E9",
12
- "alternateMacAddress": "32:xx:1A:xx:xx:60",
13
- "serialNumber": "VM87S764H831",
14
- "osVersion": "10.15.2",
15
- "osBuild": "48673",
16
- "userDirectoryID": "-1",
17
- "username": "username",
18
- "realName": "User Name",
19
- "emailAddress": "user@school.edu",
20
- "phone": "x3369",
21
- "position": "Apple Peeler",
22
- "department": "MacBack",
23
- "building": "Soho",
24
- "room": "s167",
25
- "jssID": 1322
26
- }
27
- }
@@ -1,14 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 7,
4
- "name": "JSSShutdown Webhook",
5
- "webhookEvent": "JSSShutdown"
6
- },
7
- "event": {
8
- "institution": "MyCoolSchool",
9
- "hostAddress": "casper.mycoolschool.edu",
10
- "webApplicationPath": "/path/to/web/app",
11
- "isClusterMaster": true,
12
- "jssUrl": "https://casper.mycoolschool.edu:8443/"
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 8,
4
- "name": "JSSStartup Webhook",
5
- "webhookEvent": "JSSStartup"
6
- },
7
- "event": {
8
- "institution": "MyCoolSchool",
9
- "hostAddress": "casper.mycoolschool.edu",
10
- "webApplicationPath": "/path/to/web/app",
11
- "isClusterMaster": true,
12
- "jssUrl": "https://casper.mycoolschool.edu:8443/"
13
- }
14
- }
@@ -1,26 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 9,
4
- "name": "MobileCheckin Webhook",
5
- "webhookEvent": "MobileDeviceCheckIn"
6
- },
7
- "event": {
8
- "udid": "0d12c74062dxyxyxb4b234f4ac1yxyxyx1efccd0",
9
- "deviceName": "tipple",
10
- "version": "4.71.00",
11
- "model": "iPhone7,2",
12
- "bluetoothMacAddress": "xx:xx:37:yy:78:xx",
13
- "wifiMacAddress": "yy:yy:37:xx:78:yy",
14
- "imei": "xx yyyyyy zzzzzz 0",
15
- "icciID": "aaaa bbbb cccc dddd eeee",
16
- "product": null,
17
- "serialNumber": "C8EM25KSG5PT",
18
- "userDirectoryID": "-1",
19
- "room": "s167",
20
- "osVersion": "9.3.4",
21
- "osBuild": "13G35",
22
- "modelDisplay": "iPhone 6",
23
- "username": "username",
24
- "jssID": 158
25
- }
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 10,
4
- "name": "MobileCommandComplete Webhook",
5
- "webhookEvent": "MobileDeviceCommandCompleted"
6
- },
7
- "event": {
8
- "udid": "0d12c74062dxyxyxb4b234f4ac1yxyxyx1efccd0",
9
- "deviceName": "tipple",
10
- "version": "4.71.00",
11
- "model": "iPhone7,2",
12
- "bluetoothMacAddress": "xx:xx:37:yy:78:xx",
13
- "wifiMacAddress": "yy:yy:37:xx:78:yy",
14
- "imei": "xx yyyyyy zzzzzz 0",
15
- "icciID": "aaaa bbbb cccc dddd eeee",
16
- "product": null,
17
- "serialNumber": "C8EM25KSG5PT",
18
- "userDirectoryID": "-1",
19
- "room": "s167",
20
- "osVersion": "9.3.4",
21
- "osBuild": "13G35",
22
- "modelDisplay": "iPhone 6",
23
- "username": "username",
24
- "jssID": 158
25
- }
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 11,
4
- "name": "MobileEnrolled Webhook",
5
- "webhookEvent": "MobileDeviceEnrolled"
6
- },
7
- "event": {
8
- "udid": "0d12c74062dxyxyxb4b234f4ac1yxyxyx1efccd0",
9
- "deviceName": "tipple",
10
- "version": "4.71.00",
11
- "model": "iPhone7,2",
12
- "bluetoothMacAddress": "xx:xx:37:yy:78:xx",
13
- "wifiMacAddress": "yy:yy:37:xx:78:yy",
14
- "imei": "xx yyyyyy zzzzzz 0",
15
- "icciID": "aaaa bbbb cccc dddd eeee",
16
- "product": null,
17
- "serialNumber": "C8EM25KSG5PT",
18
- "userDirectoryID": "-1",
19
- "room": "s167",
20
- "osVersion": "9.3.4",
21
- "osBuild": "13G35",
22
- "modelDisplay": "iPhone 6",
23
- "username": "username",
24
- "jssID": 158
25
- }
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 12,
4
- "name": "MobilePush Webhook",
5
- "webhookEvent": "MobileDevicePushSent"
6
- },
7
- "event": {
8
- "udid": "0d12c74062dxyxyxb4b234f4ac1yxyxyx1efccd0",
9
- "deviceName": "tipple",
10
- "version": "4.71.00",
11
- "model": "iPhone7,2",
12
- "bluetoothMacAddress": "xx:xx:37:yy:78:xx",
13
- "wifiMacAddress": "yy:yy:37:xx:78:yy",
14
- "imei": "xx yyyyyy zzzzzz 0",
15
- "icciID": "aaaa bbbb cccc dddd eeee",
16
- "product": null,
17
- "serialNumber": "C8EM25KSG5PT",
18
- "userDirectoryID": "-1",
19
- "room": "s167",
20
- "osVersion": "9.3.4",
21
- "osBuild": "13G35",
22
- "modelDisplay": "iPhone 6",
23
- "username": "username",
24
- "jssID": 158
25
- }
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "webhook": {
3
- "id": 13,
4
- "name": "MobileUnEnrolled Webhook",
5
- "webhookEvent": "MobileDeviceUnEnrolled"
6
- },
7
- "event": {
8
- "udid": "0d12c74062dxyxyxb4b234f4ac1yxyxyx1efccd0",
9
- "deviceName": "tipple",
10
- "version": "4.71.00",
11
- "model": "iPhone7,2",
12
- "bluetoothMacAddress": "xx:xx:37:yy:78:xx",
13
- "wifiMacAddress": "yy:yy:37:xx:78:yy",
14
- "imei": "xx yyyyyy zzzzzz 0",
15
- "icciID": "aaaa bbbb cccc dddd eeee",
16
- "product": null,
17
- "serialNumber": "C8EM25KSG5PT",
18
- "userDirectoryID": "-1",
19
- "room": "s167",
20
- "osVersion": "9.3.4",
21
- "osBuild": "13G35",
22
- "modelDisplay": "iPhone 6",
23
- "username": "username",
24
- "jssID": 158
25
- }
26
- }