Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hub Generated] Publish private branch 'eatkimchee-fist-Microsoft.IoTFirmwareDefense-2023-02-08-preview' #23921

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,15 @@
"Transliterable",
"translitered"
]
},
{
"filename": "**/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/**/*.json",
"words": [
"RELRO",
"relro",
"rpath",
"runpath"
]
}
],
"enableFiletypes": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
{
"swagger": "2.0",
"info": {
"version": "2023-02-08-preview",
"title": "fist",
"description": "The definitions and parameters in this swagger specification will be used to manage the IoT Firmware Defense resources."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow.",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {},
"definitions": {
"UrlToken": {
eatkimchee marked this conversation as resolved.
Show resolved Hide resolved
"type": "object",
"properties": {
"url": {
"description": "SAS URL for creating or accessing a blob file.",
"type": "string",
"format": "uri",
"readOnly": true
},
"uploadUrl": {
"description": "SAS URL for file uploading. Kept for backwards compatibility",
"type": "string",
"format": "uri",
"readOnly": true
}
},
eatkimchee marked this conversation as resolved.
Show resolved Hide resolved
"description": "Url data for creating or accessing a blob file."
},
"Firmware": {
"type": "object",
"description": "Firmware definition",
"properties": {
"properties": {
"title": "Firmware properties",
"description": "The properties of a firmware",
"x-ms-client-flatten": true,
"$ref": "#/definitions/FirmwareProperties"
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
}
]
},
"FirmwareUpdateDefinition": {
"type": "object",
"description": "Firmware definition",
"properties": {
"properties": {
"title": "Firmware properties",
"description": "The editable properties of a firmware",
"x-ms-client-flatten": true,
"$ref": "#/definitions/FirmwareProperties"
}
}
},
"FirmwareProperties": {
"type": "object",
"properties": {
"fileName": {
"type": "string",
"description": "File name for a firmware that user uploaded."
},
"vendor": {
"type": "string",
"description": "Firmware vendor."
},
"model": {
"type": "string",
"description": "Firmware model."
},
"version": {
"type": "string",
"description": "Firmware version."
},
"description": {
"type": "string",
"description": "User-specified description of the firmware."
},
"fileSize": {
"description": "File size of the uploaded firmware image.",
"type": "integer",
"format": "int64",
"x-nullable": true
},
"status": {
"type": "string",
"description": "The status of firmware scan.",
"enum": [
"Pending",
"Extracting",
"Analyzing",
"Ready",
"Error"
],
"default": "Pending",
"x-ms-enum": {
"name": "status",
"modelAsString": true
}
},
"statusMessages": {
"type": "array",
"description": "A list of errors or other messages generated during firmware analysis",
"items": {
"$ref": "#/definitions/StatusMessage"
},
"x-ms-identifiers": []
},
"provisioningState": {
"description": "Provisioning state of the resource.",
"type": "string",
"enum": [
"Accepted",
"Succeeded",
"Canceled",
"Failed"
],
"x-ms-enum": {
"name": "ProvisioningState",
"modelAsString": true
},
"readOnly": true
}
},
"description": "Firmware properties."
},
"StatusMessage": {
"type": "object",
"description": "Error and status message"
}
},
"parameters": {
"FirmwareIdParameter": {
"name": "firmwareId",
"in": "path",
"required": true,
"type": "string",
"description": "The id of the firmware.",
"x-ms-parameter-location": "method"
},
"WorkspaceNameParameter": {
"name": "workspaceName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the firmware analysis workspace.",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"title": "Firmware_Create",
"operationId": "Firmware_Create",
"parameters": {
"subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE",
"resourceGroupName": "rgworkspaces-firmwares",
"workspaceName": "A7",
"firmwareId": "umrkdttp",
"api-version": "2023-02-08-preview",
"firmware": {
"properties": {
"fileName": "wresexxulcdsdd",
"vendor": "vycmdhgtmepcptyoubztiuudpkcpd",
"model": "f",
"version": "s",
"description": "uz",
"fileSize": 17,
"status": "Pending",
"statusMessages": [
{
"message": "ulvhmhokezathzzauiitu"
}
]
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"fileName": "wresexxulcdsdd",
"vendor": "vycmdhgtmepcptyoubztiuudpkcpd",
"model": "f",
"version": "s",
"description": "uz",
"fileSize": 17,
"status": "Pending",
"statusMessages": [
{
"message": "ulvhmhokezathzzauiitu"
}
],
"provisioningState": "Accepted"
},
"id": "koexkheccwpzwqob",
"name": "brmvnojpmxsgckdviynhxhftvcvbw",
"type": "vlxhdbrphhnttmxvawwwewza",
"systemData": {
"createdBy": "aylilpicryidesowemwnl",
"createdByType": "User",
"createdAt": "2023-02-19T06:40:29.228Z",
"lastModifiedBy": "bgtifu",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-02-19T06:40:29.228Z"
}
}
},
"201": {
"body": {
"properties": {
"fileName": "wresexxulcdsdd",
"vendor": "vycmdhgtmepcptyoubztiuudpkcpd",
"model": "f",
"version": "s",
"description": "uz",
"fileSize": 17,
"status": "Pending",
"statusMessages": [
{
"message": "ulvhmhokezathzzauiitu"
}
],
"provisioningState": "Accepted"
},
"id": "koexkheccwpzwqob",
"name": "brmvnojpmxsgckdviynhxhftvcvbw",
"type": "vlxhdbrphhnttmxvawwwewza",
"systemData": {
"createdBy": "aylilpicryidesowemwnl",
"createdByType": "User",
"createdAt": "2023-02-19T06:40:29.228Z",
"lastModifiedBy": "bgtifu",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-02-19T06:40:29.228Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "Firmware_Create",
"operationId": "Firmware_Create",
"parameters": {
"subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE",
"resourceGroupName": "rgworkspaces-firmwares",
"workspaceName": "A7",
"firmwareId": "umrkdttp",
"api-version": "2023-02-08-preview",
"firmware": {}
},
"responses": {
"200": {
"body": {}
},
"201": {
"body": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"title": "Firmware_Delete",
"operationId": "Firmware_Delete",
"parameters": {
"subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE",
"resourceGroupName": "rgworkspaces-firmwares",
"workspaceName": "A7",
"firmwareId": "umrkdttp",
"api-version": "2023-02-08-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"title": "Firmware_Delete",
"operationId": "Firmware_Delete",
"parameters": {
"subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE",
"resourceGroupName": "rgworkspaces-firmwares",
"workspaceName": "A7",
"firmwareId": "umrkdttp",
"api-version": "2023-02-08-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"title": "Firmware_GenerateBinaryHardeningDetails",
"operationId": "Firmware_GenerateBinaryHardeningDetails",
"parameters": {
"subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE",
"resourceGroupName": "rgworkspaces-firmwares",
"workspaceName": "A7",
"firmwareId": "umrkdttp",
"api-version": "2023-02-08-preview"
},
"responses": {
"200": {
"body": {
"binaryHardeningId": "paobczlmlkfeozykeeq",
"features": {
"nx": "True",
"pie": "True",
"relro": "True",
"canary": "True",
"stripped": "True"
},
"architecture": "rfqnzhnwitn",
"path": "ewqypeaihlnqdeesblp",
"class": "szvunaemnqnwqmfdx",
"runpath": "aecstzybleqdwwhavfcywyo",
"rpath": "jigblxjxxqiskihigkmpqgrygxxx"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"title": "Firmware_GenerateBinaryHardeningDetails",
"operationId": "Firmware_GenerateBinaryHardeningDetails",
"parameters": {
"subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE",
"resourceGroupName": "rgworkspaces-firmwares",
"workspaceName": "A7",
"firmwareId": "umrkdttp",
"api-version": "2023-02-08-preview"
},
"responses": {
"200": {
"body": {}
}
}
}
Loading