1+ {
2+ "id" : " https://schema.management.azure.com/schemas/2023-02-08-preview/Microsoft.IoTFirmwareDefense.json#" ,
3+ "$schema" : " http://json-schema.org/draft-04/schema#" ,
4+ "title" : " Microsoft.IoTFirmwareDefense" ,
5+ "description" : " Microsoft IoTFirmwareDefense Resource Types" ,
6+ "resourceDefinitions" : {
7+ "workspaces" : {
8+ "type" : " object" ,
9+ "properties" : {
10+ "apiVersion" : {
11+ "type" : " string" ,
12+ "enum" : [
13+ " 2023-02-08-preview"
14+ ]
15+ },
16+ "location" : {
17+ "type" : " string" ,
18+ "description" : " The geo-location where the resource lives"
19+ },
20+ "name" : {
21+ "oneOf" : [
22+ {
23+ "type" : " string" ,
24+ "pattern" : " ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
25+ },
26+ {
27+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
28+ }
29+ ],
30+ "description" : " The name of the firmware analysis workspace."
31+ },
32+ "properties" : {
33+ "oneOf" : [
34+ {
35+ "$ref" : " #/definitions/WorkspaceProperties"
36+ },
37+ {
38+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
39+ }
40+ ],
41+ "description" : " Workspace properties."
42+ },
43+ "resources" : {
44+ "type" : " array" ,
45+ "items" : {
46+ "oneOf" : [
47+ {
48+ "$ref" : " #/definitions/workspaces_firmwares_childResource"
49+ }
50+ ]
51+ }
52+ },
53+ "tags" : {
54+ "oneOf" : [
55+ {
56+ "type" : " object" ,
57+ "additionalProperties" : {
58+ "type" : " string"
59+ },
60+ "properties" : {}
61+ },
62+ {
63+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
64+ }
65+ ],
66+ "description" : " Resource tags."
67+ },
68+ "type" : {
69+ "type" : " string" ,
70+ "enum" : [
71+ " Microsoft.IoTFirmwareDefense/workspaces"
72+ ]
73+ }
74+ },
75+ "required" : [
76+ " apiVersion" ,
77+ " location" ,
78+ " name" ,
79+ " properties" ,
80+ " type"
81+ ],
82+ "description" : " Microsoft.IoTFirmwareDefense/workspaces"
83+ },
84+ "workspaces_firmwares" : {
85+ "type" : " object" ,
86+ "properties" : {
87+ "apiVersion" : {
88+ "type" : " string" ,
89+ "enum" : [
90+ " 2023-02-08-preview"
91+ ]
92+ },
93+ "name" : {
94+ "type" : " string" ,
95+ "description" : " The id of the firmware."
96+ },
97+ "properties" : {
98+ "oneOf" : [
99+ {
100+ "$ref" : " #/definitions/FirmwareProperties"
101+ },
102+ {
103+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
104+ }
105+ ],
106+ "description" : " Firmware properties."
107+ },
108+ "type" : {
109+ "type" : " string" ,
110+ "enum" : [
111+ " Microsoft.IoTFirmwareDefense/workspaces/firmwares"
112+ ]
113+ }
114+ },
115+ "required" : [
116+ " apiVersion" ,
117+ " name" ,
118+ " properties" ,
119+ " type"
120+ ],
121+ "description" : " Microsoft.IoTFirmwareDefense/workspaces/firmwares"
122+ }
123+ },
124+ "definitions" : {
125+ "FirmwareProperties" : {
126+ "type" : " object" ,
127+ "properties" : {
128+ "description" : {
129+ "type" : " string" ,
130+ "description" : " User-specified description of the firmware."
131+ },
132+ "fileName" : {
133+ "type" : " string" ,
134+ "description" : " File name for a firmware that user uploaded."
135+ },
136+ "fileSize" : {
137+ "oneOf" : [
138+ {
139+ "type" : " integer"
140+ },
141+ {
142+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
143+ }
144+ ],
145+ "description" : " File size of the uploaded firmware image."
146+ },
147+ "model" : {
148+ "type" : " string" ,
149+ "description" : " Firmware model."
150+ },
151+ "status" : {
152+ "oneOf" : [
153+ {
154+ "type" : " string" ,
155+ "enum" : [
156+ " Pending" ,
157+ " Extracting" ,
158+ " Analyzing" ,
159+ " Ready" ,
160+ " Error"
161+ ]
162+ },
163+ {
164+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
165+ }
166+ ],
167+ "description" : " The status of firmware scan."
168+ },
169+ "statusMessages" : {
170+ "oneOf" : [
171+ {
172+ "type" : " array" ,
173+ "items" : {
174+ "type" : " object" ,
175+ "properties" : {}
176+ }
177+ },
178+ {
179+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
180+ }
181+ ],
182+ "description" : " A list of errors or other messages generated during firmware analysis"
183+ },
184+ "vendor" : {
185+ "type" : " string" ,
186+ "description" : " Firmware vendor."
187+ },
188+ "version" : {
189+ "type" : " string" ,
190+ "description" : " Firmware version."
191+ }
192+ },
193+ "description" : " Firmware properties."
194+ },
195+ "WorkspaceProperties" : {
196+ "type" : " object" ,
197+ "properties" : {},
198+ "description" : " Workspace properties."
199+ },
200+ "workspaces_firmwares_childResource" : {
201+ "type" : " object" ,
202+ "properties" : {
203+ "apiVersion" : {
204+ "type" : " string" ,
205+ "enum" : [
206+ " 2023-02-08-preview"
207+ ]
208+ },
209+ "name" : {
210+ "type" : " string" ,
211+ "description" : " The id of the firmware."
212+ },
213+ "properties" : {
214+ "oneOf" : [
215+ {
216+ "$ref" : " #/definitions/FirmwareProperties"
217+ },
218+ {
219+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
220+ }
221+ ],
222+ "description" : " Firmware properties."
223+ },
224+ "type" : {
225+ "type" : " string" ,
226+ "enum" : [
227+ " firmwares"
228+ ]
229+ }
230+ },
231+ "required" : [
232+ " apiVersion" ,
233+ " name" ,
234+ " properties" ,
235+ " type"
236+ ],
237+ "description" : " Microsoft.IoTFirmwareDefense/workspaces/firmwares"
238+ }
239+ }
240+ }
0 commit comments