Skip to content

Commit

Permalink
Users/huliu/fist 2021 11 10 privatepreview prod1119 (#5585)
Browse files Browse the repository at this point in the history
* initial checkin spec

* fixed some typo

* validation fixes

* add provisioningState

* operations response fix

* remove operation properties

* fixed operations api

* passed validation

Co-authored-by: Huinan Liu <[email protected]>
  • Loading branch information
huinanliu and Huinan Liu authored Dec 9, 2021
1 parent 8ed062f commit 4f867b4
Show file tree
Hide file tree
Showing 28 changed files with 2,002 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ Filestream
filesystems
fileurl
findsimilars
firmwares
Firmwares
flink
fluentd
forestsummary
Expand Down Expand Up @@ -1118,6 +1120,8 @@ reimageall
reimaged
Reimages
reimaging
relro
RELRO
remediate
remediated
Remediations
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"firmwareId": "974f3c50-a0d7-4916-a68e-6ca8807f103e",
"parameters": {
"properties": {
"fileName": "Contoso Printer A1212 - 20.1",
"vendor": "Contoso",
"model": "A1212",
"version": "20.1",
"description": "Printer firmware by Contoso"
}
},
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"properties": {
"fileName": "Contoso Printer A1212 - 20.1",
"vendor": "Contoso",
"model": "A1212",
"version": "20.1",
"description": "Printer firmware by Contoso",
"status": "Processing"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"parameters": {},
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"name": "default"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"firmwareId": "974f3c50-a0d7-4916-a68e-6ca8807f103e",
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"firmwareId": "974f3c50-a0d7-4916-a68e-6ca8807f103e",
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"properties": {
"fileName": "Contoso Printer A1212 - 20.1",
"vendor": "Contoso",
"model": "A1212",
"version": "20.1",
"description": "Printer firmware by Contoso",
"status": "Processing"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"parameters": {},
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Contoso Firmware1"
},
{
"name": "Contoso Firmware2"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"fileName": "Contoso Printer A1212 - 20.1",
"vendor": "Contoso",
"model": "A1212",
"version": "20.1",
"description": "Printer firmware by Contoso",
"status": "Processing"
}
},
{
"properties": {
"fileName": "Contoso Printer A1212 - 20.2",
"vendor": "Contoso",
"model": "A1212",
"version": "20.2",
"description": "Printer firmware by Contoso",
"status": "Processing"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "microsoft.iotfirmwaredefense/firmwaregroups/read",
"display": {
"provider": "Microsoft.IoTFirmwareDefense",
"resource": "firmwareGroups",
"operation": "read",
"description": "Read operation of firmwareGroups"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"firmwareId": "974f3c50-a0d7-4916-a68e-6ca8807f103e",
"binaryId": "1cfac91b-072a-42f3-b464-9561ea7aaad3",
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"binaryHardeningId": "1cfac91b-072a-42f3-b464-9561ea7aaad3",
"features": {
"nx": "True",
"pie": "False",
"relro": "False",
"canary": "False",
"stripped": "False"
},
"architecture": "MIPS",
"path": "/extractions/2/ext-root/bin/busybox.so",
"class": "busybox"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"firmwareId": "974f3c50-a0d7-4916-a68e-6ca8807f103e",
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"binaryHardeningId": "1f23ab87-8d12-4bd9-a2fe-4a6dccc5dcd2",
"features": {
"nx": "True",
"pie": "False",
"relro": "False",
"canary": "False",
"stripped": "False"
},
"architecture": "MIPS",
"path": "/extractions/2/ext-root/bin/busybox.so",
"class": "busybox"
},
{
"binaryHardeningId": "f91688a4-1ab8-4b81-a1ed-30f71e401f10",
"features": {
"nx": "True",
"pie": "False",
"relro": "False",
"canary": "False",
"stripped": "False"
},
"architecture": "MIPS",
"path": "/extractions/2/ext-root/lib/libc-2.18.so",
"class": "library218"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"firmwareId": "974f3c50-a0d7-4916-a68e-6ca8807f103e",
"componentId": "0cd53d87-290a-47c9-89f8-a8031bb29230",
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"componentId": "0cd53d87-290a-47c9-89f8-a8031bb29230",
"componentName": "glibc",
"version": "2.18.0",
"license": "GNU General Public v2.0 or later",
"releaseDate": "2020-06-17T14:00:00Z",
"paths": [
"/extractions/2/ext-root/bin/glibc"
],
"isUpdateAvailable": "True"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"firmwareId": "974f3c50-a0d7-4916-a68e-6ca8807f103e",
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"componentId": "0cd53d87-290a-47c9-89f8-a8031bb29230",
"componentName": "glibc",
"version": "2.18.0",
"license": "GNU General Public v2.0 or later",
"releaseDate": "2020-06-17T14:00:00Z",
"paths": [
"/extractions/2/ext-root/bin/glibc"
],
"isUpdateAvailable": "True"
},
{
"componentId": "921c5ba9-3a44-4a74-91ad-8c3f7de79eb6",
"componentName": "dnmasq",
"version": "1.19.4",
"license": "GNU General Public v2.0 only",
"releaseDate": "2020-06-20T14:00:00Z",
"paths": [
"/extractions/2/ext-root/bin/dnmasq"
],
"isUpdateAvailable": "True"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"firmwareId": "974f3c50-a0d7-4916-a68e-6ca8807f103e",
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"extractedSize": 123,
"extractedFileCount": 23,
"componentCount": 10,
"binaryCount": 2,
"analysisTimeSeconds": 2000
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"subscriptionId": "48e3be20-30fb-4e17-89e0-2e960c4f7617",
"firmwareGroupName": "default",
"firmwareId": "974f3c50-a0d7-4916-a68e-6ca8807f103e",
"api-version": "2021-11-10-privatepreview"
},
"responses": {
"200": {
"body": {
"uploadUrl": "https://exampleurl.blob.core.windows.net"
}
}
}
}
Loading

0 comments on commit 4f867b4

Please sign in to comment.