{ "swagger": "2.0", "info": { "version": "2024-01-10", "title": "IoT Firmware Defense", "description": "Firmware & IoT Security REST API" }, "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/{firmwareId}/passwordHashes": { "get": { "tags": [ "PasswordHashes" ], "operationId": "PasswordHashes_ListByFirmware", "description": "Lists password hash analysis results of a firmware.", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "./common.json#/parameters/WorkspaceNameParameter" }, { "$ref": "./common.json#/parameters/FirmwareIdParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/PasswordHashListResult" } }, "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, "x-ms-examples": { "PasswordHashes_ListByFirmware_MaximumSet_Gen": { "$ref": "./examples/PasswordHashes_ListByFirmware_MaximumSet_Gen.json" }, "PasswordHashes_ListByFirmware_MinimumSet_Gen": { "$ref": "./examples/PasswordHashes_ListByFirmware_MinimumSet_Gen.json" } } } } }, "definitions": { "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" }, "PasswordHashResource": { "type": "object", "description": "Password hash resource", "properties": { "properties": { "title": "Password hash properties", "description": "The properties of a password hash found within a firmware image", "x-ms-client-flatten": true, "$ref": "#/definitions/PasswordHash" } }, "allOf": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" } ] }, "PasswordHashListResult": { "type": "object", "description": "List of password hash results", "properties": { "value": { "type": "array", "readOnly": true, "items": { "$ref": "#/definitions/PasswordHashResource" }, "description": "The list of password hash results." }, "nextLink": { "type": "string", "description": "The uri to fetch the next page of resources." } } } }, "parameters": {} }