diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/defenderSettings.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/defenderSettings.json deleted file mode 100644 index 2837eb04b4e4..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/defenderSettings.json +++ /dev/null @@ -1,624 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Defender for IoT", - "description": "API spec for Microsoft.IoTSecurity (Azure Defender for IoT) resource provider", - "version": "2021-02-01-preview" - }, - "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.IoTSecurity/defenderSettings": { - "get": { - "x-ms-examples": { - "List IoT Defender settings": { - "$ref": "./examples/DefenderSettings/List.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "description": "List IoT Defender Settings", - "operationId": "DefenderSettings_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DefenderSettingsList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default": { - "get": { - "x-ms-examples": { - "Get IoT Defender settings": { - "$ref": "./examples/DefenderSettings/Get.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "operationId": "DefenderSettings_Get", - "description": "Get IoT Defender Settings", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "IoT Defender Settings", - "schema": { - "$ref": "#/definitions/DefenderSettingsModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create or update IoT Defender settings": { - "$ref": "./examples/DefenderSettings/Put.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "operationId": "DefenderSettings_CreateOrUpdate", - "description": "Create or update IoT Defender settings", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/DefenderSettingsModel" - } - ], - "responses": { - "200": { - "description": "Updated IoT Defender settings", - "schema": { - "$ref": "#/definitions/DefenderSettingsModel" - } - }, - "201": { - "description": "Created IoT Defender settings", - "schema": { - "$ref": "#/definitions/DefenderSettingsModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete IoT Defender settings": { - "$ref": "./examples/DefenderSettings/Delete.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "operationId": "DefenderSettings_Delete", - "description": "Delete IoT Defender settings", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "IoT Defender settings deleted" - }, - "204": { - "description": "IoT Defender settings does not exist" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default/packageDownloads": { - "post": { - "x-ms-examples": { - "Package downloads": { - "$ref": "./examples/DefenderSettings/PackageDownloads.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "operationId": "DefenderSettings_PackageDownloads", - "description": "Information about downloadable packages", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Package downloads", - "schema": { - "$ref": "#/definitions/PackageDownloads" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default/downloadManagerActivation": { - "post": { - "x-ms-examples": { - "Download quota data of the subscription": { - "$ref": "./examples/DefenderSettings/DownloadManagerActivation.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "operationId": "DefenderSettings_DownloadManagerActivation", - "description": "Download manager activation data defined for this subscription", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - } - ], - "produces": [ - "application/zip" - ], - "responses": { - "200": { - "description": "Downloaded file", - "schema": { - "type": "object", - "format": "file" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "DefenderSettingsList": { - "description": "List of IoT Defender settings", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/DefenderSettingsModel" - } - } - } - }, - "DefenderSettingsModel": { - "type": "object", - "description": "IoT Defender settings", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "IoT Defender settings properties", - "$ref": "#/definitions/DefenderSettingsProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ] - }, - "DefenderSettingsProperties": { - "type": "object", - "description": "IoT Defender settings properties", - "properties": { - "deviceQuota": { - "type": "integer", - "format": "int32", - "minimum": 0, - "description": "Size of the device quota. Value is required to be in multiples of 100." - }, - "sentinelWorkspaceResourceIds": { - "type": "array", - "description": "Sentinel Workspace Resource Ids", - "items": { - "type": "string" - } - }, - "onboardingKind": { - "type": "string", - "enum": [ - "Default", - "MigratedToAzure", - "Evaluation", - "Purchased" - ], - "description": "The kind of onboarding for the subscription", - "x-ms-enum": { - "name": "OnboardingKind", - "modelAsString": true - } - }, - "evaluationEndTime": { - "type": "string", - "format": "date-time", - "description": "End time of the evaluation period, if such exist", - "readOnly": true - }, - "mdeIntegration": { - "type": "object", - "description": "MDE integration configuration", - "properties": { - "status": { - "type": "string", - "enum": [ - "Disabled", - "Enabled" - ], - "description": "Integration status", - "x-ms-enum": { - "name": "MdeIntegration", - "modelAsString": true - } - } - }, - "required": [ - "status" - ] - } - }, - "required": [ - "deviceQuota", - "sentinelWorkspaceResourceIds", - "onboardingKind", - "mdeIntegration" - ] - }, - "DownloadLink": { - "type": "string", - "description": "Download link", - "readOnly": true - }, - "PackageDownloadInfo": { - "type": "object", - "description": "Information on a specific package download", - "properties": { - "version": { - "type": "string", - "description": "Version number", - "readOnly": true - }, - "link": { - "description": "Download link", - "$ref": "#/definitions/DownloadLink" - }, - "versionKind": { - "type": "string", - "description": "Kind of the version", - "readOnly": true, - "enum": [ - "Latest", - "Previous", - "Preview" - ], - "x-ms-enum": { - "name": "versionKind", - "modelAsString": true, - "values": [ - { - "value": "Latest" - }, - { - "value": "Previous" - }, - { - "value": "Preview" - } - ] - } - } - } - }, - "UpgradePackageDownloadInfo": { - "type": "object", - "description": "Information on a specific package upgrade download", - "properties": { - "fromVersion": { - "type": "string", - "description": "Minimum base version for upgrade", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "#/definitions/PackageDownloadInfo" - } - ] - }, - "PackageDownloads": { - "type": "object", - "description": "Information about package downloads", - "readOnly": true, - "properties": { - "sensor": { - "type": "object", - "description": "Contains all Sensor binary downloads", - "readOnly": true, - "properties": { - "full": { - "type": "object", - "description": "Contains full package downloads", - "readOnly": true, - "properties": { - "iso": { - "type": "array", - "description": "Contains all ISO full versions for the sensor", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - }, - "ovf": { - "type": "object", - "description": "Contains all OVF (virtual machine) full versions for the sensor", - "properties": { - "enterprise": { - "type": "array", - "description": "Enterprise package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - }, - "medium": { - "type": "array", - "description": "Medium package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - }, - "line": { - "type": "array", - "description": "Line package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - } - } - } - } - }, - "upgrade": { - "type": "array", - "description": "Sensor upgrade package downloads (on existing installations)", - "items": { - "$ref": "#/definitions/UpgradePackageDownloadInfo" - }, - "x-ms-identifiers": [] - } - } - }, - "centralManager": { - "type": "object", - "description": "All downloads for Central Manager", - "readOnly": true, - "properties": { - "full": { - "type": "object", - "description": "Contains full package downloads", - "readOnly": true, - "properties": { - "iso": { - "type": "array", - "description": "Contains all ISO full versions of the Central Manager", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - }, - "ovf": { - "type": "object", - "description": "Contains all OVF (virtual machine) full versions of the Central Manager", - "readOnly": true, - "properties": { - "enterprise": { - "type": "array", - "description": "The Enterprise package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - }, - "enterpriseHighAvailability": { - "type": "array", - "description": "The EnterpriseHighAvailability package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - }, - "medium": { - "type": "array", - "description": "The Medium package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - }, - "mediumHighAvailability": { - "type": "array", - "description": "The MediumHighAvailability package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - } - } - } - } - }, - "upgrade": { - "type": "array", - "description": "Central Manager upgrade package downloads (on existing installations)", - "readOnly": true, - "items": { - "$ref": "#/definitions/UpgradePackageDownloadInfo" - } - } - } - }, - "threatIntelligence": { - "type": "array", - "description": "All downloads for threat intelligence", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - }, - "snmp": { - "type": "array", - "description": "SNMP Server file", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - }, - "wmiTool": { - "type": "array", - "description": "Used for local configuration export", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - }, - "authorizedDevicesImportTemplate": { - "type": "array", - "description": "Authorized devices import template", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - }, - "deviceInformationUpdateImportTemplate": { - "type": "array", - "description": "Authorized devices import template", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - }, - "x-ms-identifiers": [] - } - } - } - }, - "parameters": { - "DefenderSettingsModel": { - "name": "DefenderSettingsModel", - "in": "body", - "required": true, - "description": "The IoT defender settings model", - "schema": { - "$ref": "#/definitions/DefenderSettingsModel" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/deviceGroups.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/deviceGroups.json deleted file mode 100644 index 7d7a9e5fa9ce..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/deviceGroups.json +++ /dev/null @@ -1,279 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Defender for IoT", - "description": "API spec for Microsoft.IoTSecurity (Azure Defender for IoT) resource provider", - "version": "2021-02-01-preview" - }, - "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.IoTSecurity/locations/{iotDefenderLocation}/deviceGroups": { - "get": { - "x-ms-examples": { - "List device groups": { - "$ref": "./examples/DeviceGroups/List.json" - } - }, - "tags": [ - "Device Groups" - ], - "description": "List device groups", - "operationId": "DeviceGroups_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../common/1.0/types.json#/parameters/IotDefenderLocation" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DeviceGroupList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/locations/{iotDefenderLocation}/deviceGroups/{deviceGroupName}": { - "get": { - "x-ms-examples": { - "Get device group": { - "$ref": "./examples/DeviceGroups/Get.json" - } - }, - "tags": [ - "Device Groups" - ], - "operationId": "DeviceGroups_Get", - "description": "Get device group", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../common/1.0/types.json#/parameters/IotDefenderLocation" - }, - { - "$ref": "#/parameters/DeviceGroupName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DeviceGroupModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create or update device group": { - "$ref": "./examples/DeviceGroups/Put.json" - } - }, - "tags": [ - "Device Groups" - ], - "operationId": "DeviceGroups_CreateOrUpdate", - "description": "Create or update device group", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../common/1.0/types.json#/parameters/IotDefenderLocation" - }, - { - "$ref": "#/parameters/DeviceGroupName" - }, - { - "$ref": "#/parameters/DeviceGroupModel" - } - ], - "responses": { - "200": { - "description": "Updated device group", - "schema": { - "$ref": "#/definitions/DeviceGroupModel" - } - }, - "201": { - "description": "Created device group", - "schema": { - "$ref": "#/definitions/DeviceGroupModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete device group": { - "$ref": "./examples/DeviceGroups/Delete.json" - } - }, - "tags": [ - "Device Groups" - ], - "operationId": "DeviceGroups_Delete", - "description": "Delete device group", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../common/1.0/types.json#/parameters/IotDefenderLocation" - }, - { - "$ref": "#/parameters/DeviceGroupName" - } - ], - "responses": { - "200": { - "description": "Device group deleted" - }, - "204": { - "description": "Device group does not exist" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "DeviceGroupList": { - "description": "List of device groups", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/DeviceGroupModel" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - }, - "DeviceGroupModel": { - "type": "object", - "description": "Device group", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Device group properties", - "$ref": "#/definitions/DeviceGroupProperties" - }, - "systemData": { - "readOnly": true, - "type": "object", - "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ] - }, - "DeviceGroupProperties": { - "type": "object", - "description": "Device group properties", - "properties": {} - } - }, - "parameters": { - "DeviceGroupName": { - "name": "deviceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "Device group name", - "x-ms-parameter-location": "method" - }, - "DeviceGroupModel": { - "name": "deviceGroupModel", - "in": "body", - "required": true, - "description": "Device group model", - "schema": { - "$ref": "#/definitions/DeviceGroupModel" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/devices.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/devices.json deleted file mode 100644 index 849469b1d27e..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/devices.json +++ /dev/null @@ -1,759 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Defender for IoT", - "description": "API spec for Microsoft.IoTSecurity (Azure Defender for IoT) resource provider", - "version": "2021-02-01-preview" - }, - "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.IoTSecurity/locations/{iotDefenderLocation}/deviceGroups/{deviceGroupName}/devices": { - "get": { - "x-ms-examples": { - "List devices": { - "$ref": "./examples/Devices/List.json" - } - }, - "tags": [ - "Devices" - ], - "description": "List devices", - "operationId": "Devices_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../common/1.0/types.json#/parameters/IotDefenderLocation" - }, - { - "$ref": "#/parameters/DeviceGroupName" - }, - { - "in": "query", - "name": "$skipToken", - "required": false, - "type": "string", - "description": "Skip token used for pagination" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DeviceList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/locations/{iotDefenderLocation}/deviceGroups/{deviceGroupName}/devices/{deviceId}": { - "get": { - "x-ms-examples": { - "Get device": { - "$ref": "./examples/Devices/Get.json" - } - }, - "tags": [ - "Devices" - ], - "operationId": "Devices_Get", - "description": "Get device", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../common/1.0/types.json#/parameters/IotDefenderLocation" - }, - { - "$ref": "#/parameters/DeviceGroupName" - }, - { - "$ref": "#/parameters/DeviceId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DeviceModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "DeviceList": { - "description": "List of devices", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/DeviceModel" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "When there are too many devices for one page, use this URI to fetch the next page." - } - } - }, - "DeviceModel": { - "type": "object", - "description": "Device", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Device properties", - "$ref": "#/definitions/DeviceProperties" - }, - "systemData": { - "readOnly": true, - "type": "object", - "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ] - }, - "DeviceProperties": { - "type": "object", - "description": "Device properties", - "properties": { - "schemaVersion": { - "readOnly": true, - "type": "string", - "description": "Version of the device model schema" - }, - "deviceDataSource": { - "readOnly": true, - "type": "string", - "$ref": "#/definitions/DeviceDataSource", - "description": "Device data source." - }, - "sensor": { - "readOnly": true, - "type": "object", - "description": "Sensor that scanned this device.", - "$ref": "#/definitions/Sensor" - }, - "mergedDevices": { - "readOnly": true, - "type": "array", - "description": "List of merged devices data", - "items": { - "$ref": "#/definitions/MergedDevice" - } - }, - "mergedToDeviceId": { - "readOnly": true, - "type": "string", - "description": "The device Id that this device was merged into" - }, - "onboardingStatus": { - "readOnly": true, - "type": "string", - "enum": [ - "Onboarded", - "NotOnboarded", - "NotSupported", - "InsufficientInfo" - ], - "x-ms-enum": { - "name": "OnboardingStatus", - "modelAsString": true - }, - "description": "Device onboarding status." - }, - "deviceName": { - "type": "string", - "description": "Device name" - }, - "deviceCategoryId": { - "type": "integer", - "format": "int32", - "minimum": 0, - "description": "Device category id" - }, - "deviceTypeId": { - "type": "integer", - "format": "int32", - "minimum": 0, - "description": "Device type id" - }, - "deviceSubTypeId": { - "type": "integer", - "format": "int32", - "minimum": 0, - "description": "Device sub type id" - }, - "deviceCategoryDisplayName": { - "readOnly": true, - "type": "string", - "description": "Device category display name" - }, - "deviceTypeDisplayName": { - "readOnly": true, - "type": "string", - "description": "Device type display name" - }, - "deviceSubTypeDisplayName": { - "readOnly": true, - "type": "string", - "description": "Device sub type display name" - }, - "profilingConfidence": { - "readOnly": true, - "type": "integer", - "format": "int32", - "description": "Confidence of the device profile" - }, - "riskScore": { - "readOnly": true, - "type": "integer", - "format": "int32", - "description": "risk score of the device." - }, - "criticality": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Criticality", - "modelAsString": true - }, - "description": "Device criticality." - }, - "deviceTags": { - "type": "array", - "description": "Device tags", - "items": { - "type": "string" - } - }, - "firstSeen": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "First time the device was seen." - }, - "lastSeen": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "Last time the device was seen." - }, - "lastUpdated": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "Last time the device was updated by the profiler." - }, - "hardware": { - "type": "object", - "description": "Device hardware data", - "$ref": "#/definitions/Hardware" - }, - "firmwares": { - "type": "array", - "description": "List of device firmwares.", - "items": { - "$ref": "#/definitions/Firmware" - }, - "x-ms-identifiers": [] - }, - "operatingSystem": { - "type": "object", - "description": "Device operating system data", - "$ref": "#/definitions/OperatingSystem" - }, - "businessFunction": { - "type": "string", - "description": "Device business function" - }, - "purdueLevel": { - "type": "string", - "enum": [ - "ProcessControl", - "Supervisory", - "Enterprise" - ], - "x-ms-enum": { - "name": "PurdueLevel", - "modelAsString": true - }, - "description": "Purdue level of the device." - }, - "authorizedState": { - "type": "string", - "enum": [ - "Authorized", - "Unauthorized" - ], - "description": "Authorized state of the device.", - "x-ms-enum": { - "name": "AuthorizedState", - "modelAsString": true - } - }, - "programmingState": { - "readOnly": true, - "type": "string", - "enum": [ - "ProgrammingDevice", - "NotProgrammingDevice" - ], - "x-ms-enum": { - "name": "ProgrammingState", - "modelAsString": true - }, - "description": "Indicates whether this device is programming" - }, - "lastProgrammingTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "last time the device was programming or programed." - }, - "cpes": { - "readOnly": true, - "type": "array", - "description": "List of Common Platform Enumeration (CPE)", - "items": { - "type": "string" - } - }, - "nics": { - "readOnly": true, - "type": "array", - "description": "List of the device network interface cards.", - "items": { - "$ref": "#/definitions/Nic" - }, - "x-ms-identifiers": [] - }, - "deviceStatus": { - "readOnly": true, - "type": "string", - "enum": [ - "Active", - "Inactive", - "Removed", - "Deleted" - ], - "x-ms-enum": { - "name": "DeviceStatus", - "modelAsString": true - }, - "description": "Device status." - }, - "slots": { - "readOnly": true, - "type": "array", - "description": "List of the device slot in the backplane", - "items": { - "$ref": "#/definitions/Slot" - }, - "x-ms-identifiers": [] - }, - "parentDeviceId": { - "readOnly": true, - "type": "string", - "description": "For nested device, this is the parent device id." - }, - "parentRackNumber": { - "readOnly": true, - "type": "integer", - "format": "int32", - "description": "For nested device, this is the rack number in the parent device that holds the nested device." - }, - "parentSlotNumber": { - "readOnly": true, - "type": "integer", - "format": "int32", - "description": "For nested device, this is the slot number in the parent device that holds the nested device." - }, - "packages": { - "type": "array", - "description": "List of device packages", - "items": { - "$ref": "#/definitions/Package" - }, - "x-ms-identifiers": [] - }, - "additionalFields": { - "type": "object", - "description": " A bag of fields which extends the device information." - } - } - }, - "Slot": { - "type": "object", - "description": "Slot data in PLC backplane", - "properties": { - "slotNumber": { - "readOnly": true, - "type": "integer", - "format": "int32", - "description": "Slot number inside the rack" - }, - "rackNumber": { - "readOnly": true, - "type": "integer", - "format": "int32", - "description": "Rack number in the backplane" - }, - "slotType": { - "type": "string", - "enum": [ - "Supply", - "AnalogIO", - "CommAdapter", - "DigitalIO", - "Cpu", - "Hmi", - "Generic" - ], - "x-ms-enum": { - "name": "SlotType", - "modelAsString": true - }, - "description": "Slot type." - }, - "hardwareVendor": { - "type": "string", - "description": "Hardware vendor of the slot." - }, - "hardwareRevision": { - "type": "string", - "description": "Hardware revision of the slot." - }, - "firmwareVersion": { - "type": "string", - "description": "Firmware revision of the slot." - }, - "model": { - "type": "string", - "description": "Model of the slot." - }, - "moduleVersion": { - "type": "string", - "description": "Module version of the slot." - }, - "serialNumber": { - "type": "string", - "description": "Serial number of the slot." - }, - "productCode": { - "type": "string", - "description": "Product code of the slot." - }, - "cpes": { - "readOnly": true, - "type": "array", - "description": "List of Common Platform Enumeration (CPE) of the slot", - "items": { - "type": "string" - } - }, - "additionalData": { - "type": "object", - "description": " A bag of fields which extends the slot information." - } - } - }, - "Nic": { - "type": "object", - "description": "Network interface card properties", - "properties": { - "lastSeen": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "Last seen time" - }, - "ipv4Address": { - "readOnly": true, - "type": "string", - "description": "Ipv4 address" - }, - "ipv6Address": { - "readOnly": true, - "type": "string", - "description": "Ipv6 address" - }, - "macAddress": { - "readOnly": true, - "type": "string", - "description": "Mac address" - }, - "networkAdapterVendor": { - "readOnly": true, - "type": "string", - "description": "Network adapter vendor." - }, - "macCertainty": { - "readOnly": true, - "type": "string", - "enum": [ - "Guess", - "Certain" - ], - "x-ms-enum": { - "name": "MacCertainty", - "modelAsString": true - }, - "description": "Indicates whether the association of the mac to the ip address is certain or a guess." - }, - "vlans": { - "readOnly": true, - "type": "array", - "description": "List of virtual LAN (vlan)", - "items": { - "type": "string" - } - } - } - }, - "Sensor": { - "type": "object", - "description": "Sensor that scanned the device", - "properties": { - "name": { - "readOnly": true, - "type": "string", - "description": "Sensor name." - }, - "type": { - "readOnly": true, - "type": "string", - "enum": [ - "Ot", - "Enterprise" - ], - "x-ms-enum": { - "name": "SensorType", - "modelAsString": true - }, - "description": "Sensor type." - }, - "zone": { - "readOnly": true, - "type": "string", - "description": "Sensor zone." - }, - "site": { - "readOnly": true, - "type": "string", - "description": "Sensor site." - } - } - }, - "Hardware": { - "type": "object", - "description": "Device hardware data", - "properties": { - "model": { - "type": "string", - "description": "Hardware model." - }, - "vendor": { - "type": "string", - "description": "Hardware vendor." - }, - "serialNumber": { - "type": "string", - "description": "Hardware serial number." - } - } - }, - "Firmware": { - "type": "object", - "description": "Device firmware data", - "properties": { - "name": { - "type": "string", - "description": "Firmware name." - }, - "vendor": { - "type": "string", - "description": "Firmware vendor." - }, - "version": { - "type": "string", - "description": "Firmware version." - }, - "moduleAddress": { - "type": "string", - "description": "Firmware module address." - }, - "serial": { - "type": "string", - "description": "Firmware serial." - }, - "additionalFields": { - "type": "object", - "description": " A bag of fields which extends the firmware information." - } - } - }, - "Package": { - "type": "object", - "description": "Device package data", - "properties": { - "name": { - "type": "string", - "description": "Package name." - }, - "version": { - "type": "string", - "description": "Package version." - } - } - }, - "OperatingSystem": { - "type": "object", - "description": "Device operating system data", - "properties": { - "build": { - "type": "string", - "description": "OS build" - }, - "distribution": { - "type": "string", - "description": "OS distribution" - }, - "version": { - "type": "string", - "description": "OS version" - }, - "platform": { - "type": "string", - "description": "OS platform" - }, - "architecture": { - "type": "string", - "description": "OS architecture" - } - } - }, - "MergedDevice": { - "readOnly": true, - "type": "object", - "description": "Merged device data", - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "device id" - }, - "deviceDataSource": { - "readOnly": true, - "type": "string", - "$ref": "#/definitions/DeviceDataSource", - "description": "Device data source" - }, - "sensor": { - "readOnly": true, - "type": "object", - "$ref": "#/definitions/Sensor", - "description": "Device sensor data" - } - } - }, - "DeviceDataSource": { - "type": "string", - "enum": [ - "OtSensor", - "CorpSensor", - "Mde", - "MicroAgent", - "Other" - ], - "x-ms-enum": { - "name": "DeviceDataSource", - "modelAsString": true - }, - "description": "Device data source" - } - }, - "parameters": { - "DeviceGroupName": { - "name": "deviceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "Device group name", - "x-ms-parameter-location": "method" - }, - "DeviceId": { - "name": "deviceId", - "in": "path", - "required": true, - "description": "Device Id", - "type": "string", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/Delete.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/Delete.json deleted file mode 100644 index d8cba9a29fda..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/Delete.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/DownloadManagerActivation.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/DownloadManagerActivation.json deleted file mode 100644 index e5cb26ab2292..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/DownloadManagerActivation.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "headers": { - "content-type": "application/zip" - }, - "body": "{Binary}" - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/Get.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/Get.json deleted file mode 100644 index b09af2e3f88d..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/Get.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default", - "type": "Microsoft.IoTSecurity/defenderSettings", - "properties": { - "deviceQuota": 2000, - "sentinelWorkspaceResourceIds": [ - "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" - ], - "onboardingKind": "Evaluation", - "evaluationEndTime": "2021-06-29T00:00:00.0000000Z", - "mdeIntegration": { - "status": "Enabled" - } - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/List.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/List.json deleted file mode 100644 index 65f340eab84f..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/List.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default", - "type": "Microsoft.IoTSecurity/defenderSettings", - "properties": { - "deviceQuota": 2000, - "sentinelWorkspaceResourceIds": [ - "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" - ], - "onboardingKind": "Default", - "mdeIntegration": { - "status": "Enabled" - } - } - } - ] - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/PackageDownloads.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/PackageDownloads.json deleted file mode 100644 index 0564a52dcbad..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/PackageDownloads.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "sensor": { - "full": { - "iso": [ - { - "version": "3.1", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Latest" - }, - { - "version": "2.8.11", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Previous" - } - ], - "ovf": { - "enterprise": [ - { - "version": "3.1", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Latest" - }, - { - "version": "2.8.11", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Previous" - } - ], - "medium": [ - { - "version": "3.1", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Latest" - }, - { - "version": "2.8.11", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Previous" - } - ], - "line": [ - { - "version": "3.1", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Latest" - }, - { - "version": "2.8.11", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Previous" - } - ] - } - }, - "upgrade": [ - { - "version": "2.8.2", - "fromVersion": "2.8.0", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Latest" - }, - { - "version": "2.8.10", - "fromVersion": "2.8.0", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Previous" - } - ] - }, - "centralManager": { - "full": { - "iso": [ - { - "version": "3.1", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Latest" - }, - { - "version": "2.8.11", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Previous" - } - ], - "ovf": { - "enterprise": [ - { - "version": "3.1", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Latest" - } - ], - "enterpriseHighAvailability": [ - { - "version": "3.1", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Latest" - } - ], - "medium": [ - { - "version": "3.1", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Latest" - } - ], - "mediumHighAvailability": [ - { - "version": "3.1", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Latest" - } - ] - } - }, - "upgrade": [ - { - "version": "2.8.2", - "fromVersion": "2.8.0", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Latest" - }, - { - "version": "2.8.10", - "fromVersion": "2.8.0", - "link": "http://microsoft.com/downloadLocation", - "versionKind": "Previous" - } - ] - }, - "threatIntelligence": [ - { - "link": "http://microsoft.com/downloadLocation", - "version": "2020.02.10" - } - ], - "snmp": [ - { - "link": "http://microsoft.com/downloadLocation", - "version": "2020.02.10" - } - ], - "wmiTool": [ - { - "link": "http://microsoft.com/downloadLocation", - "version": "2020.02.10" - } - ], - "authorizedDevicesImportTemplate": [ - { - "link": "http://microsoft.com/downloadLocation", - "version": "2020.02.10" - } - ], - "deviceInformationUpdateImportTemplate": [ - { - "link": "http://microsoft.com/downloadLocation", - "version": "2020.02.10" - } - ] - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/Put.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/Put.json deleted file mode 100644 index 34f7013a1c67..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/Put.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "DefenderSettingsModel": { - "properties": { - "deviceQuota": 2000, - "sentinelWorkspaceResourceIds": [ - "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" - ], - "onboardingKind": "Default", - "mdeIntegration": { - "status": "Enabled" - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default", - "type": "Microsoft.IoTSecurity/defenderSettings", - "properties": { - "deviceQuota": 2000, - "sentinelWorkspaceResourceIds": [ - "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" - ], - "onboardingKind": "Default", - "mdeIntegration": { - "status": "Enabled" - } - } - } - }, - "201": { - "body": { - "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default", - "type": "Microsoft.IoTSecurity/defenderSettings", - "properties": { - "deviceQuota": 2000, - "sentinelWorkspaceResourceIds": [ - "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" - ], - "onboardingKind": "Default", - "mdeIntegration": { - "status": "Enabled" - } - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/Delete.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/Delete.json deleted file mode 100644 index e042d9ab2073..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/Delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotDefenderLocation": "eastus", - "deviceGroupName": "myGroup" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/Get.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/Get.json deleted file mode 100644 index f1aa41ccd382..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/Get.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotDefenderLocation": "eastus", - "deviceGroupName": "myGroup" - }, - "responses": { - "200": { - "body": { - "name": "myGroup", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/locations/eastus/deviceGroups/myGroup", - "type": "Microsoft.IoTSecurity/locations/deviceGroups", - "properties": {}, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/List.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/List.json deleted file mode 100644 index 0ef17acc3b7f..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/List.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotDefenderLocation": "eastus" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myGroup", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/locations/eastus/deviceGroups/myGroup", - "type": "Microsoft.IoTSecurity/locations/deviceGroups", - "properties": {}, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - ] - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/Put.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/Put.json deleted file mode 100644 index a0a3232d51ce..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DeviceGroups/Put.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotDefenderLocation": "eastus", - "deviceGroupName": "myGroup", - "deviceGroupModel": { - "properties": {} - } - }, - "responses": { - "200": { - "body": { - "name": "myGroup", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/deviceGroups/myGroup", - "type": "Microsoft.IoTSecurity/locations/deviceGroups", - "properties": {}, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - }, - "201": { - "body": { - "name": "myGroup", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/deviceGroups/myGroup", - "type": "Microsoft.IoTSecurity/locations/deviceGroups", - "properties": {}, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Devices/Get.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Devices/Get.json deleted file mode 100644 index c540ab4b7946..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Devices/Get.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotDefenderLocation": "eastus", - "deviceGroupName": "myGroup", - "deviceId": "fa30e727-16e1-4e81-84f1-d26b9153d1b2" - }, - "responses": { - "200": { - "body": { - "name": "fa30e727-16e1-4e81-84f1-d26b9153d1b2", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/locations/eastus/deviceGroups/myGroup/devices/fa30e727-16e1-4e81-84f1-d26b9153d1b2", - "type": "Microsoft.IoTSecurity/locations/deviceGroups/devices", - "properties": { - "schemaVersion": "1", - "deviceDataSource": "OtSensor", - "sensor": { - "name": "mySensor", - "zone": "myZone", - "site": "mySite" - }, - "onboardingStatus": "InsufficientInfo", - "deviceName": "10.168.140.1", - "deviceCategoryId": 6, - "deviceTypeId": 17, - "deviceSubTypeId": 2, - "deviceCategoryDisplayName": "OT", - "deviceTypeDisplayName": "Industrial", - "deviceSubTypeDisplayName": "Historian", - "riskScore": 90, - "criticality": "Normal", - "firstSeen": "2020-05-13T06:32:25Z", - "lastSeen": "2020-05-13T06:32:25Z", - "lastUpdated": "2020-05-13T06:32:25Z", - "operatingSystem": { - "version": "10\\1604", - "platform": "Windows" - }, - "purdueLevel": "ProcessControl", - "authorizedState": "Authorized", - "programmingState": "NotProgrammingDevice", - "nics": [ - { - "lastSeen": "2020-05-13T06:32:25Z", - "ipv4Address": "10.168.140.1", - "macAddress": "34-E1-2D-77-80-D0", - "macCertainty": "Certain", - "vlans": [ - "name(1)->2", - "3", - "another_name(4)" - ] - } - ], - "deviceStatus": "Active" - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Devices/List.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Devices/List.json deleted file mode 100644 index f3a48afcba78..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Devices/List.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotDefenderLocation": "eastus", - "deviceGroupName": "myGroup" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "fa30e727-16e1-4e81-84f1-d26b9153d1b2", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/locations/eastus/deviceGroups/myGroup/devices/fa30e727-16e1-4e81-84f1-d26b9153d1b2", - "type": "Microsoft.IoTSecurity/locations/deviceGroups/devices", - "properties": { - "schemaVersion": "1", - "deviceDataSource": "OtSensor", - "sensor": { - "name": "mySensor", - "zone": "myZone", - "site": "mySite" - }, - "onboardingStatus": "InsufficientInfo", - "deviceName": "10.168.140.1", - "deviceCategoryId": 6, - "deviceTypeId": 17, - "deviceSubTypeId": 2, - "deviceCategoryDisplayName": "OT", - "deviceTypeDisplayName": "Industrial", - "deviceSubTypeDisplayName": "Historian", - "riskScore": 90, - "criticality": "Normal", - "firstSeen": "2020-05-13T06:32:25Z", - "lastSeen": "2020-05-13T06:32:25Z", - "lastUpdated": "2020-05-13T06:32:25Z", - "operatingSystem": { - "version": "10\\1604", - "platform": "Windows" - }, - "purdueLevel": "ProcessControl", - "authorizedState": "Authorized", - "programmingState": "NotProgrammingDevice", - "nics": [ - { - "lastSeen": "2020-05-13T06:32:25Z", - "ipv4Address": "10.168.140.1", - "macAddress": "34-E1-2D-77-80-D0", - "macCertainty": "Certain", - "vlans": [ - "name(1)->2", - "3", - "another_name(4)" - ] - } - ], - "deviceStatus": "Active" - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - ] - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Locations/Get.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Locations/Get.json deleted file mode 100644 index 22ef851e6e37..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Locations/Get.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotDefenderLocation": "eastus" - }, - "responses": { - "200": { - "body": { - "name": "eastus", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/locations/eastus", - "type": "Microsoft.IoTSecurity/locations", - "properties": {}, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Locations/List.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Locations/List.json deleted file mode 100644 index 008cf96b1af6..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Locations/List.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "eastus", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/locations/eastus", - "type": "Microsoft.IoTSecurity/locations", - "properties": {}, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - ] - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Delete.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Delete.json deleted file mode 100644 index 08d7229e9736..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Delete.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc24", - "onPremiseSensorName": "mySensor" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/DownloadActivation.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/DownloadActivation.json deleted file mode 100644 index 56536aedcd64..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/DownloadActivation.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "onPremiseSensorName": "mySensor" - }, - "responses": { - "200": { - "headers": { - "content-type": "application/zip" - }, - "body": "{Binary}" - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/DownloadResetPassword.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/DownloadResetPassword.json deleted file mode 100644 index 975ac9803e4c..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/DownloadResetPassword.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "onPremiseSensorName": "mySensor", - "body": { - "applianceId": "3214-528AV23-D121-D3-E1" - } - }, - "responses": { - "200": { - "headers": { - "content-type": "application/zip" - }, - "body": "{Binary}" - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Get.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Get.json deleted file mode 100644 index 6c54d24adc61..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Get.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "onPremiseSensorName": "mySensor" - }, - "responses": { - "200": { - "body": { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/onPremiseSensors/mySensor", - "type": "Microsoft.IoTSecurity/onPremiseSensors", - "properties": {}, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/List.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/List.json deleted file mode 100644 index 387d9c60cbc5..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/List.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor", - "type": "Microsoft.IoTSecurity/onPremiseSensors", - "properties": {}, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - }, - { - "name": "otherSensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/otherSensor", - "type": "Microsoft.IoTSecurity/onPremiseSensors", - "properties": {}, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - ] - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Put.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Put.json deleted file mode 100644 index 45cea9b5f68e..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Put.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "onPremiseSensorName": "mySensor" - }, - "responses": { - "200": { - "body": { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor", - "type": "Microsoft.IoTSecurity/onPremiseSensors", - "properties": {}, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - }, - "201": { - "body": { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor", - "type": "Microsoft.IoTSecurity/onPremiseSensors", - "properties": {}, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Operations/List.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Operations/List.json deleted file mode 100644 index c27b33a14160..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Operations/List.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "parameters": { - "subscriptionId": "12345678-1234-1234-12345678abc", - "api-version": "2021-02-01-preview" - }, - "responses": { - "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:32 GMT", - "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-tenant-reads": "14999", - "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" - }, - "body": { - "value": [ - { - "name": "Microsoft.IoTSecurity/unregister/action", - "display": { - "provider": "Microsoft IoT Security", - "resource": "Subscription", - "operation": "Unregister Subscription", - "description": "Unregisters the subscription for Azure Defender for IoT" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.IoTSecurity/register/action", - "display": { - "provider": "Microsoft IoT Security", - "resource": "Subscription", - "operation": "Register Subscription", - "description": "Registers the subscription for Azure Defender for IoT" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.IoTSecurity/defenderSettings/read", - "display": { - "provider": "Microsoft IoT Security", - "resource": "IoT Defender Settings", - "operation": "Get IoT Defender Settings", - "description": "Gets IoT Defender Settings" - }, - "origin": "user" - }, - { - "name": "Microsoft.IoTSecurity/defenderSettings/write", - "display": { - "provider": "Microsoft IoT Security", - "resource": "IoT Defender Settings", - "operation": "Create or update IoT Defender Settings", - "description": "Creates or updates IoT Defender Settings" - }, - "origin": "user" - }, - { - "name": "Microsoft.IoTSecurity/defenderSettings/delete", - "display": { - "provider": "Microsoft IoT Security", - "resource": "IoT Defender Settings", - "operation": "Delete IoT Defender Settings", - "description": "Deletes IoT Defender Settings" - }, - "origin": "user" - }, - { - "name": "Microsoft.IoTSecurity/defenderSettings/packageDownloads/action", - "display": { - "provider": "Microsoft IoT Security", - "resource": "IoT Defender Settings", - "operation": "Get downloadable IoT Defender packages information", - "description": "Gets downloadable IoT Defender packages information" - }, - "origin": "user" - }, - { - "name": "Microsoft.IoTSecurity/defenderSettings/downloadManagerActivation/action", - "display": { - "provider": "Microsoft IoT Security", - "resource": "IoT Defender Settings", - "operation": "Download manager activation file", - "description": "Download manager activation file" - }, - "origin": "user" - } - ] - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Delete.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Delete.json deleted file mode 100644 index 965babba055f..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Delete.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "sensorName": "mySensor" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/DownloadActivation.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/DownloadActivation.json deleted file mode 100644 index 0f18c17ca23f..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/DownloadActivation.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "sensorName": "mySensor" - }, - "responses": { - "200": { - "headers": { - "content-type": "application/zip" - }, - "body": "{Binary}" - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/DownloadResetPassword.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/DownloadResetPassword.json deleted file mode 100644 index bf5e66d7f84c..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/DownloadResetPassword.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "sensorName": "mySensor", - "body": { - "applianceId": "3214-528AV23-D121-D3-E1" - } - }, - "responses": { - "200": { - "headers": { - "content-type": "application/zip" - }, - "body": "{Binary}" - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Get.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Get.json deleted file mode 100644 index 7448efebc105..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Get.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "sensorName": "mySensor" - }, - "responses": { - "200": { - "body": { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor", - "type": "Microsoft.IoTSecurity/sensors", - "properties": { - "connectivityTime": "2020-11-17T12:31:25Z", - "dynamicLearning": true, - "learningMode": true, - "sensorStatus": "Ok", - "sensorVersion": "2020.11.01.1643", - "tiAutomaticUpdates": true, - "tiStatus": "Ok", - "tiVersion": "2020-11-17T12:31:25Z", - "zone": "Zone Name", - "sensorType": "Ot" - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/List.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/List.json deleted file mode 100644 index df5b64d56593..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/List.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor", - "type": "Microsoft.IoTSecurity/sensors", - "properties": { - "connectivityTime": "2020-11-17T12:31:25Z", - "dynamicLearning": true, - "learningMode": true, - "sensorStatus": "Ok", - "sensorVersion": "2020.11.01.1643", - "tiAutomaticUpdates": true, - "tiStatus": "Ok", - "tiVersion": "2020-11-17T12:31:25Z", - "zone": "Zone Name", - "sensorType": "Ot" - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - }, - { - "name": "otherSensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/otherSensor", - "type": "Microsoft.IoTSecurity/sensors", - "properties": { - "connectivityTime": "2020-11-17T12:31:25Z", - "dynamicLearning": false, - "learningMode": false, - "sensorStatus": "Disconnected", - "sensorVersion": "2020.11.01.1643", - "tiAutomaticUpdates": true, - "tiStatus": "Ok", - "tiVersion": "2020-11-17T12:31:25Z", - "zone": "Zone Name", - "sensorType": "Ot" - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - ] - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Put.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Put.json deleted file mode 100644 index 93034b813e1b..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Put.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "sensorName": "mySensor", - "sensorModel": { - "properties": { - "tiAutomaticUpdates": true, - "zone": "Zone Name", - "sensorType": "Ot" - } - } - }, - "responses": { - "200": { - "body": { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor", - "type": "Microsoft.IoTSecurity/sensors", - "properties": { - "connectivityTime": "2020-11-17T12:31:25Z", - "dynamicLearning": true, - "learningMode": true, - "sensorStatus": "Ok", - "sensorVersion": "2020.11.01.1643", - "tiAutomaticUpdates": true, - "tiStatus": "Ok", - "tiVersion": "2020-11-17T12:31:25Z", - "zone": "Zone Name", - "sensorType": "Ot" - } - } - }, - "201": { - "body": { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor", - "type": "Microsoft.IoTSecurity/sensors", - "properties": { - "connectivityTime": "2020-11-17T12:31:25Z", - "dynamicLearning": true, - "learningMode": true, - "sensorStatus": "Ok", - "sensorVersion": "2020.11.01.1643", - "tiAutomaticUpdates": true, - "tiStatus": "Ok", - "tiVersion": "2020-11-17T12:31:25Z", - "zone": "Zone Name", - "sensorType": "Ot" - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/TriggerTiPackageUpdate.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/TriggerTiPackageUpdate.json deleted file mode 100644 index c79a50ab4852..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/TriggerTiPackageUpdate.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "sensorName": "mySensor" - }, - "responses": { - "200": {} - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/Delete.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/Delete.json deleted file mode 100644 index 19db474a1fd3..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/Delete.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/Get.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/Get.json deleted file mode 100644 index 895bb29b0d70..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/Get.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sites/default", - "type": "Microsoft.IoTSecurity/sites", - "name": "default", - "properties": { - "displayName": "IoT site name", - "tags": { - "key1": "value1", - "key2": "value2" - } - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/List.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/List.json deleted file mode 100644 index b9ca5bf9e754..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/List.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/sites" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "default", - "id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sites/default", - "type": "Microsoft.IoTSecurity/sites", - "properties": { - "displayName": "IoT site name", - "tags": { - "key1": "value1", - "key2": "value2" - } - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - ] - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/Put.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/Put.json deleted file mode 100644 index 843fdaa09745..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/Put.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "api-version": "2021-02-01-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "siteModel": { - "properties": { - "displayName": "IoT site name", - "tags": { - "key1": "value1", - "key2": "value2" - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "default", - "id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sites/default", - "type": "Microsoft.IoTSecurity/sites", - "properties": { - "displayName": "IoT site name", - "tags": { - "key1": "value1", - "key2": "value2" - } - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - }, - "201": { - "body": { - "name": "default", - "id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sites/default", - "type": "Microsoft.IoTSecurity/sites", - "properties": { - "displayName": "IoT site name", - "tags": { - "key1": "value1", - "key2": "value2" - } - }, - "systemData": { - "createdBy": "string", - "createdByType": "User", - "createdAt": "2020-04-27T21:53:29.0928001Z", - "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-04-27T21:53:29.0928001Z" - } - } - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/locations.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/locations.json deleted file mode 100644 index 2eccab51b6a4..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/locations.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Defender for IoT", - "description": "API spec for Microsoft.IoTSecurity (Azure Defender for IoT) resource provider", - "version": "2021-02-01-preview" - }, - "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.IoTSecurity/locations": { - "get": { - "x-ms-examples": { - "List locations": { - "$ref": "./examples/Locations/List.json" - } - }, - "tags": [ - "Locations" - ], - "description": "Lists Defender for IoT locations associated with the given subscription.", - "operationId": "Locations_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LocationList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/locations/{iotDefenderLocation}": { - "get": { - "x-ms-examples": { - "Get location": { - "$ref": "./examples/Locations/Get.json" - } - }, - "tags": [ - "Locations" - ], - "operationId": "Locations_Get", - "description": "Get a Defender for IoT location associated with the given subscription.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../common/1.0/types.json#/parameters/IotDefenderLocation" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LocationModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "LocationList": { - "description": "List of Defender for IoT locations", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/LocationModel" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - }, - "LocationModel": { - "type": "object", - "description": "IoT Defender location", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "IoT Defender location properties", - "$ref": "#/definitions/LocationProperties" - }, - "systemData": { - "readOnly": true, - "type": "object", - "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ] - }, - "LocationProperties": { - "type": "object", - "description": "Defender for IoT location properties", - "properties": {} - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/onPremiseSensors.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/onPremiseSensors.json deleted file mode 100644 index d710eb2dc967..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/onPremiseSensors.json +++ /dev/null @@ -1,352 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Defender for IoT", - "description": "API spec for Microsoft.IoTSecurity (Azure Defender for IoT) resource provider", - "version": "2021-02-01-preview" - }, - "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.IoTSecurity/onPremiseSensors": { - "get": { - "x-ms-examples": { - "List on-premise IoT sensors": { - "$ref": "./examples/OnPremiseSensors/List.json" - } - }, - "tags": [ - "On-Premise Sensors" - ], - "description": "List on-premise IoT sensors", - "operationId": "OnPremiseSensors_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OnPremiseSensorsList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/onPremiseSensors/{onPremiseSensorName}": { - "get": { - "x-ms-examples": { - "Get on-premise IoT sensor": { - "$ref": "./examples/OnPremiseSensors/Get.json" - } - }, - "tags": [ - "On-Premise Sensors" - ], - "operationId": "OnPremiseSensors_Get", - "description": "Get on-premise IoT sensor", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/OnPremiseSensorName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OnPremiseSensor" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create or update on-premise IoT sensor": { - "$ref": "./examples/OnPremiseSensors/Put.json" - } - }, - "tags": [ - "On-Premise Sensors" - ], - "operationId": "OnPremiseSensors_CreateOrUpdate", - "description": "Create or update on-premise IoT sensor", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/OnPremiseSensorName" - } - ], - "responses": { - "200": { - "description": "Updated on-premise IoT sensor", - "schema": { - "$ref": "#/definitions/OnPremiseSensor" - } - }, - "201": { - "description": "Created on-premise IoT sensor", - "schema": { - "$ref": "#/definitions/OnPremiseSensor" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete on-premise IoT sensor": { - "$ref": "./examples/OnPremiseSensors/Delete.json" - } - }, - "tags": [ - "On-Premise Sensors" - ], - "operationId": "OnPremiseSensors_Delete", - "description": "Delete on-premise IoT sensor", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/OnPremiseSensorName" - } - ], - "responses": { - "200": { - "description": "Deleted on-premise IoT sensor" - }, - "204": { - "description": "On-premise IoT sensor does not exist" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/onPremiseSensors/{onPremiseSensorName}/downloadActivation": { - "post": { - "x-ms-examples": { - "Download activation file": { - "$ref": "./examples/OnPremiseSensors/DownloadActivation.json" - } - }, - "tags": [ - "On-Premise Sensors" - ], - "operationId": "OnPremiseSensors_DownloadActivation", - "description": "Download sensor activation file", - "produces": [ - "application/zip" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/OnPremiseSensorName" - } - ], - "responses": { - "200": { - "description": "Downloaded activation file", - "schema": { - "type": "object", - "format": "file" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/onPremiseSensors/{onPremiseSensorName}/downloadResetPassword": { - "post": { - "x-ms-examples": { - "Download file for reset password of the sensor": { - "$ref": "./examples/OnPremiseSensors/DownloadResetPassword.json" - } - }, - "tags": [ - "Sensors" - ], - "operationId": "OnPremiseSensors_DownloadResetPassword", - "description": "Download file for reset password of the sensor", - "produces": [ - "application/zip" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/OnPremiseSensorName" - }, - { - "in": "body", - "name": "body", - "required": true, - "description": "Input for reset password.", - "schema": { - "$ref": "#/definitions/ResetPasswordInput" - }, - "x-ms-parameter-location": "method" - } - ], - "responses": { - "200": { - "description": "Downloaded reset password file", - "schema": { - "type": "object", - "format": "file" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "OnPremiseSensorsList": { - "description": "List of on-premise IoT sensors", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/OnPremiseSensor" - } - } - } - }, - "OnPremiseSensor": { - "type": "object", - "description": "On-premise IoT sensor", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "On-premise IoT sensor properties", - "$ref": "#/definitions/OnPremiseSensorProperties" - }, - "systemData": { - "readOnly": true, - "type": "object", - "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ] - }, - "OnPremiseSensorProperties": { - "type": "object", - "description": "On-premise IoT sensor properties", - "properties": {} - }, - "ResetPasswordInput": { - "description": "Reset password input.", - "type": "object", - "properties": { - "applianceId": { - "description": "The appliance id of the sensor.", - "type": "string" - } - } - } - }, - "parameters": { - "OnPremiseSensorName": { - "name": "onPremiseSensorName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the on-premise IoT sensor", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/operations.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/operations.json deleted file mode 100644 index 937eaee171c0..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/operations.json +++ /dev/null @@ -1,377 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Defender for IoT", - "description": "API spec for Microsoft.IoTSecurity (Azure Defender for IoT) resource provider", - "version": "2021-02-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/providers/Microsoft.IoTSecurity/operations": { - "get": { - "x-ms-examples": { - "Create or update IoT Defender settings": { - "$ref": "./examples/Operations/List.json" - } - }, - "tags": [ - "Operation" - ], - "summary": "Lists the available operations", - "description": "List of available operations", - "operationId": "Operations_List", - "parameters": [ - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/OperationList" - } - }, - "default": { - "description": "An error response received from the provider.", - "schema": { - "$ref": "#/definitions/ErrorResponseModel" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "ErrorResponseModel": { - "description": "Default error response model", - "type": "object", - "properties": { - "error": { - "description": "Gets or sets the error.", - "allOf": [ - { - "$ref": "#/definitions/ErrorModel" - } - ], - "readOnly": true - } - } - }, - "ErrorModel": { - "description": "Default error model", - "type": "object", - "properties": { - "code": { - "description": "Gets or sets the code.", - "type": "string", - "readOnly": true - }, - "details": { - "description": "Gets or sets the details.", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "#/definitions/ErrorModel" - }, - "x-ms-identifiers": [ - "code" - ], - "readOnly": true - }, - "message": { - "description": "Gets or sets the messages.", - "type": "string", - "readOnly": true - }, - "target": { - "description": "Gets or sets the target.", - "type": "string", - "readOnly": true - } - } - }, - "OperationList": { - "description": "Paged list of operation resources", - "required": [ - "value" - ], - "type": "object", - "properties": { - "count": { - "format": "int64", - "description": "Total item count.", - "type": "integer" - }, - "nextLink": { - "description": "The Url of next result page.", - "type": "string" - }, - "value": { - "description": "Collection of items of type results.", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "x-ms-identifiers": [] - } - } - }, - "Operation": { - "description": "Operation resource", - "type": "object", - "properties": { - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "Properties on the operation" - }, - "isDataAction": { - "description": "Whether operation is a data action", - "type": "boolean" - }, - "name": { - "description": "Operation name for display purposes", - "type": "string" - }, - "origin": { - "description": "origin of the operation", - "type": "string" - }, - "properties": { - "$ref": "#/definitions/OperationProperties", - "description": "properties for the operation meta info", - "x-ms-client-flatten": true - } - } - }, - "OperationDisplay": { - "description": "The response model for get operation properties", - "type": "object", - "properties": { - "description": { - "description": "Description of the operation for display purposes", - "type": "string" - }, - "operation": { - "description": "Name of the operation for display purposes", - "type": "string" - }, - "provider": { - "description": "Name of the provider for display purposes", - "type": "string" - }, - "resource": { - "description": "Name of the resource type for display purposes", - "type": "string" - } - } - }, - "OperationProperties": { - "description": "properties on meta info", - "type": "object", - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/OperationMetaServiceSpecification", - "description": "meta service specification" - } - } - }, - "OperationMetaServiceSpecification": { - "description": "The operation meta service specification", - "type": "object", - "properties": { - "logSpecifications": { - "description": "log specifications for the operation", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "#/definitions/OperationMetaLogSpecification" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "metricSpecifications": { - "description": "metric specifications for the operation", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "#/definitions/OperationMetaMetricSpecification" - }, - "x-ms-identifiers": [ - "name" - ] - } - } - }, - "OperationMetaMetricSpecification": { - "description": "metric specifications for the operation", - "type": "object", - "properties": { - "aggregationType": { - "description": "aggregation type of metric", - "type": "string" - }, - "dimensions": { - "description": "properties for dimension", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "#/definitions/DimensionProperties" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "displayDescription": { - "description": "description of the metric", - "type": "string" - }, - "displayName": { - "description": "localized name of the metric", - "type": "string" - }, - "enableRegionalMdmAccount": { - "description": "enable regional mdm account", - "type": "string" - }, - "internalMetricName": { - "description": "internal metric name", - "type": "string" - }, - "name": { - "description": "name of the metric", - "type": "string" - }, - "resourceIdDimensionNameOverride": { - "description": "dimension name use to replace resource id if specified", - "type": "string" - }, - "sourceMdmNamespace": { - "description": "Metric namespace.\r\nOnly set the namespace if different from the default value, \r\nleaving it empty makes it use the value from the ARM manifest.", - "type": "string" - }, - "supportedAggregationTypes": { - "description": "supported aggregation types", - "uniqueItems": false, - "type": "array", - "items": { - "type": "string" - } - }, - "supportedTimeGrainTypes": { - "description": "supported time grain types", - "uniqueItems": false, - "type": "array", - "items": { - "type": "string" - } - }, - "unit": { - "description": "units for the metric", - "type": "string" - } - } - }, - "OperationMetaLogSpecification": { - "description": "log specifications for operation api", - "type": "object", - "properties": { - "blobDuration": { - "description": "blob duration of the log", - "type": "string" - }, - "displayName": { - "description": "localized name of the log category", - "type": "string" - }, - "name": { - "description": "name of the log category", - "type": "string" - } - } - }, - "DimensionProperties": { - "description": "properties for dimension", - "type": "object", - "properties": { - "displayName": { - "description": "localized display name of the dimension to customer", - "type": "string" - }, - "name": { - "description": "dimension name", - "type": "string" - }, - "toBeExportedForCustomer": { - "description": "flag indicating whether this dimension should be included to the customer in Azure Monitor logs (aka Shoebox)", - "type": "boolean" - } - } - } - }, - "parameters": { - "api-version": { - "name": "api-version", - "in": "query", - "description": "The api version to use.", - "required": true, - "type": "string" - }, - "subscriptionId": { - "name": "subscriptionId", - "in": "path", - "description": "The subscription identifier", - "required": true, - "type": "string" - }, - "resourceGroupName": { - "name": "resourceGroupName", - "in": "path", - "description": "The resource group name.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "accountName": { - "name": "accountName", - "in": "path", - "description": "The name of the account.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - }, - "securityDefinitions": { - "azure_auth": { - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "user_impersonation": "impersonate your user account" - }, - "type": "oauth2", - "description": "Azure Active Directory OAuth2 Flow" - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "tags": [] -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/sensors.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/sensors.json deleted file mode 100644 index 19a11fa8f7c8..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/sensors.json +++ /dev/null @@ -1,528 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Defender for IoT", - "description": "API spec for Microsoft.IoTSecurity (Azure Defender for IoT) resource provider", - "version": "2021-02-01-preview" - }, - "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": { - "/{scope}/providers/Microsoft.IoTSecurity/sensors": { - "get": { - "x-ms-examples": { - "List IoT sensors": { - "$ref": "./examples/Sensors/List.json" - } - }, - "tags": [ - "Sensors" - ], - "description": "List IoT sensors", - "operationId": "Sensors_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SensorScope" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SensorsList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.IoTSecurity/sensors/{sensorName}": { - "get": { - "x-ms-examples": { - "Get IoT sensor": { - "$ref": "./examples/Sensors/Get.json" - } - }, - "tags": [ - "Sensors" - ], - "operationId": "Sensors_Get", - "description": "Get IoT sensor", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SensorScope" - }, - { - "$ref": "#/parameters/SensorName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SensorModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create or update IoT sensor": { - "$ref": "./examples/Sensors/Put.json" - } - }, - "tags": [ - "Sensors" - ], - "operationId": "Sensors_CreateOrUpdate", - "description": "Create or update IoT sensor", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SensorScope" - }, - { - "$ref": "#/parameters/SensorName" - }, - { - "$ref": "#/parameters/SensorModel" - } - ], - "responses": { - "200": { - "description": "Updated IoT sensor", - "schema": { - "$ref": "#/definitions/SensorModel" - } - }, - "201": { - "description": "Created IoT sensor", - "schema": { - "$ref": "#/definitions/SensorModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete IoT sensor": { - "$ref": "./examples/Sensors/Delete.json" - } - }, - "tags": [ - "Sensors" - ], - "operationId": "Sensors_Delete", - "description": "Delete IoT sensor", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SensorScope" - }, - { - "$ref": "#/parameters/SensorName" - } - ], - "responses": { - "200": { - "description": "Deleted IoT sensor" - }, - "204": { - "description": "IoT sensor does not exist" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.IoTSecurity/sensors/{sensorName}/downloadActivation": { - "post": { - "x-ms-examples": { - "Download activation file": { - "$ref": "./examples/Sensors/DownloadActivation.json" - } - }, - "tags": [ - "Sensors" - ], - "operationId": "Sensors_DownloadActivation", - "description": "Download sensor activation file", - "produces": [ - "application/zip" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SensorScope" - }, - { - "$ref": "#/parameters/SensorName" - } - ], - "responses": { - "200": { - "description": "Downloaded activation file", - "schema": { - "type": "object", - "format": "file" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.IoTSecurity/sensors/{sensorName}/downloadResetPassword": { - "post": { - "x-ms-examples": { - "Download file for reset password of the sensor": { - "$ref": "./examples/Sensors/DownloadResetPassword.json" - } - }, - "tags": [ - "Sensors" - ], - "operationId": "Sensors_DownloadResetPassword", - "description": "Download file for reset password of the sensor", - "produces": [ - "application/zip" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SensorScope" - }, - { - "$ref": "#/parameters/SensorName" - }, - { - "in": "body", - "name": "body", - "required": true, - "description": "The reset password input.", - "schema": { - "$ref": "#/definitions/ResetPasswordInput" - }, - "x-ms-parameter-location": "method" - } - ], - "responses": { - "200": { - "description": "Downloaded reset password file", - "schema": { - "type": "object", - "format": "file" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.IoTSecurity/sensors/{sensorName}/triggerTiPackageUpdate": { - "post": { - "x-ms-examples": { - "Trigger threat intelligence package update": { - "$ref": "./examples/Sensors/TriggerTiPackageUpdate.json" - } - }, - "tags": [ - "Sensors" - ], - "operationId": "Sensors_TriggerTiPackageUpdate", - "description": "Trigger threat intelligence package update", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SensorScope" - }, - { - "$ref": "#/parameters/SensorName" - } - ], - "responses": { - "200": { - "description": "Triggered threat intelligence package update" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "SensorsList": { - "description": "List of IoT sensors", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SensorModel" - } - } - } - }, - "SensorModel": { - "type": "object", - "description": "IoT sensor model", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "IoT sensor properties", - "$ref": "#/definitions/SensorProperties" - }, - "systemData": { - "readOnly": true, - "type": "object", - "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" - } - ] - }, - "SensorProperties": { - "type": "object", - "description": "IoT sensor properties", - "properties": { - "connectivityTime": { - "description": "Last connectivity time of the IoT sensor", - "readOnly": true, - "type": "string", - "example": "2020-11-17T12:31:25Z" - }, - "dynamicLearning": { - "description": "Dynamic mode status of the IoT sensor", - "example": true, - "readOnly": true, - "type": "boolean" - }, - "learningMode": { - "description": "Learning mode status of the IoT sensor", - "example": true, - "readOnly": true, - "type": "boolean" - }, - "sensorStatus": { - "readOnly": true, - "type": "string", - "example": "Ok", - "description": "Status of the IoT sensor", - "enum": [ - "Ok", - "Disconnected", - "Unavailable" - ], - "x-ms-enum": { - "name": "sensorStatus", - "modelAsString": true, - "values": [ - { - "value": "Ok" - }, - { - "value": "Disconnected" - }, - { - "value": "Unavailable" - } - ] - } - }, - "sensorVersion": { - "description": "Version of the IoT sensor", - "readOnly": true, - "type": "string", - "example": "2020.11.01.1643" - }, - "tiAutomaticUpdates": { - "description": "TI Automatic mode status of the IoT sensor", - "example": true, - "type": "boolean" - }, - "tiStatus": { - "readOnly": true, - "type": "string", - "example": "Ok", - "description": "TI Status of the IoT sensor", - "enum": [ - "Ok", - "Failed", - "InProgress", - "UpdateAvailable" - ], - "x-ms-enum": { - "name": "tiStatus", - "modelAsString": true, - "values": [ - { - "value": "Ok" - }, - { - "value": "Failed" - }, - { - "value": "InProgress" - }, - { - "value": "UpdateAvailable" - } - ] - } - }, - "tiVersion": { - "description": "TI Version of the IoT sensor", - "readOnly": true, - "type": "string", - "example": "2020-11-17T12:31:25Z" - }, - "zone": { - "type": "string", - "description": "Zone of the IoT sensor", - "example": "A12" - }, - "sensorType": { - "description": "Type of sensor", - "example": "Ot", - "type": "string", - "enum": [ - "Ot", - "Enterprise" - ], - "x-ms-enum": { - "name": "sensorType", - "modelAsString": true, - "values": [ - { - "value": "Ot" - }, - { - "value": "Enterprise" - } - ] - } - } - } - }, - "ResetPasswordInput": { - "type": "object", - "description": "Reset password input.", - "properties": { - "applianceId": { - "description": "The appliance id of the sensor.", - "type": "string" - } - } - } - }, - "parameters": { - "SensorScope": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub)", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "SensorName": { - "name": "sensorName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the IoT sensor", - "x-ms-parameter-location": "method" - }, - "SensorModel": { - "name": "sensorModel", - "in": "body", - "required": true, - "description": "The IoT sensor model", - "schema": { - "$ref": "#/definitions/SensorModel" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/sites.json b/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/sites.json deleted file mode 100644 index 722abaf53153..000000000000 --- a/specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/sites.json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Defender for IoT", - "description": "API spec for Microsoft.IoTSecurity (Azure Defender for IoT) resource provider", - "version": "2021-02-01-preview" - }, - "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": { - "/{scope}/providers/Microsoft.IoTSecurity/sites": { - "get": { - "x-ms-examples": { - "List IoT sites": { - "$ref": "./examples/Sites/List.json" - } - }, - "tags": [ - "Sites" - ], - "description": "List IoT sites", - "operationId": "Sites_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SiteScope" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SitesList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.IoTSecurity/sites/default": { - "get": { - "x-ms-examples": { - "Get IoT site": { - "$ref": "./examples/Sites/Get.json" - } - }, - "tags": [ - "Sites" - ], - "operationId": "Sites_Get", - "description": "Get IoT site", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SiteScope" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SiteModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create or update IoT site": { - "$ref": "./examples/Sites/Put.json" - } - }, - "tags": [ - "Sites" - ], - "operationId": "Sites_CreateOrUpdate", - "description": "Create or update IoT site", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SiteScope" - }, - { - "$ref": "#/parameters/SiteModel" - } - ], - "responses": { - "200": { - "description": "Updated IoT site", - "schema": { - "$ref": "#/definitions/SiteModel" - } - }, - "201": { - "description": "Created IoT site", - "schema": { - "$ref": "#/definitions/SiteModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete IoT site": { - "$ref": "./examples/Sites/Delete.json" - } - }, - "tags": [ - "Sites" - ], - "operationId": "Sites_Delete", - "description": "Delete IoT site", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SiteScope" - } - ], - "responses": { - "200": { - "description": "Deleted IoT site" - }, - "204": { - "description": "IoT site does not exist" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "SitesList": { - "description": "List of IoT sites", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SiteModel" - } - } - } - }, - "SiteModel": { - "type": "object", - "description": "IoT site model", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "IoT site properties", - "$ref": "#/definitions/SiteProperties" - }, - "systemData": { - "readOnly": true, - "type": "object", - "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ] - }, - "SiteProperties": { - "type": "object", - "description": "IoT site properties", - "properties": { - "displayName": { - "type": "string", - "description": "Display name of the IoT site" - }, - "tags": { - "type": "object", - "description": "Tags of the IoT site", - "additionalProperties": { - "type": "string" - } - } - }, - "required": [ - "displayName" - ] - } - }, - "parameters": { - "SiteScope": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub)", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "SiteModel": { - "name": "siteModel", - "in": "body", - "required": true, - "description": "The IoT sites model", - "schema": { - "$ref": "#/definitions/SiteModel" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/iotsecurity/resource-manager/common/1.0/types.json b/specification/iotsecurity/resource-manager/common/1.0/types.json deleted file mode 100644 index 866704943a76..000000000000 --- a/specification/iotsecurity/resource-manager/common/1.0/types.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "1.0", - "title": "Common types" - }, - "paths": {}, - "definitions": {}, - "parameters": { - "IotDefenderLocation": { - "name": "iotDefenderLocation", - "in": "path", - "required": true, - "type": "string", - "description": "Defender for IoT location", - "x-ms-parameter-location": "client" - } - } -} diff --git a/specification/iotsecurity/resource-manager/readme.go.md b/specification/iotsecurity/resource-manager/readme.go.md deleted file mode 100644 index dad90e255ee2..000000000000 --- a/specification/iotsecurity/resource-manager/readme.go.md +++ /dev/null @@ -1,16 +0,0 @@ -## Go - -These settings apply only when `--go` is specified on the command line. - -``` yaml $(go) && $(track2) -license-header: MICROSOFT_MIT_NO_VERSION -module-name: sdk/resourcemanager/iotsecurity/armiotsecurity -module: github.com/Azure/azure-sdk-for-go/$(module-name) -output-folder: $(go-sdk-folder)/$(module-name) -azure-arm: true -directive: -- from: swagger-document - where: $.parameters.IotDefenderLocation - transform: > - $["x-ms-parameter-location"] = "method"; -``` diff --git a/specification/iotsecurity/resource-manager/readme.md b/specification/iotsecurity/resource-manager/readme.md deleted file mode 100644 index 32575c77e99f..000000000000 --- a/specification/iotsecurity/resource-manager/readme.md +++ /dev/null @@ -1,90 +0,0 @@ -# IoT Security - -> see https://aka.ms/autorest - -This is the AutoRest configuration file for IoT Security. - ---- - -## Getting Started - -To build the SDK for Security, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: - -> `autorest` - -To see additional help and options, run: - -> `autorest --help` - ---- - -## Configuration - -## Suppression - -``` yaml -directive: - - suppress: PageableOperation - from: defenderSettings.json - where: '$.paths["/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings"].get' - reason: The list returns limited number of items - - suppress: PageableOperation - from: sensors.json - where: '$.paths["/{scope}/providers/Microsoft.IoTSecurity/sensors/{sensorName}"].get' - reason: The list returns limited number of items - - suppress: PageableOperation - from: onPremiseSensors.json - where: '$.paths["/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/onPremiseSensors"].get' - reason: The list returns limited number of items - - suppress: TopLevelResourcesListByResourceGroup - from: onPremiseSensors.json - where: $.definitions.OnPremiseSensor - reason: The resource is managed in a subscription level (instead of inside a resource group) -``` - -### Basic Information - -These are the global settings for the IoT Security API. - -``` yaml -title: IoTSecurity -description: API spec for Microsoft.IoTSecurity (Azure Defender for IoT) resource provider -openapi-type: arm -tag: 2021-02-01-preview -``` - -### Tag: 2021-02-01-preview - -These settings apply only when `--tag=2021-02-01-preview` is specified on the command line. - -``` yaml $(tag) == '2021-02-01-preview' -input-file: -- Microsoft.IoTSecurity/preview/2021-02-01-preview/defenderSettings.json -- Microsoft.IoTSecurity/preview/2021-02-01-preview/operations.json -- Microsoft.IoTSecurity/preview/2021-02-01-preview/sites.json -- Microsoft.IoTSecurity/preview/2021-02-01-preview/sensors.json -- Microsoft.IoTSecurity/preview/2021-02-01-preview/onPremiseSensors.json -- Microsoft.IoTSecurity/preview/2021-02-01-preview/locations.json -- Microsoft.IoTSecurity/preview/2021-02-01-preview/deviceGroups.json -- Microsoft.IoTSecurity/preview/2021-02-01-preview/devices.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-net - - repo: azure-sdk-for-go - - repo: azure-powershell -``` - -## C# - -See configuration in [readme.csharp.md](./readme.csharp.md)