From 28760547e57605425f4a44a69848f99db59f4111 Mon Sep 17 00:00:00 2001 From: eatkimchee <93681528+eatkimchee@users.noreply.github.com> Date: Wed, 10 May 2023 23:01:00 -0400 Subject: [PATCH 1/5] add or modify files --- .../preview/2023-02-08-preview/common.json | 186 ++ .../Firmware_Create_MaximumSet_Gen.json | 89 + .../Firmware_Create_MinimumSet_Gen.json | 20 + .../Firmware_Delete_MaximumSet_Gen.json | 15 + .../Firmware_Delete_MinimumSet_Gen.json | 15 + ...BinaryHardeningDetails_MaximumSet_Gen.json | 30 + ...BinaryHardeningDetails_MinimumSet_Gen.json | 16 + ...BinaryHardeningSummary_MaximumSet_Gen.json | 22 + ...BinaryHardeningSummary_MinimumSet_Gen.json | 16 + ...nerateComponentDetails_MaximumSet_Gen.json | 26 + ...nerateComponentDetails_MinimumSet_Gen.json | 16 + ...yptoCertificateSummary_MaximumSet_Gen.json | 24 + ...yptoCertificateSummary_MinimumSet_Gen.json | 16 + ...nerateCryptoKeySummary_MaximumSet_Gen.json | 22 + ...nerateCryptoKeySummary_MinimumSet_Gen.json | 16 + ...are_GenerateCveSummary_MaximumSet_Gen.json | 23 + ...are_GenerateCveSummary_MinimumSet_Gen.json | 16 + ...re_GenerateDownloadUrl_MaximumSet_Gen.json | 19 + ...re_GenerateDownloadUrl_MinimumSet_Gen.json | 16 + ...eFilesystemDownloadUrl_MaximumSet_Gen.json | 19 + ...eFilesystemDownloadUrl_MinimumSet_Gen.json | 16 + ...rmware_GenerateSummary_MaximumSet_Gen.json | 24 + ...rmware_GenerateSummary_MinimumSet_Gen.json | 16 + .../examples/Firmware_Get_MaximumSet_Gen.json | 43 + .../examples/Firmware_Get_MinimumSet_Gen.json | 16 + ...rmware_ListByWorkspace_MaximumSet_Gen.json | 47 + ...rmware_ListByWorkspace_MinimumSet_Gen.json | 15 + ...ateBinaryHardeningList_MaximumSet_Gen.json | 35 + ...ateBinaryHardeningList_MinimumSet_Gen.json | 16 + ...tGenerateComponentList_MaximumSet_Gen.json | 31 + ...tGenerateComponentList_MinimumSet_Gen.json | 16 + ...eCryptoCertificateList_MaximumSet_Gen.json | 232 ++ ...eCryptoCertificateList_MinimumSet_Gen.json | 16 + ...tGenerateCryptoKeyList_MaximumSet_Gen.json | 104 + ...tGenerateCryptoKeyList_MinimumSet_Gen.json | 16 + ...re_ListGenerateCveList_MaximumSet_Gen.json | 39 + ...re_ListGenerateCveList_MinimumSet_Gen.json | 16 + ...neratePasswordHashList_MaximumSet_Gen.json | 29 + ...neratePasswordHashList_MinimumSet_Gen.json | 16 + .../Firmware_Update_MaximumSet_Gen.json | 89 + .../Firmware_Update_MinimumSet_Gen.json | 20 + .../Operations_List_MaximumSet_Gen.json | 28 + .../Operations_List_MinimumSet_Gen.json | 12 + .../Workspaces_Create_MaximumSet_Gen.json | 63 + .../Workspaces_Create_MinimumSet_Gen.json | 31 + .../Workspaces_Delete_MaximumSet_Gen.json | 14 + .../Workspaces_Delete_MinimumSet_Gen.json | 14 + ...aces_GenerateUploadUrl_MaximumSet_Gen.json | 21 + ...aces_GenerateUploadUrl_MinimumSet_Gen.json | 16 + .../Workspaces_Get_MaximumSet_Gen.json | 35 + .../Workspaces_Get_MinimumSet_Gen.json | 21 + ...es_ListByResourceGroup_MaximumSet_Gen.json | 38 + ...es_ListByResourceGroup_MinimumSet_Gen.json | 14 + ...ces_ListBySubscription_MaximumSet_Gen.json | 37 + ...ces_ListBySubscription_MinimumSet_Gen.json | 13 + .../Workspaces_Update_MaximumSet_Gen.json | 59 + .../Workspaces_Update_MinimumSet_Gen.json | 23 + .../preview/2023-02-08-preview/firmwares.json | 1983 +++++++++++++++++ .../2023-02-08-preview/operations.json | 79 + .../2023-02-08-preview/workspaces.json | 477 ++++ specification/fist/resource-manager/readme.md | 104 + 61 files changed, 4556 insertions(+) create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MaximumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MinimumSet_Gen.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/firmwares.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/operations.json create mode 100644 specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/workspaces.json create mode 100644 specification/fist/resource-manager/readme.md diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json new file mode 100644 index 000000000000..b5196ecfb6f2 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json @@ -0,0 +1,186 @@ +{ + "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": { + "type": "object", + "properties": { + "url": { + "description": "Token URL for creating or accessing a blob file.", + "type": "string", + "x-nullable": true + }, + "uploadUrl": { + "description": "Url for file uploading. Kept for backwards compatibility", + "type": "string", + "x-nullable": true + } + }, + "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": { + "FirmwareGroupNameParameter": { + "name": "firmwareGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the firmware group.", + "x-ms-parameter-location": "method" + }, + "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" + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MaximumSet_Gen.json new file mode 100644 index 000000000000..795a10c58500 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MaximumSet_Gen.json @@ -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" + } + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MinimumSet_Gen.json new file mode 100644 index 000000000000..77fdbbf3c36c --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MinimumSet_Gen.json @@ -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": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..72449c7949bb --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MaximumSet_Gen.json @@ -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": {} + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MinimumSet_Gen.json new file mode 100644 index 000000000000..72449c7949bb --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MinimumSet_Gen.json @@ -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": {} + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.json new file mode 100644 index 000000000000..88f9e4df2834 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.json @@ -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" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MinimumSet_Gen.json new file mode 100644 index 000000000000..15fe7e18d3b3 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MinimumSet_Gen.json @@ -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": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.json new file mode 100644 index 000000000000..1c3869ffbd34 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "Firmware_GenerateBinaryHardeningSummary", + "operationId": "Firmware_GenerateBinaryHardeningSummary", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "nx": 28, + "pie": 19, + "relro": 28, + "canary": 28, + "stripped": 17 + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MinimumSet_Gen.json new file mode 100644 index 000000000000..2d3a705dac3b --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_GenerateBinaryHardeningSummary", + "operationId": "Firmware_GenerateBinaryHardeningSummary", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MaximumSet_Gen.json new file mode 100644 index 000000000000..62bb5e3397db --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MaximumSet_Gen.json @@ -0,0 +1,26 @@ +{ + "title": "Firmware_GenerateComponentDetails", + "operationId": "Firmware_GenerateComponentDetails", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "componentId": "dwtwgmbjtftea", + "componentName": "wbjvfrmhmumeahdhkla", + "version": "dmokuviyznjbdkfxbmvhlnglfnf", + "license": "tirj", + "releaseDate": "2023-02-19T06:40:30.304Z", + "paths": [ + "bjxczktgyhpatxkgwomhgfsw" + ], + "isUpdateAvailable": "True" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MinimumSet_Gen.json new file mode 100644 index 000000000000..6391fc79b4d7 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_GenerateComponentDetails", + "operationId": "Firmware_GenerateComponentDetails", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.json new file mode 100644 index 000000000000..71b8cc0fa088 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "title": "Firmware_GenerateCryptoCertificateSummary", + "operationId": "Firmware_GenerateCryptoCertificateSummary", + "parameters": { + "subscriptionId": "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA", + "resourceGroupName": "FirmwareAnalysisRG", + "workspaceName": "default", + "firmwareId": "DECAFBAD-0000-0000-0000-BADBADBADBAD", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "totalCertificates": 5, + "pairedKeys": 2, + "expired": 3, + "expiringSoon": 1, + "weakSignature": 1, + "selfSigned": 3, + "shortKeySize": 1 + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MinimumSet_Gen.json new file mode 100644 index 000000000000..c156e8579e62 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_GenerateCryptoCertificateSummary", + "operationId": "Firmware_GenerateCryptoCertificateSummary", + "parameters": { + "subscriptionId": "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "j5QE_", + "firmwareId": "wujtpcgypfpqseyrsebolarkspy", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.json new file mode 100644 index 000000000000..1aa1a59d39bf --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "Firmware_GenerateCryptoKeySummary", + "operationId": "Firmware_GenerateCryptoKeySummary", + "parameters": { + "subscriptionId": "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA", + "resourceGroupName": "FirmwareAnalysisRG", + "workspaceName": "default", + "firmwareId": "DECAFBAD-0000-0000-0000-BADBADBADBAD", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "totalKeys": 6, + "publicKeys": 3, + "privateKeys": 3, + "pairedKeys": 3, + "shortKeySize": 2 + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MinimumSet_Gen.json new file mode 100644 index 000000000000..57a56374d133 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_GenerateCryptoKeySummary", + "operationId": "Firmware_GenerateCryptoKeySummary", + "parameters": { + "subscriptionId": "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "j5QE_", + "firmwareId": "wujtpcgypfpqseyrsebolarkspy", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MaximumSet_Gen.json new file mode 100644 index 000000000000..f7e5dd264c0d --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MaximumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "Firmware_GenerateCveSummary", + "operationId": "Firmware_GenerateCveSummary", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "critical": 29, + "high": 10, + "medium": 18, + "low": 27, + "unknown": 2, + "undefined": 22 + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MinimumSet_Gen.json new file mode 100644 index 000000000000..15f1c24d93a1 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_GenerateCveSummary", + "operationId": "Firmware_GenerateCveSummary", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json new file mode 100644 index 000000000000..ff21685019d6 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "Firmware_GenerateDownloadUrl", + "operationId": "Firmware_GenerateDownloadUrl", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "url": "dy", + "uploadUrl": "j" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MinimumSet_Gen.json new file mode 100644 index 000000000000..de82d540b654 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_GenerateDownloadUrl", + "operationId": "Firmware_GenerateDownloadUrl", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json new file mode 100644 index 000000000000..ccc68776bb13 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "Firmware_GenerateFilesystemDownloadUrl", + "operationId": "Firmware_GenerateFilesystemDownloadUrl", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "url": "dy", + "uploadUrl": "j" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json new file mode 100644 index 000000000000..7a4444d55ca9 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_GenerateFilesystemDownloadUrl", + "operationId": "Firmware_GenerateFilesystemDownloadUrl", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MaximumSet_Gen.json new file mode 100644 index 000000000000..2e636613673c --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MaximumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "title": "Firmware_GenerateSummary", + "operationId": "Firmware_GenerateSummary", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "extractedSize": 23, + "fileSize": 18, + "extractedFileCount": 17, + "componentCount": 1, + "binaryCount": 6, + "analysisTimeSeconds": 14, + "rootFileSystems": 9 + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MinimumSet_Gen.json new file mode 100644 index 000000000000..949b0eeff9e8 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_GenerateSummary", + "operationId": "Firmware_GenerateSummary", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..88698606ade5 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MaximumSet_Gen.json @@ -0,0 +1,43 @@ +{ + "title": "Firmware_Get", + "operationId": "Firmware_Get", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "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" + } + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MinimumSet_Gen.json new file mode 100644 index 000000000000..90a78dfb94da --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_Get", + "operationId": "Firmware_Get", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MaximumSet_Gen.json new file mode 100644 index 000000000000..6619f895fefc --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MaximumSet_Gen.json @@ -0,0 +1,47 @@ +{ + "title": "Firmware_ListByWorkspace", + "operationId": "Firmware_ListByWorkspace", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "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" + } + } + ], + "nextLink": "amndyuzbsnoijdl" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MinimumSet_Gen.json new file mode 100644 index 000000000000..26a88898dcb9 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "title": "Firmware_ListByWorkspace", + "operationId": "Firmware_ListByWorkspace", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.json new file mode 100644 index 000000000000..338361f3a87d --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.json @@ -0,0 +1,35 @@ +{ + "title": "Firmware_ListGenerateBinaryHardeningList", + "operationId": "Firmware_ListGenerateBinaryHardeningList", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "binaryHardeningId": "paobczlmlkfeozykeeq", + "features": { + "nx": "True", + "pie": "True", + "relro": "True", + "canary": "True", + "stripped": "True" + }, + "architecture": "rfqnzhnwitn", + "path": "ewqypeaihlnqdeesblp", + "class": "szvunaemnqnwqmfdx", + "runpath": "aecstzybleqdwwhavfcywyo", + "rpath": "jigblxjxxqiskihigkmpqgrygxxx" + } + ], + "nextLink": "mrcltpcxun" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MinimumSet_Gen.json new file mode 100644 index 000000000000..7255f75eff81 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_ListGenerateBinaryHardeningList", + "operationId": "Firmware_ListGenerateBinaryHardeningList", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MaximumSet_Gen.json new file mode 100644 index 000000000000..db68c56bb64a --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MaximumSet_Gen.json @@ -0,0 +1,31 @@ +{ + "title": "Firmware_ListGenerateComponentList", + "operationId": "Firmware_ListGenerateComponentList", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "componentId": "dwtwgmbjtftea", + "componentName": "wbjvfrmhmumeahdhkla", + "version": "dmokuviyznjbdkfxbmvhlnglfnf", + "license": "tirj", + "releaseDate": "2023-02-19T06:40:30.304Z", + "paths": [ + "bjxczktgyhpatxkgwomhgfsw" + ], + "isUpdateAvailable": "True" + } + ], + "nextLink": "dwgyx" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MinimumSet_Gen.json new file mode 100644 index 000000000000..23c069e56d6b --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_ListGenerateComponentList", + "operationId": "Firmware_ListGenerateComponentList", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.json new file mode 100644 index 000000000000..d9ee3b099b21 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.json @@ -0,0 +1,232 @@ +{ + "title": "Firmware_ListGenerateCryptoCertificateList", + "operationId": "Firmware_ListGenerateCryptoCertificateList", + "parameters": { + "subscriptionId": "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA", + "resourceGroupName": "FirmwareAnalysisRG", + "workspaceName": "default", + "firmwareId": "DECAFBAD-0000-0000-0000-BADBADBADBAD", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "cryptoCertId": "fafcad44-1770-41f3-998e-875fa688c143", + "name": "VeriSign Class 3", + "subject": { + "commonName": "VeriSign Class 3", + "organization": "Verisign, Inc.", + "organizationalUnit": "(c) 1999 Verisign inc.", + "country": "United States", + "state": "NY" + }, + "issuer": { + "commonName": "VeriSign Class 3", + "organization": "Verisign, Inc.", + "organizationalUnit": "(c) 1999 Verisign inc.", + "country": "United States", + "state": "NY" + }, + "issuedDate": "2010-02-12T20:50:16.753Z", + "expirationDate": "2012-02-12T20:50:16.753Z", + "role": "Root CA", + "signatureAlgorithm": "MD5 with RSA Encryption", + "keyAlgorithm": "RSA Encryption", + "keySize": 1024, + "encoding": "PEM", + "serialNumber": "206684696279472310254277870180966723415", + "fingerprint": "eb:04:cf:5e:b1:f3:9a:fa:76:2f:2b:b1:20:f2:96:cb:a5:20:c1:b9:7d:b1:58:95:65:b8:1c:b9:a1:7b:72:44", + "usage": [ + "Crypt", + "sign", + "auth" + ], + "filePaths": [ + "this/is/a/path", + "/this/is/another/path" + ], + "pairedKey": { + "type": "Private Key", + "id": "fafcad44-1770-41f3-998e-875fa688c143", + "additionalProperties": { + "displayName": "keyfilename.cer" + } + }, + "isExpired": "True", + "isSelfSigned": "False", + "isWeakSignature": "True", + "isShortKeySize": "True" + }, + { + "cryptoCertId": "dfc4a7e4-2037-482a-bdf8-81289335337e", + "name": "VeriSign Class 2", + "subject": { + "commonName": "VeriSign Class 3", + "organization": "Verisign, Inc.", + "organizationalUnit": "(c) 1999 Verisign inc.", + "country": "United States", + "state": "NY" + }, + "issuer": { + "commonName": "VeriSign Class 3", + "organization": "Verisign, Inc.", + "organizationalUnit": "(c) 1999 Verisign inc.", + "country": "United States", + "state": "NY" + }, + "issuedDate": "1970-01-01T00:00:00.000Z", + "expirationDate": "1999-12-31T23:59:59.999", + "role": "Intermediate CA", + "signatureAlgorithm": "SHA-1 with RSA Encryption", + "keyAlgorithm": "RSA Encryption", + "keySize": 2048, + "encoding": "PEM", + "serialNumber": "206684696279472310254277870180966723415", + "fingerprint": "eb:04:cf:5e:b1:f3:9a:fa:76:2f:2b:b1:20:f2:96:cb:a5:20:c1:b9:7d:b1:58:95:65:b8:1c:b9:a1:7b:72:44", + "usage": [ + "Crypt", + "sign", + "auth" + ], + "filePaths": [ + "this/is/a/path", + "/this/is/another/path" + ], + "pairedKey": { + "type": "Private Key", + "id": "fafcad44-1770-41f3-998e-875fa688c143", + "additionalProperties": null + }, + "isExpired": "True", + "isSelfSigned": "False", + "isWeakSignature": "False", + "isShortKeySize": "False" + }, + { + "cryptoCertId": "55d8329d-6f4b-4a36-a6a7-53f2ddf187b5", + "name": "JillianSign Class 1", + "subject": { + "commonName": "JillianSign Class 1", + "organization": "Jilliansign, Inc.", + "organizationalUnit": "(c) 2007 Jilliansign inc.", + "country": "United States", + "state": "MA" + }, + "issuer": { + "commonName": "VeriSign Class 3", + "organization": "Verisign, Inc.", + "organizationalUnit": "(c) 1999 Verisign inc.", + "country": "United States", + "state": "NY" + }, + "issuedDate": "2020-03-16T20:50:16.753Z", + "expirationDate": "2023-03-16T20:50:16.753Z", + "role": "Standard", + "signatureAlgorithm": "SHA-1 with RSA Encryption", + "keyAlgorithm": "RSA Encryption", + "keySize": 2048, + "encoding": "PEM", + "serialNumber": "206684696279472310254277870180966723415", + "fingerprint": "eb:04:cf:5e:b1:f3:9a:fa:76:2f:2b:b1:20:f2:96:cb:a5:20:c1:b9:7d:b1:58:95:65:b8:1c:b9:a1:7b:72:44", + "usage": [ + "Crypt", + "sign", + "auth" + ], + "filePaths": [ + "this/is/a/path/made/by/Jillian", + "/this/is/another/path" + ], + "isExpired": "True", + "isSelfSigned": "True", + "isWeakSignature": "False", + "isShortKeySize": "False" + }, + { + "cryptoCertId": "c9c1466a-bef5-4883-872e-bc59375f5d89", + "name": "MikeSign Class 5", + "subject": { + "commonName": "MikeSign Class 5", + "organization": "Mikesign, Inc.", + "organizationalUnit": "(c) 2021 Mikesign inc.", + "country": "United States", + "state": "MD" + }, + "issuer": { + "commonName": "VeriSign Class 3", + "organization": "Verisign, Inc.", + "organizationalUnit": "(c) 1999 Verisign inc.", + "country": "United States", + "state": "NY" + }, + "issuedDate": "2022-03-16T20:50:16.753Z", + "expirationDate": "2023-09-16T20:50:16.753Z", + "role": "Root CA", + "signatureAlgorithm": "SHA-1 with RSA Encryption", + "keyAlgorithm": "RSA Encryption", + "keySize": 2048, + "encoding": "PEM", + "serialNumber": "206684696279472310254277870180966723415", + "fingerprint": "eb:04:cf:5e:b1:f3:9a:fa:76:2f:2b:b1:20:f2:96:cb:a5:20:c1:b9:7d:b1:58:95:65:b8:1c:b9:a1:7b:72:44", + "usage": [ + "Crypt", + "sign", + "auth" + ], + "filePaths": [ + "this/is/a/path/by/Mike/but/isExpired/and/could/get/pretty/long", + "/this/is/another/path" + ], + "isExpired": "False", + "isSelfSigned": "True", + "isWeakSignature": "False", + "isShortKeySize": "False" + }, + { + "cryptoCertId": "0b580a77-228b-4786-b623-518ec8cdd564", + "name": "PeterSign Class 1000", + "subject": { + "commonName": "PeterSign Class 1000", + "organization": "Petersign, Inc.", + "organizationalUnit": "(c) 1999 Petersign inc.", + "country": "United States", + "state": "MD" + }, + "issuer": { + "commonName": "VeriSign Class 3", + "organization": "Verisign, Inc.", + "organizationalUnit": "(c) 1999 Verisign inc.", + "country": "United States", + "state": "NY" + }, + "issuedDate": "2020-03-16T20:50:16.753Z", + "expirationDate": "2030-03-16T20:50:16.753Z", + "role": "Standard", + "signatureAlgorithm": "SHA-1 with RSA Encryption", + "keyAlgorithm": "RSA Encryption", + "keySize": 2048, + "encoding": "PEM", + "serialNumber": "206684696279472310254277870180966723415", + "fingerprint": "eb:04:cf:5e:b1:f3:9a:fa:76:2f:2b:b1:20:f2:96:cb:a5:20:c1:b9:7d:b1:58:95:65:b8:1c:b9:a1:7b:72:44", + "usage": [ + "Crypt", + "sign", + "auth" + ], + "filePaths": [ + "this/is/a/path/for/Peters/puzzlers", + "/this/is/another/path" + ], + "isExpired": "False", + "isSelfSigned": "True", + "isWeakSignature": "False", + "isShortKeySize": "False" + } + ], + "nextLink": "https://somelink" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MinimumSet_Gen.json new file mode 100644 index 000000000000..30a7ea6c4064 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_ListGenerateCryptoCertificateList", + "operationId": "Firmware_ListGenerateCryptoCertificateList", + "parameters": { + "subscriptionId": "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "j5QE_", + "firmwareId": "wujtpcgypfpqseyrsebolarkspy", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.json new file mode 100644 index 000000000000..be9ea4910f37 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.json @@ -0,0 +1,104 @@ +{ + "title": "Firmware_ListGenerateCryptoKeyList", + "operationId": "Firmware_ListGenerateCryptoKeyList", + "parameters": { + "subscriptionId": "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA", + "resourceGroupName": "FirmwareAnalysisRG", + "workspaceName": "default", + "firmwareId": "DECAFBAD-0000-0000-0000-BADBADBADBAD", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "cryptoKeyId": "09c97cb7-0963-41ad-b9e2-0be7b10ac1bf", + "keyType": "Public", + "keySize": 256, + "usage": [], + "keyAlgorithm": "ECDSA", + "filePaths": [ + "this/is/a/file/path", + "this/is/another/file/path" + ], + "pairedKey": { + "type": "Certificate", + "id": "09c97cb7-0963-41ad-b9e2-0be7b10ac1bf", + "additionalProperties": { + "displayName": "VeriSign Class 2" + } + }, + "isShortKeySize": "False" + }, + { + "cryptoKeyId": "98ff3d6c-bb76-4037-b73e-89b3b47efd71", + "keyType": "Public", + "keySize": 2048, + "usage": [ + "SSH" + ], + "keyAlgorithm": "RSA", + "filePaths": [ + "this/is/a/file/path_pub.pem" + ], + "pairedKey": { + "type": "Private Key", + "id": "adfe0c4c-7d23-4f4f-a8bb-e65b8f455287", + "additionalProperties": null + }, + "isShortKeySize": "False" + }, + { + "cryptoKeyId": "1beb6fac-1cfe-431c-9437-ea8cfa9e6aaa", + "keyType": "Public", + "keySize": 128, + "usage": [], + "keyAlgorithm": "ECDSA", + "filePaths": [], + "isShortKeySize": "True" + }, + { + "cryptoKeyId": "adfe0c4c-7d23-4f4f-a8bb-e65b8f455287", + "keyType": "Private", + "usage": [ + "SSH" + ], + "keySize": 2048, + "keyAlgorithm": "RSA", + "filePaths": [ + "this/is/a/file/path.pem" + ], + "pairedKey": { + "type": "Public Key", + "id": "98ff3d6c-bb76-4037-b73e-89b3b47efd71" + }, + "isShortKeySize": "False" + }, + { + "cryptoKeyId": "8c8d1003-efb2-4c54-83d6-16dc6a5bbfd5", + "keyType": "Private", + "keySize": 1024, + "usage": [], + "keyAlgorithm": "RSA", + "filePaths": [], + "isShortKeySize": "True" + }, + { + "cryptoKeyId": "0b04fc4c-bfbd-491b-b4c8-e93b0b0b28e9", + "keyType": "Private", + "keySize": 256, + "usage": [], + "keyAlgorithm": "MD5", + "filePaths": [ + "this/is/a/file/path", + "this/is/another/file/path" + ], + "isShortKeySize": "False" + } + ], + "nextLink": "https://nextlink" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MinimumSet_Gen.json new file mode 100644 index 000000000000..d84c2ffe772e --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_ListGenerateCryptoKeyList", + "operationId": "Firmware_ListGenerateCryptoKeyList", + "parameters": { + "subscriptionId": "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "j5QE_", + "firmwareId": "wujtpcgypfpqseyrsebolarkspy", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MaximumSet_Gen.json new file mode 100644 index 000000000000..6349991186b5 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MaximumSet_Gen.json @@ -0,0 +1,39 @@ +{ + "title": "Firmware_ListGenerateCveList", + "operationId": "Firmware_ListGenerateCveList", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "cveId": "bcmdkqlpeohuweqapzghpxxigubbnv", + "component": {}, + "severity": "vwsqmwqxsdvszzdsfhtjep", + "name": "x", + "cvssScore": "kc", + "cvssVersion": "wlacx", + "cvssV2Score": "qdzatwwrfqs", + "cvssV3Score": "hltdeqtpizrlxquimvbahazbluzy", + "publishDate": "2023-02-19T06:40:31.081Z", + "updatedDate": "2023-02-19T06:40:31.081Z", + "links": [ + { + "href": "dioeprjnkzyk", + "label": "oxeatanlztnthd" + } + ], + "description": "jr" + } + ], + "nextLink": "xdnijivbjkonjeggmvsxodcaphxrhp" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MinimumSet_Gen.json new file mode 100644 index 000000000000..14eb4d028cc3 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_ListGenerateCveList", + "operationId": "Firmware_ListGenerateCveList", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.json new file mode 100644 index 000000000000..8a653a156734 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.json @@ -0,0 +1,29 @@ +{ + "title": "Firmware_ListGeneratePasswordHashList", + "operationId": "Firmware_ListGeneratePasswordHashList", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "passwordHashId": "twelvrhxk", + "filePath": "xxtrysuheflpailcqzqbvytnsi", + "salt": "pdlihxaabeaxllsfdthctdcmltyhja", + "hash": "ntksbuckwsaxdzlstqwenms", + "context": "gjeeqjzcrnbxiojt", + "username": "qvfpcvewrzdosvl", + "algorithm": "mzvaikhxwjbzddplm" + } + ], + "nextLink": "gvtmwshwgt" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MinimumSet_Gen.json new file mode 100644 index 000000000000..3faef6507e08 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Firmware_ListGeneratePasswordHashList", + "operationId": "Firmware_ListGeneratePasswordHashList", + "parameters": { + "subscriptionId": "685C0C6F-9867-4B1C-A534-AA3A05B54BCE", + "resourceGroupName": "rgworkspaces-firmwares", + "workspaceName": "A7", + "firmwareId": "umrkdttp", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..caa5bd1adebb --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MaximumSet_Gen.json @@ -0,0 +1,89 @@ +{ + "title": "Firmware_Update", + "operationId": "Firmware_Update", + "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" + } + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MinimumSet_Gen.json new file mode 100644 index 000000000000..2af9c79d6605 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "Firmware_Update", + "operationId": "Firmware_Update", + "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": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..57e6b2bcb5cf --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "fvpbaphlxaooymk", + "isDataAction": true, + "display": { + "provider": "hjnmhvyawkrqwpakyneaal", + "resource": "erhsibwfehcpdah", + "operation": "tcikadfeehm", + "description": "xxtlajuenswnnpgrivilipjqc" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "xjnjfnas" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..57bec60bb659 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MaximumSet_Gen.json new file mode 100644 index 000000000000..f86aa5003aaa --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MaximumSet_Gen.json @@ -0,0 +1,63 @@ +{ + "title": "Workspaces_Create", + "operationId": "Workspaces_Create", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "resourceGroupName": "rgworkspaces", + "workspaceName": "E___-3", + "api-version": "2023-02-08-preview", + "workspace": { + "properties": {}, + "tags": { + "key450": "rzqqumbpfsbibnpirsm" + }, + "location": "jjwbseilitjgdrhbvvkwviqj" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Accepted" + }, + "tags": { + "key450": "rzqqumbpfsbibnpirsm" + }, + "location": "jjwbseilitjgdrhbvvkwviqj", + "id": "uuuwv", + "name": "tbrqhnzpsatbrnhtj", + "type": "angrpzpxmuppzqpzpljasjirao", + "systemData": { + "createdBy": "kmgstbzxtl", + "createdByType": "User", + "createdAt": "2023-02-19T05:35:25.545Z", + "lastModifiedBy": "rfnhyhbyqzxnumjmjhwkhduztidk", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-02-19T05:35:25.545Z" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Accepted" + }, + "tags": { + "key450": "rzqqumbpfsbibnpirsm" + }, + "location": "jjwbseilitjgdrhbvvkwviqj", + "id": "uuuwv", + "name": "tbrqhnzpsatbrnhtj", + "type": "angrpzpxmuppzqpzpljasjirao", + "systemData": { + "createdBy": "kmgstbzxtl", + "createdByType": "User", + "createdAt": "2023-02-19T05:35:25.545Z", + "lastModifiedBy": "rfnhyhbyqzxnumjmjhwkhduztidk", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-02-19T05:35:25.545Z" + } + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MinimumSet_Gen.json new file mode 100644 index 000000000000..b99000c68cf7 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MinimumSet_Gen.json @@ -0,0 +1,31 @@ +{ + "title": "Workspaces_Create", + "operationId": "Workspaces_Create", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "resourceGroupName": "rgworkspaces", + "workspaceName": "E___-3", + "api-version": "2023-02-08-preview", + "workspace": { + "location": "jjwbseilitjgdrhbvvkwviqj" + } + }, + "responses": { + "200": { + "body": { + "location": "jjwbseilitjgdrhbvvkwviqj", + "id": "uuuwv", + "name": "tbrqhnzpsatbrnhtj", + "type": "angrpzpxmuppzqpzpljasjirao" + } + }, + "201": { + "body": { + "location": "jjwbseilitjgdrhbvvkwviqj", + "id": "uuuwv", + "name": "tbrqhnzpsatbrnhtj", + "type": "angrpzpxmuppzqpzpljasjirao" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..e165b5ba51d4 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MaximumSet_Gen.json @@ -0,0 +1,14 @@ +{ + "title": "Workspaces_Delete", + "operationId": "Workspaces_Delete", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "resourceGroupName": "rgworkspaces", + "workspaceName": "E___-3", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MinimumSet_Gen.json new file mode 100644 index 000000000000..e165b5ba51d4 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MinimumSet_Gen.json @@ -0,0 +1,14 @@ +{ + "title": "Workspaces_Delete", + "operationId": "Workspaces_Delete", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "resourceGroupName": "rgworkspaces", + "workspaceName": "E___-3", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json new file mode 100644 index 000000000000..ea65a9c2b7cf --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "Workspaces_GenerateUploadUrl", + "operationId": "Workspaces_GenerateUploadUrl", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "resourceGroupName": "rgworkspaces", + "workspaceName": "E___-3", + "api-version": "2023-02-08-preview", + "generateUploadUrl": { + "firmwareId": "ytsfprbywi" + } + }, + "responses": { + "200": { + "body": { + "url": "tgmbofoecnedssduxadniphabgxgwq", + "uploadUrl": "uplddyonf" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json new file mode 100644 index 000000000000..7631f5ce230c --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Workspaces_GenerateUploadUrl", + "operationId": "Workspaces_GenerateUploadUrl", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "resourceGroupName": "rgworkspaces", + "workspaceName": "E___-3", + "api-version": "2023-02-08-preview", + "generateUploadUrl": {} + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..baf53a57645f --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MaximumSet_Gen.json @@ -0,0 +1,35 @@ +{ + "title": "Workspaces_Get", + "operationId": "Workspaces_Get", + "parameters": { + "subscriptionId": "9781B4B5-0922-472A-80F0-B743D0596694", + "resourceGroupName": "rgworkspaces", + "workspaceName": "E_US", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Accepted" + }, + "tags": { + "key6364": "itpmlxzoingnevgitv" + }, + "location": "zxwrauqottoy", + "id": "vdqbannpvrsembsinbyaupmpxsdi", + "name": "vbgktdhddtb", + "type": "ux", + "systemData": { + "createdBy": "vnrbl", + "createdByType": "User", + "createdAt": "2023-04-21T14:59:45.580Z", + "lastModifiedBy": "zmmusinjpfjqy", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-04-21T14:59:45.580Z" + } + } + }, + "304": {} + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MinimumSet_Gen.json new file mode 100644 index 000000000000..0bc1b824cede --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "Workspaces_Get", + "operationId": "Workspaces_Get", + "parameters": { + "subscriptionId": "9781B4B5-0922-472A-80F0-B743D0596694", + "resourceGroupName": "rgworkspaces", + "workspaceName": "E_US", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "location": "zxwrauqottoy", + "id": "uuuwv", + "name": "tbrqhnzpsatbrnhtj", + "type": "angrpzpxmuppzqpzpljasjirao" + } + }, + "304": {} + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json new file mode 100644 index 000000000000..3c18f63777cd --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json @@ -0,0 +1,38 @@ +{ + "title": "Workspaces_ListByResourceGroup", + "operationId": "Workspaces_ListByResourceGroup", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "resourceGroupName": "rgworkspaces", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Accepted" + }, + "tags": { + "key450": "rzqqumbpfsbibnpirsm" + }, + "location": "jjwbseilitjgdrhbvvkwviqj", + "id": "uuuwv", + "name": "tbrqhnzpsatbrnhtj", + "type": "angrpzpxmuppzqpzpljasjirao", + "systemData": { + "createdBy": "kmgstbzxtl", + "createdByType": "User", + "createdAt": "2023-02-19T05:35:25.545Z", + "lastModifiedBy": "rfnhyhbyqzxnumjmjhwkhduztidk", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-02-19T05:35:25.545Z" + } + } + ], + "nextLink": "tcqzxniuo" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json new file mode 100644 index 000000000000..ebd87441401b --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json @@ -0,0 +1,14 @@ +{ + "title": "Workspaces_ListByResourceGroup", + "operationId": "Workspaces_ListByResourceGroup", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "resourceGroupName": "rgworkspaces", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..c9a3dcd10ea4 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "Workspaces_ListBySubscription", + "operationId": "Workspaces_ListBySubscription", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Accepted" + }, + "tags": { + "key450": "rzqqumbpfsbibnpirsm" + }, + "location": "jjwbseilitjgdrhbvvkwviqj", + "id": "uuuwv", + "name": "tbrqhnzpsatbrnhtj", + "type": "angrpzpxmuppzqpzpljasjirao", + "systemData": { + "createdBy": "kmgstbzxtl", + "createdByType": "User", + "createdAt": "2023-02-19T05:35:25.545Z", + "lastModifiedBy": "rfnhyhbyqzxnumjmjhwkhduztidk", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-02-19T05:35:25.545Z" + } + } + ], + "nextLink": "tcqzxniuo" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MinimumSet_Gen.json new file mode 100644 index 000000000000..05656ec45b17 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MinimumSet_Gen.json @@ -0,0 +1,13 @@ +{ + "title": "Workspaces_ListBySubscription", + "operationId": "Workspaces_ListBySubscription", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "api-version": "2023-02-08-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..e3b37f13d03d --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "Workspaces_Update", + "operationId": "Workspaces_Update", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "resourceGroupName": "rgworkspaces", + "workspaceName": "E___-3", + "api-version": "2023-02-08-preview", + "workspace": { + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Accepted" + }, + "tags": { + "key450": "rzqqumbpfsbibnpirsm" + }, + "location": "jjwbseilitjgdrhbvvkwviqj", + "id": "uuuwv", + "name": "tbrqhnzpsatbrnhtj", + "type": "angrpzpxmuppzqpzpljasjirao", + "systemData": { + "createdBy": "kmgstbzxtl", + "createdByType": "User", + "createdAt": "2023-02-19T05:35:25.545Z", + "lastModifiedBy": "rfnhyhbyqzxnumjmjhwkhduztidk", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-02-19T05:35:25.545Z" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Accepted" + }, + "tags": { + "key450": "rzqqumbpfsbibnpirsm" + }, + "location": "jjwbseilitjgdrhbvvkwviqj", + "id": "uuuwv", + "name": "tbrqhnzpsatbrnhtj", + "type": "angrpzpxmuppzqpzpljasjirao", + "systemData": { + "createdBy": "kmgstbzxtl", + "createdByType": "User", + "createdAt": "2023-02-19T05:35:25.545Z", + "lastModifiedBy": "rfnhyhbyqzxnumjmjhwkhduztidk", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-02-19T05:35:25.545Z" + } + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MinimumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MinimumSet_Gen.json new file mode 100644 index 000000000000..43fb1e8fc44d --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MinimumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "Workspaces_Update", + "operationId": "Workspaces_Update", + "parameters": { + "subscriptionId": "5443A01A-5242-4950-AC1A-2DD362180254", + "resourceGroupName": "rgworkspaces", + "workspaceName": "E___-3", + "api-version": "2023-02-08-preview", + "workspace": {} + }, + "responses": { + "200": { + "body": { + "location": "jjwbseilitjgdrhbvvkwviqj" + } + }, + "201": { + "body": { + "location": "jjwbseilitjgdrhbvvkwviqj" + } + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/firmwares.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/firmwares.json new file mode 100644 index 000000000000..322aa19940ca --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/firmwares.json @@ -0,0 +1,1983 @@ +{ + "swagger": "2.0", + "info": { + "version": "2023-02-08-preview", + "title": "fist", + "description": "Firmware & IoT Security" + }, + "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": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares": { + "get": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_ListByWorkspace", + "description": "Lists all of firmwares inside a workspace.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirmwareList" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Firmware_ListByWorkspace_MaximumSet_Gen": { + "$ref": "./examples/Firmware_ListByWorkspace_MaximumSet_Gen.json" + }, + "Firmware_ListByWorkspace_MinimumSet_Gen": { + "$ref": "./examples/Firmware_ListByWorkspace_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}": { + "put": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_Create", + "description": "The operation to create a firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FirmwareCreateBodyParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./common.json#/definitions/Firmware" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "./common.json#/definitions/Firmware" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_Create_MaximumSet_Gen": { + "$ref": "./examples/Firmware_Create_MaximumSet_Gen.json" + }, + "Firmware_Create_MinimumSet_Gen": { + "$ref": "./examples/Firmware_Create_MinimumSet_Gen.json" + } + } + }, + "patch": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_Update", + "description": "The operation to update firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FirmwareUpdateBodyParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./common.json#/definitions/Firmware" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "./common.json#/definitions/Firmware" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_Update_MaximumSet_Gen": { + "$ref": "./examples/Firmware_Update_MaximumSet_Gen.json" + }, + "Firmware_Update_MinimumSet_Gen": { + "$ref": "./examples/Firmware_Update_MinimumSet_Gen.json" + } + } + }, + "delete": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_Delete", + "description": "The operation to delete a firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_Delete_MaximumSet_Gen": { + "$ref": "./examples/Firmware_Delete_MaximumSet_Gen.json" + }, + "Firmware_Delete_MinimumSet_Gen": { + "$ref": "./examples/Firmware_Delete_MinimumSet_Gen.json" + } + } + }, + "get": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_Get", + "description": "Get firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./common.json#/definitions/Firmware" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_Get_MaximumSet_Gen": { + "$ref": "./examples/Firmware_Get_MaximumSet_Gen.json" + }, + "Firmware_Get_MinimumSet_Gen": { + "$ref": "./examples/Firmware_Get_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateDownloadUrl": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_GenerateDownloadUrl", + "description": "The operation to a url for file download.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./common.json#/definitions/UrlToken" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_GenerateDownloadUrl_MaximumSet_Gen": { + "$ref": "./examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json" + }, + "Firmware_GenerateDownloadUrl_MinimumSet_Gen": { + "$ref": "./examples/Firmware_GenerateDownloadUrl_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateFilesystemDownloadUrl": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_GenerateFilesystemDownloadUrl", + "description": "The operation to a url for tar file download.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./common.json#/definitions/UrlToken" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen": { + "$ref": "./examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json" + }, + "Firmware_GenerateFilesystemDownloadUrl_MinimumSet_Gen": { + "$ref": "./examples/Firmware_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateSummary": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_GenerateSummary", + "description": "The operation to get a scan summary.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirmwareSummary" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_GenerateSummary_MaximumSet_Gen": { + "$ref": "./examples/Firmware_GenerateSummary_MaximumSet_Gen.json" + }, + "Firmware_GenerateSummary_MinimumSet_Gen": { + "$ref": "./examples/Firmware_GenerateSummary_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateComponentList": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_ListGenerateComponentList", + "description": "The operation to list all components result for a firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ComponentList" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Firmware_ListGenerateComponentList_MaximumSet_Gen": { + "$ref": "./examples/Firmware_ListGenerateComponentList_MaximumSet_Gen.json" + }, + "Firmware_ListGenerateComponentList_MinimumSet_Gen": { + "$ref": "./examples/Firmware_ListGenerateComponentList_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateComponentDetails": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_GenerateComponentDetails", + "description": "The operation to get component details for a firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Component" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_GenerateComponentDetails_MaximumSet_Gen": { + "$ref": "./examples/Firmware_GenerateComponentDetails_MaximumSet_Gen.json" + }, + "Firmware_GenerateComponentDetails_MinimumSet_Gen": { + "$ref": "./examples/Firmware_GenerateComponentDetails_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningList": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_ListGenerateBinaryHardeningList", + "description": "The operation to list all binary hardening result for a firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BinaryHardeningList" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen": { + "$ref": "./examples/Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.json" + }, + "Firmware_ListGenerateBinaryHardeningList_MinimumSet_Gen": { + "$ref": "./examples/Firmware_ListGenerateBinaryHardeningList_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningSummary": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_GenerateBinaryHardeningSummary", + "description": "The operation to list the binary hardening summary percentages for a firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BinaryHardeningSummary" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen": { + "$ref": "./examples/Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.json" + }, + "Firmware_GenerateBinaryHardeningSummary_MinimumSet_Gen": { + "$ref": "./examples/Firmware_GenerateBinaryHardeningSummary_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningDetails": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_GenerateBinaryHardeningDetails", + "description": "The operation to get binary hardening details for a firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BinaryHardening" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen": { + "$ref": "./examples/Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.json" + }, + "Firmware_GenerateBinaryHardeningDetails_MinimumSet_Gen": { + "$ref": "./examples/Firmware_GenerateBinaryHardeningDetails_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generatePasswordHashList": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_ListGeneratePasswordHashList", + "description": "The operation to list all password hashes for a firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PasswordHashList" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Firmware_ListGeneratePasswordHashList_MaximumSet_Gen": { + "$ref": "./examples/Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.json" + }, + "Firmware_ListGeneratePasswordHashList_MinimumSet_Gen": { + "$ref": "./examples/Firmware_ListGeneratePasswordHashList_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCveList": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_ListGenerateCveList", + "description": "The operation to list all cve results for a firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CveList" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Firmware_ListGenerateCveList_MaximumSet_Gen": { + "$ref": "./examples/Firmware_ListGenerateCveList_MaximumSet_Gen.json" + }, + "Firmware_ListGenerateCveList_MinimumSet_Gen": { + "$ref": "./examples/Firmware_ListGenerateCveList_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCveSummary": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_GenerateCveSummary", + "description": "The operation to provide a high level summary of the CVEs reported for the firmware image.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CveSummary" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_GenerateCveSummary_MaximumSet_Gen": { + "$ref": "./examples/Firmware_GenerateCveSummary_MaximumSet_Gen.json" + }, + "Firmware_GenerateCveSummary_MinimumSet_Gen": { + "$ref": "./examples/Firmware_GenerateCveSummary_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoCertificateSummary": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_GenerateCryptoCertificateSummary", + "description": "The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CryptoCertificateSummary" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen": { + "$ref": "./examples/Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.json" + }, + "Firmware_GenerateCryptoCertificateSummary_MinimumSet_Gen": { + "$ref": "./examples/Firmware_GenerateCryptoCertificateSummary_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoKeySummary": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_GenerateCryptoKeySummary", + "description": "The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CryptoKeySummary" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Firmware_GenerateCryptoKeySummary_MaximumSet_Gen": { + "$ref": "./examples/Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.json" + }, + "Firmware_GenerateCryptoKeySummary_MinimumSet_Gen": { + "$ref": "./examples/Firmware_GenerateCryptoKeySummary_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoCertificateList": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_ListGenerateCryptoCertificateList", + "description": "The operation to list all crypto certificates for a firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CryptoCertificateList" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen": { + "$ref": "./examples/Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.json" + }, + "Firmware_ListGenerateCryptoCertificateList_MinimumSet_Gen": { + "$ref": "./examples/Firmware_ListGenerateCryptoCertificateList_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoKeyList": { + "post": { + "tags": [ + "Firmwares" + ], + "operationId": "Firmware_ListGenerateCryptoKeyList", + "description": "The operation to list all crypto keys for a firmware.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "./common.json#/parameters/FirmwareIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CryptoKeyList" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen": { + "$ref": "./examples/Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.json" + }, + "Firmware_ListGenerateCryptoKeyList_MinimumSet_Gen": { + "$ref": "./examples/Firmware_ListGenerateCryptoKeyList_MinimumSet_Gen.json" + } + } + } + } + }, + "definitions": { + "FirmwareList": { + "type": "object", + "description": "List of firmwares", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "./common.json#/definitions/Firmware" + }, + "description": "The list of firmwares." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of asset." + } + } + }, + "FirmwareSummary": { + "type": "object", + "properties": { + "extractedSize": { + "description": "Total extracted size of the firmware in bytes.", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "fileSize": { + "description": "Firmware file size in bytes.", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "extractedFileCount": { + "description": "Extracted file count.", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "componentCount": { + "description": "Components count.", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "binaryCount": { + "description": "Binary count", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "analysisTimeSeconds": { + "description": "Time used for analysis", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "rootFileSystems": { + "description": "The number of root file systems found.", + "type": "integer", + "format": "int64", + "x-nullable": true + } + }, + "description": "Summary result after scanning the firmware." + }, + "Component": { + "type": "object", + "properties": { + "componentId": { + "description": "ID for the component.", + "type": "string", + "x-nullable": true + }, + "componentName": { + "description": "Name for the component.", + "type": "string", + "x-nullable": true + }, + "version": { + "description": "Version for the component.", + "type": "string", + "x-nullable": true + }, + "license": { + "description": "License for the component.", + "type": "string", + "x-nullable": true + }, + "releaseDate": { + "type": "string", + "format": "date-time", + "description": "Release date for the component." + }, + "paths": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Paths of the component." + }, + "isUpdateAvailable": { + "description": "Flag if new update is available for the component.", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "isUpdateAvailable", + "modelAsString": true + } + } + }, + "description": "Component of a firmware." + }, + "ComponentList": { + "type": "object", + "description": "List result for components", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Component" + }, + "description": "The list of components.", + "x-ms-identifiers": [ + "componentId" + ] + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of asset." + } + } + }, + "BinaryHardeningFeatures": { + "type": "object", + "properties": { + "nx": { + "description": "NX flag.", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "nxFlag", + "modelAsString": true + } + }, + "pie": { + "description": "PIE flag.", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "pieFlag", + "modelAsString": true + } + }, + "relro": { + "description": "RELRO flag.", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "relroFlag", + "modelAsString": true + } + }, + "canary": { + "description": "Canary flag.", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "canaryFlag", + "modelAsString": true + } + }, + "stripped": { + "description": "Stripped flag.", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "strippedFlag", + "modelAsString": true + } + } + }, + "description": "Binary hardening features." + }, + "BinaryHardening": { + "type": "object", + "properties": { + "binaryHardeningId": { + "description": "ID for the binary hardening result.", + "type": "string", + "x-nullable": true + }, + "features": { + "title": "BinaryHardeningFeatures", + "description": "Binary hardening features.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BinaryHardeningFeatures" + }, + "architecture": { + "description": "The architecture of the uploaded firmware.", + "type": "string", + "x-nullable": true + }, + "path": { + "description": "path for binary hardening.", + "type": "string", + "x-nullable": true + }, + "class": { + "description": "class for binary hardening.", + "type": "string", + "x-nullable": true + }, + "runpath": { + "description": "The runpath of the uploaded firmware.", + "type": "string", + "x-nullable": true + }, + "rpath": { + "description": "The rpath of the uploaded firmware.", + "type": "string", + "x-nullable": true + } + }, + "description": "Binary hardening of a firmware." + }, + "BinaryHardeningSummary": { + "type": "object", + "properties": { + "totalFiles": { + "description": "Total number of binaries that were analyzed", + "type": "integer", + "format": "int64" + }, + "nx": { + "description": "NX summary percentage", + "type": "integer", + "format": "int32", + "x-nullable": true + }, + "pie": { + "description": "PIE summary percentage", + "type": "integer", + "format": "int32", + "x-nullable": true + }, + "relro": { + "description": "RELRO summary percentage", + "type": "integer", + "format": "int32", + "x-nullable": true + }, + "canary": { + "description": "Canary summary percentage", + "type": "integer", + "format": "int32", + "x-nullable": true + }, + "stripped": { + "description": "Stripped summary percentage", + "type": "integer", + "format": "int32", + "x-nullable": true + } + }, + "description": "Binary hardening summary percentages." + }, + "BinaryHardeningList": { + "type": "object", + "description": "List result for binary hardening", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BinaryHardening" + }, + "description": "The list of binary hardening results.", + "x-ms-identifiers": [ + "binaryHardeningId" + ] + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of asset." + } + } + }, + "PasswordHashList": { + "type": "object", + "description": "Password hashes list", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PasswordHash" + }, + "description": "Password hashes list", + "x-ms-identifiers": [ + "passwordHashId" + ] + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of asset." + } + } + }, + "PasswordHash": { + "type": "object", + "properties": { + "passwordHashId": { + "description": "ID for password hash", + "type": "string", + "x-nullable": true + }, + "filePath": { + "description": "File path of the password hash", + "type": "string", + "x-nullable": true + }, + "salt": { + "description": "Salt of the password hash", + "type": "string", + "x-nullable": true + }, + "hash": { + "description": "Hash of the password", + "type": "string", + "x-nullable": true + }, + "context": { + "description": "Context of password hash", + "type": "string", + "x-nullable": true + }, + "username": { + "description": "User name of password hash", + "type": "string", + "x-nullable": true + }, + "algorithm": { + "description": "Algorithm of the password hash", + "type": "string", + "x-nullable": true + } + }, + "description": "Password hash properties" + }, + "CryptoKeyList": { + "type": "object", + "description": "Crypto keys list", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/CryptoKey" + }, + "description": "Crypto keys list", + "x-ms-identifiers": [ + "cryptoKeyId" + ] + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of asset." + } + } + }, + "CryptoKey": { + "type": "object", + "properties": { + "cryptoKeyId": { + "description": "ID for the key.", + "type": "string", + "x-nullable": true + }, + "keyType": { + "description": "Type of the key (public or private).", + "type": "string", + "x-nullable": true + }, + "keySize": { + "description": "Size of the key in bits.", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "keyAlgorithm": { + "description": "Key algorithm name.", + "type": "string", + "x-nullable": true + }, + "usage": { + "description": "Functions the key can fulfill.", + "type": "array", + "items": { + "type": "string" + }, + "x-nullable": true + }, + "filePaths": { + "type": "array", + "readOnly": true, + "description": "List of files paths for this key.", + "items": { + "type": "string" + }, + "x-nullable": true + }, + "pairedKey": { + "description": "A matching paired key or certificate.", + "$ref": "#/definitions/PairedKey", + "x-nullable": true + }, + "isShortKeySize": { + "description": "Indicates the key size is considered too small to be secure for the algorithm.", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "isShortKeySize", + "modelAsString": true + }, + "x-nullable": true + } + }, + "description": "Crypto key properties" + }, + "CryptoKeySummary": { + "type": "object", + "properties": { + "totalKeys": { + "description": "Total number of cryptographic keys found.", + "type": "integer", + "format": "int64" + }, + "publicKeys": { + "description": "Total number of (non-certificate) public keys found.", + "type": "integer", + "format": "int64" + }, + "privateKeys": { + "description": "Total number of private keys found.", + "type": "integer", + "format": "int64" + }, + "pairedKeys": { + "description": "Total number of keys found that have a matching paired key or certificate.", + "type": "integer", + "format": "int64" + }, + "shortKeySize": { + "description": "Total number of keys found that have an insecure key size for the algorithm.", + "type": "integer", + "format": "int64" + } + }, + "description": "Cryptographic key summary values." + }, + "CryptoCertificateList": { + "type": "object", + "description": "Crypto certificates list", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/CryptoCertificate" + }, + "description": "Crypto certificates list", + "x-ms-identifiers": [ + "cryptoCertId" + ] + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of asset." + } + } + }, + "CryptoCertificate": { + "type": "object", + "properties": { + "cryptoCertId": { + "description": "ID for the certificate.", + "type": "string", + "x-nullable": true + }, + "name": { + "description": "Name of the certificate.", + "type": "string", + "x-nullable": true + }, + "subject": { + "description": "Subject information of the certificate.", + "$ref": "#/definitions/CryptoCertificateEntity", + "x-nullable": true + }, + "issuer": { + "description": "Issuer information of the certificate.", + "$ref": "#/definitions/CryptoCertificateEntity", + "x-nullable": true + }, + "issuedDate": { + "type": "string", + "format": "date-time", + "description": "Issue date for the certificate.", + "x-nullable": true + }, + "expirationDate": { + "type": "string", + "format": "date-time", + "description": "Expiration date for the certificate.", + "x-nullable": true + }, + "role": { + "description": "Role of the certificate (Root CA, etc)", + "type": "string", + "x-nullable": true + }, + "signatureAlgorithm": { + "description": "The signature algorithm used in the certificate.", + "type": "string", + "x-nullable": true + }, + "keySize": { + "description": "Size of the certificate's key in bits", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "keyAlgorithm": { + "description": "Key algorithm used in the certificate.", + "type": "string", + "x-nullable": true + }, + "encoding": { + "description": "Encoding used for the certificate.", + "type": "string", + "x-nullable": true + }, + "serialNumber": { + "description": "Serial number of the certificate.", + "type": "string", + "x-nullable": true + }, + "fingerprint": { + "description": "Fingerprint of the certificate.", + "type": "string", + "x-nullable": true + }, + "usage": { + "description": "List of functions the certificate can fulfill.", + "type": "array", + "items": { + "type": "string" + }, + "x-nullable": true + }, + "filePaths": { + "type": "array", + "readOnly": true, + "description": "List of files paths for this certificate", + "items": { + "type": "string" + }, + "x-nullable": true + }, + "pairedKey": { + "description": "A matching paired private key.", + "$ref": "#/definitions/PairedKey", + "x-nullable": true + }, + "isExpired": { + "description": "Indicates if the certificate is expired.", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "isExpired", + "modelAsString": true + }, + "x-nullable": true + }, + "isSelfSigned": { + "description": "Indicates if the certificate was self-signed.", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "isSelfSigned", + "modelAsString": true + }, + "x-nullable": true + }, + "isWeakSignature": { + "description": "Indicates the signature algorithm used is insecure.", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "isWeakSignature", + "modelAsString": true + }, + "x-nullable": true + }, + "isShortKeySize": { + "description": "Indicates the certificate's key size is considered too small to be secure for the key algorithm.", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "isShortKeySize", + "modelAsString": true + }, + "x-nullable": true + } + }, + "description": "Crypto certificate properties" + }, + "CryptoCertificateEntity": { + "type": "object", + "description": "Information on an entity (distinguished name) in a cryptographic certificate.", + "properties": { + "commonName": { + "description": "Common name of the certificate entity.", + "type": "string", + "x-nullable": true + }, + "organization": { + "description": "Organization of the certificate entity.", + "type": "string", + "x-nullable": true + }, + "organizationalUnit": { + "description": "The organizational unit of the certificate entity.", + "type": "string", + "x-nullable": true + }, + "state": { + "description": "Geographical state or province of the certificate entity.", + "type": "string", + "x-nullable": true + }, + "country": { + "description": "Country code of the certificate entity.", + "type": "string", + "x-nullable": true + } + } + }, + "CryptoCertificateSummary": { + "type": "object", + "properties": { + "totalCertificates": { + "description": "Total number of certificates found.", + "type": "integer", + "format": "int64" + }, + "pairedKeys": { + "description": "Total number of paired private keys found for the certificates.", + "type": "integer", + "format": "int64" + }, + "expired": { + "description": "Total number of expired certificates found.", + "type": "integer", + "format": "int64" + }, + "expiringSoon": { + "description": "Total number of nearly expired certificates found.", + "type": "integer", + "format": "int64" + }, + "weakSignature": { + "description": "Total number of certificates found using a weak signature algorithm.", + "type": "integer", + "format": "int64" + }, + "selfSigned": { + "description": "Total number of certificates found that are self-signed.", + "type": "integer", + "format": "int64" + }, + "shortKeySize": { + "description": "Total number of certificates found that have an insecure key size for the key algorithm.", + "type": "integer", + "format": "int64" + } + }, + "description": "Cryptographic certificate summary values." + }, + "CveList": { + "type": "object", + "description": "List result for CVE", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Cve" + }, + "description": "The list of CVE results.", + "x-ms-identifiers": [ + "cveId" + ] + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of asset." + } + } + }, + "CveSummary": { + "type": "object", + "properties": { + "critical": { + "description": "The total number of critical severity CVEs detected", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "high": { + "description": "The total number of high severity CVEs detected", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "medium": { + "description": "The total number of medium severity CVEs detected", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "low": { + "description": "The total number of low severity CVEs detected", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "unknown": { + "description": "The total number of unknown severity CVEs detected", + "type": "integer", + "format": "int64", + "x-nullable": true + }, + "undefined": { + "description": "The total number of undefined severity CVEs detected", + "type": "integer", + "format": "int64", + "x-nullable": true + } + }, + "description": "CVE summary values." + }, + "Cve": { + "type": "object", + "properties": { + "cveId": { + "description": "ID of CVE", + "type": "string", + "x-nullable": true + }, + "component": { + "type": "object", + "items": { + "$ref": "#/definitions/CveComponent" + }, + "description": "Component of CVE" + }, + "severity": { + "description": "Severity of CVE", + "type": "string", + "x-nullable": true + }, + "name": { + "description": "Name of CVE", + "type": "string", + "x-nullable": true + }, + "cvssScore": { + "description": "A single CVSS score to represent the CVE. If a V3 score is specified, then it will use the V3 score. Otherwise if the V2 score is specified it will be the V2 score", + "type": "string", + "x-nullable": true + }, + "cvssVersion": { + "description": "Cvss version of CVE", + "type": "string", + "x-nullable": true + }, + "cvssV2Score": { + "description": "Cvss V2 score of CVE", + "type": "string", + "x-nullable": true + }, + "cvssV3Score": { + "description": "Cvss V3 score of CVE", + "type": "string", + "x-nullable": true + }, + "publishDate": { + "description": "Publish date of CVE", + "type": "string", + "format": "date-time" + }, + "updatedDate": { + "description": "Updated date of CVE", + "type": "string", + "format": "date-time" + }, + "links": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/CveLink" + }, + "description": "The list of CVE links.", + "x-ms-identifiers": [] + }, + "description": { + "description": "Description of CVE", + "type": "string", + "x-nullable": true + } + }, + "description": "Known CVEs of a firmware." + }, + "CveLink": { + "type": "object", + "description": "Link for CVE", + "properties": { + "href": { + "description": "Href of CVE link", + "type": "string", + "x-nullable": true + }, + "label": { + "description": "Label of CVE link", + "type": "string", + "x-nullable": true + } + } + }, + "CveComponent": { + "type": "object", + "description": "Component for CVE", + "properties": { + "componentId": { + "description": "ID of CVE component", + "type": "string", + "x-nullable": true + }, + "name": { + "description": "Name of CVE component", + "type": "string", + "x-nullable": true + }, + "version": { + "description": "Version of CVE component", + "type": "string", + "x-nullable": true + } + } + }, + "PairedKey": { + "type": "object", + "description": "Details of a matching paired key or certificate.", + "properties": { + "id": { + "type": "string", + "description": "ID of the paired key or certificate." + }, + "type": { + "type": "string", + "description": "The type indicating whether the paired object is a key or certificate." + }, + "additionalProperties": { + "type": "object", + "description": "Additional paired key properties", + "x-nullable": true + } + } + } + }, + "parameters": { + "FirmwareCreateBodyParameter": { + "name": "firmware", + "in": "body", + "required": true, + "schema": { + "$ref": "./common.json#/definitions/Firmware" + }, + "description": "Details of the firmware being created or updated.", + "x-ms-parameter-location": "method" + }, + "FirmwareUpdateBodyParameter": { + "name": "firmware", + "in": "body", + "required": true, + "schema": { + "$ref": "./common.json#/definitions/FirmwareUpdateDefinition" + }, + "description": "Details of the firmware being created or updated.", + "x-ms-parameter-location": "method" + }, + "ComponentIdParameter": { + "name": "componentId", + "in": "query", + "required": false, + "type": "string", + "description": "The id of firmware component.", + "x-ms-parameter-location": "method" + }, + "BinaryIdParameter": { + "name": "binaryId", + "in": "query", + "required": false, + "type": "string", + "description": "The id of firmware binary.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/operations.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/operations.json new file mode 100644 index 000000000000..01fe853985ab --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/operations.json @@ -0,0 +1,79 @@ +{ + "swagger": "2.0", + "info": { + "version": "2023-02-08-preview", + "title": "fist", + "description": "Firmware & IoT Security" + }, + "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": { + "/providers/Microsoft.IoTFirmwareDefense/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists the operations for this resource provider", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List_MaximumSet_Gen": { + "$ref": "./examples/Operations_List_MaximumSet_Gen.json" + }, + "Operations_List_MinimumSet_Gen": { + "$ref": "./examples/Operations_List_MinimumSet_Gen.json" + } + } + } + } + }, + "definitions": {}, + "parameters": {} +} diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/workspaces.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/workspaces.json new file mode 100644 index 000000000000..1949590468b2 --- /dev/null +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/workspaces.json @@ -0,0 +1,477 @@ +{ + "swagger": "2.0", + "info": { + "version": "2023-02-08-preview", + "title": "fist", + "description": "Firmware & IoT Security" + }, + "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": { + "/subscriptions/{subscriptionId}/providers/Microsoft.IoTFirmwareDefense/workspaces": { + "get": { + "tags": [ + "Workspaces" + ], + "operationId": "Workspaces_ListBySubscription", + "description": "Lists all of the firmware analysis workspaces in the specified subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/WorkspaceList" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Workspaces_ListBySubscription_MaximumSet_Gen": { + "$ref": "./examples/Workspaces_ListBySubscription_MaximumSet_Gen.json" + }, + "Workspaces_ListBySubscription_MinimumSet_Gen": { + "$ref": "./examples/Workspaces_ListBySubscription_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces": { + "get": { + "tags": [ + "Workspaces" + ], + "operationId": "Workspaces_ListByResourceGroup", + "description": "Lists all of the firmware analysis workspaces in the specified resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/WorkspaceList" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Workspaces_ListByResourceGroup_MaximumSet_Gen": { + "$ref": "./examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json" + }, + "Workspaces_ListByResourceGroup_MinimumSet_Gen": { + "$ref": "./examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}": { + "put": { + "tags": [ + "Workspaces" + ], + "operationId": "Workspaces_Create", + "description": "The operation to create or update a firmware analysis workspace.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/WorkspaceCreateBodyParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Workspace" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workspaces_Create_MaximumSet_Gen": { + "$ref": "./examples/Workspaces_Create_MaximumSet_Gen.json" + }, + "Workspaces_Create_MinimumSet_Gen": { + "$ref": "./examples/Workspaces_Create_MinimumSet_Gen.json" + } + } + }, + "patch": { + "tags": [ + "Workspaces" + ], + "operationId": "Workspaces_Update", + "description": "The operation to update a firmware analysis workspaces.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/WorkspaceUpdateBodyParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Workspace" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workspaces_Update_MaximumSet_Gen": { + "$ref": "./examples/Workspaces_Update_MaximumSet_Gen.json" + }, + "Workspaces_Update_MinimumSet_Gen": { + "$ref": "./examples/Workspaces_Update_MinimumSet_Gen.json" + } + } + }, + "delete": { + "tags": [ + "Workspaces" + ], + "operationId": "Workspaces_Delete", + "description": "The operation to delete a firmware analysis workspace.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workspaces_Delete_MaximumSet_Gen": { + "$ref": "./examples/Workspaces_Delete_MaximumSet_Gen.json" + }, + "Workspaces_Delete_MinimumSet_Gen": { + "$ref": "./examples/Workspaces_Delete_MinimumSet_Gen.json" + } + } + }, + "get": { + "tags": [ + "Workspaces" + ], + "operationId": "Workspaces_Get", + "description": "Get firmware analysis workspace.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Workspace" + } + }, + "304": { + "description": "Not Modified" + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workspaces_Get_MaximumSet_Gen": { + "$ref": "./examples/Workspaces_Get_MaximumSet_Gen.json" + }, + "Workspaces_Get_MinimumSet_Gen": { + "$ref": "./examples/Workspaces_Get_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/generateUploadUrl": { + "post": { + "tags": [ + "Workspaces" + ], + "operationId": "Workspaces_GenerateUploadUrl", + "description": "The operation to get a url for file upload.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/GenerateUploadUrlBodyParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./common.json#/definitions/UrlToken" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Workspaces_GenerateUploadUrl_MaximumSet_Gen": { + "$ref": "./examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json" + }, + "Workspaces_GenerateUploadUrl_MinimumSet_Gen": { + "$ref": "./examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json" + } + } + } + } + }, + "definitions": { + "WorkspaceProperties": { + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the resource.", + "type": "string", + "enum": [ + "Accepted", + "Succeeded", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "readOnly": true + } + }, + "description": "Workspace properties." + }, + "Workspace": { + "type": "object", + "description": "Firmware analysis workspace.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WorkspaceProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "WorkspaceUpdateDefinition": { + "type": "object", + "description": "Firmware analysis workspace.", + "properties": { + "properties": { + "description": "The editable workspace properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/WorkspaceProperties" + } + } + }, + "WorkspaceList": { + "type": "object", + "description": "Return a list of firmware analysis workspaces.", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Workspace" + }, + "description": "The list of firmware analysis workspaces." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of asset." + } + } + }, + "GenerateUploadUrlProperties": { + "type": "object", + "description": "Properties for generating an upload URL", + "properties": { + "firmwareId": { + "type": "string", + "description": "A unique ID for the firmware to be uploaded." + } + } + } + }, + "parameters": { + "WorkspaceCreateBodyParameter": { + "name": "workspace", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workspace" + }, + "description": "Parameters when creating a firmware analysis workspace.", + "x-ms-parameter-location": "method" + }, + "WorkspaceUpdateBodyParameter": { + "name": "workspace", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WorkspaceUpdateDefinition" + }, + "description": "Parameters when updating a firmware analysis workspace.", + "x-ms-parameter-location": "method" + }, + "GenerateUploadUrlBodyParameter": { + "name": "generateUploadUrl", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GenerateUploadUrlProperties" + }, + "description": "Parameters when requesting a URL to upload firmware.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/fist/resource-manager/readme.md b/specification/fist/resource-manager/readme.md new file mode 100644 index 000000000000..4693c61f22c7 --- /dev/null +++ b/specification/fist/resource-manager/readme.md @@ -0,0 +1,104 @@ +# fist + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for FIST. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the fist. + +``` yaml +openapi-type: arm +openapi-subtype: providerHub +tag: package-2023-02-08-preview +``` + + +### Tag: package-2023-02-08-preview + +These settings apply only when `--tag=package-2023-02-08-preview` is specified on the command line. + +```yaml $(tag) == 'package-2023-02-08-preview' +input-file: + - Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json + - Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/firmwares.json + - Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/workspaces.json + - Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/operations.json +``` +### Tag: package-2022-09-15-privatepreview + +These settings apply only when `--tag=package-2022-09-15-privatepreview` is specified on the command line. + +``` yaml $(tag) == 'package-2022-09-15-privatepreview' +input-file: + - Microsoft.IoTFirmwareDefense/preview/2022-09-15-privatepreview/firmwareGroups.json + - Microsoft.IoTFirmwareDefense/preview/2022-09-15-privatepreview/firmwares.json + - Microsoft.IoTFirmwareDefense/preview/2022-09-15-privatepreview/operations.json +``` + +### Tag: package-2021-11-10-privatepreview + +These settings apply only when `--tag=package-2021-11-10-privatepreview` is specified on the command line. + +``` yaml $(tag) == 'package-2021-11-10-privatepreview' +input-file: + - Microsoft.IoTFirmwareDefense/preview/2021-11-10-privatepreview/firmwareGroups.json + - Microsoft.IoTFirmwareDefense/preview/2021-11-10-privatepreview/firmwares.json + - Microsoft.IoTFirmwareDefense/preview/2021-11-10-privatepreview/operations.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go-track2 + - repo: azure-sdk-for-js + - repo: azure-resource-manager-schemas + - repo: azure-cli-extensions +``` + +## Az + +See configuration in [readme.az.md](./readme.az.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) From e3ce04ec208b4e06a40dde5dad65004d7dd2aad9 Mon Sep 17 00:00:00 2001 From: rflmk Date: Wed, 10 May 2023 23:26:44 -0400 Subject: [PATCH 2/5] Fix validation errors - remove references to old private preview versions from readme.md - add binary hardening flags to custom-words.txt --- custom-words.txt | 6 +++++- specification/fist/resource-manager/readme.md | 21 ------------------- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index 9bb7e88f4e12..543d9c6c70fc 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2810,4 +2810,8 @@ Hnsw Piqd Reranked Reranking -contentsafety \ No newline at end of file +contentsafety +relro +RELRO +runpath +rpath \ No newline at end of file diff --git a/specification/fist/resource-manager/readme.md b/specification/fist/resource-manager/readme.md index 4693c61f22c7..b413c93c0d44 100644 --- a/specification/fist/resource-manager/readme.md +++ b/specification/fist/resource-manager/readme.md @@ -42,27 +42,6 @@ input-file: - Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/workspaces.json - Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/operations.json ``` -### Tag: package-2022-09-15-privatepreview - -These settings apply only when `--tag=package-2022-09-15-privatepreview` is specified on the command line. - -``` yaml $(tag) == 'package-2022-09-15-privatepreview' -input-file: - - Microsoft.IoTFirmwareDefense/preview/2022-09-15-privatepreview/firmwareGroups.json - - Microsoft.IoTFirmwareDefense/preview/2022-09-15-privatepreview/firmwares.json - - Microsoft.IoTFirmwareDefense/preview/2022-09-15-privatepreview/operations.json -``` - -### Tag: package-2021-11-10-privatepreview - -These settings apply only when `--tag=package-2021-11-10-privatepreview` is specified on the command line. - -``` yaml $(tag) == 'package-2021-11-10-privatepreview' -input-file: - - Microsoft.IoTFirmwareDefense/preview/2021-11-10-privatepreview/firmwareGroups.json - - Microsoft.IoTFirmwareDefense/preview/2021-11-10-privatepreview/firmwares.json - - Microsoft.IoTFirmwareDefense/preview/2021-11-10-privatepreview/operations.json -``` --- From 2fedecd56e0396b75daabec20ba2f82cac172914 Mon Sep 17 00:00:00 2001 From: rflmk Date: Fri, 12 May 2023 16:59:09 -0400 Subject: [PATCH 3/5] make changes from review comments - remove unused param - rename definition to match usage - make sas token response properties more clear with description and format and readOnly - move domain-specific terms to cSpell.json --- cSpell.json | 9 +++++++++ custom-words.txt | 6 +----- .../preview/2023-02-08-preview/common.json | 16 ++++++---------- .../preview/2023-02-08-preview/workspaces.json | 4 ++-- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/cSpell.json b/cSpell.json index 4739fdb3b71e..fea53e9e76ea 100644 --- a/cSpell.json +++ b/cSpell.json @@ -917,6 +917,15 @@ "Transliterable", "translitered" ] + }, + { + "filename": "**/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/**/*.json", + "words": [ + "RELRO", + "relro", + "rpath", + "runpath" + ] } ], "enableFiletypes": [ diff --git a/custom-words.txt b/custom-words.txt index 543d9c6c70fc..9bb7e88f4e12 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2810,8 +2810,4 @@ Hnsw Piqd Reranked Reranking -contentsafety -relro -RELRO -runpath -rpath \ No newline at end of file +contentsafety \ No newline at end of file diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json index b5196ecfb6f2..6147260da865 100644 --- a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json @@ -39,13 +39,17 @@ "type": "object", "properties": { "url": { - "description": "Token URL for creating or accessing a blob file.", + "description": "SAS URL for creating or accessing a blob file.", "type": "string", + "format": "uri", + "readOnly": true, "x-nullable": true }, "uploadUrl": { - "description": "Url for file uploading. Kept for backwards compatibility", + "description": "SAS Url for file uploading. Kept for backwards compatibility", "type": "string", + "format": "uri", + "readOnly": true, "x-nullable": true } }, @@ -157,14 +161,6 @@ } }, "parameters": { - "FirmwareGroupNameParameter": { - "name": "firmwareGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the firmware group.", - "x-ms-parameter-location": "method" - }, "FirmwareIdParameter": { "name": "firmwareId", "in": "path", diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/workspaces.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/workspaces.json index 1949590468b2..f85f3bfb53b6 100644 --- a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/workspaces.json +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/workspaces.json @@ -431,7 +431,7 @@ } } }, - "GenerateUploadUrlProperties": { + "GenerateUploadUrlRequest": { "type": "object", "description": "Properties for generating an upload URL", "properties": { @@ -468,7 +468,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/GenerateUploadUrlProperties" + "$ref": "#/definitions/GenerateUploadUrlRequest" }, "description": "Parameters when requesting a URL to upload firmware.", "x-ms-parameter-location": "method" From 61b61facb5d1284bd7e0643d4b7a4092cc6f1d1c Mon Sep 17 00:00:00 2001 From: rflmk Date: Fri, 12 May 2023 17:42:38 -0400 Subject: [PATCH 4/5] fix urls in examples --- .../examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json | 4 ++-- ...Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json | 4 ++-- .../examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json index ff21685019d6..26243c840845 100644 --- a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json @@ -11,8 +11,8 @@ "responses": { "200": { "body": { - "url": "dy", - "uploadUrl": "j" + "url": "https://i/am/a/sas/token", + "uploadUrl": "https://i/am/a/sas/token/too" } } } diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json index ccc68776bb13..8ed0c03eddcc 100644 --- a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json @@ -11,8 +11,8 @@ "responses": { "200": { "body": { - "url": "dy", - "uploadUrl": "j" + "url": "https://i/am/a/sas/token", + "uploadUrl": "https://i/am/a/sas/token/too" } } } diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json index ea65a9c2b7cf..4baa5a644bb9 100644 --- a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json @@ -13,8 +13,8 @@ "responses": { "200": { "body": { - "url": "tgmbofoecnedssduxadniphabgxgwq", - "uploadUrl": "uplddyonf" + "url": "https://i/am/a/sas/token", + "uploadUrl": "https://i/am/a/sas/token/too" } } } From 5075b088da9635a1bdfdec8d759491ecbb57f24a Mon Sep 17 00:00:00 2001 From: rflmk Date: Mon, 15 May 2023 16:43:18 -0400 Subject: [PATCH 5/5] remove x-nullable from string url properties --- .../preview/2023-02-08-preview/common.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json index 6147260da865..eb8654e9eb29 100644 --- a/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json +++ b/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/common.json @@ -42,15 +42,13 @@ "description": "SAS URL for creating or accessing a blob file.", "type": "string", "format": "uri", - "readOnly": true, - "x-nullable": true + "readOnly": true }, "uploadUrl": { - "description": "SAS Url for file uploading. Kept for backwards compatibility", + "description": "SAS URL for file uploading. Kept for backwards compatibility", "type": "string", "format": "uri", - "readOnly": true, - "x-nullable": true + "readOnly": true } }, "description": "Url data for creating or accessing a blob file."