diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/devices.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/devices.json deleted file mode 100644 index 6a3e58596326..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/devices.json +++ /dev/null @@ -1,640 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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.Security/devices": { - "get": { - "x-ms-examples": { - "Get Devices": { - "$ref": "./examples/Devices/GetDevicesListForSubscription.json" - } - }, - "tags": [ - "Device Inventory" - ], - "description": "Get list of the devices by their subscription.", - "operationId": "DevicesForSubscription_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "in": "query", - "name": "$limit", - "required": false, - "type": "integer", - "format": "int32", - "description": "Limit the number of items returned in a single page" - }, - { - "in": "query", - "name": "$skipToken", - "required": false, - "type": "string", - "description": "Skip token used for pagination" - }, - { - "in": "query", - "name": "deviceManagementType", - "required": false, - "type": "string", - "enum": [ - "Managed", - "Unmanaged" - ], - "description": "Get devices only from specific type, Managed or Unmanaged.", - "x-ms-enum": { - "name": "ManagementState", - "modelAsString": true - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DeviceList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/{resourceId}/providers/Microsoft.Security/devices": { - "get": { - "x-ms-examples": { - "Get Devices": { - "$ref": "./examples/Devices/GetDevicesListForHub.json" - } - }, - "tags": [ - "Device Inventory" - ], - "description": "Get list of the devices for the specified IoT Hub resource.", - "operationId": "DevicesForHub_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceId" - }, - { - "in": "query", - "name": "$limit", - "required": false, - "type": "integer", - "format": "int32", - "description": "Limit the number of items returned in a single page" - }, - { - "in": "query", - "name": "$skipToken", - "required": false, - "type": "string", - "description": "Skip token used for pagination" - }, - { - "in": "query", - "name": "deviceManagementType", - "required": false, - "type": "string", - "enum": [ - "Managed", - "Unmanaged" - ], - "description": "Get devices only from specific type, Managed or Unmanaged.", - "x-ms-enum": { - "name": "ManagementState", - "modelAsString": true - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DeviceList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/{resourceId}/providers/Microsoft.Security/devices/{deviceId}": { - "get": { - "x-ms-examples": { - "Get Device": { - "$ref": "./examples/Devices/GetDevice.json" - } - }, - "tags": [ - "Device Inventory" - ], - "description": "Get device.", - "operationId": "Device_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceId" - }, - { - "$ref": "#/parameters/DeviceId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Device" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "DeviceList": { - "description": "List of Devices", - "required": [ - "value" - ], - "properties": { - "value": { - "type": "array", - "description": "List of devices", - "items": { - "$ref": "#/definitions/Device" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "When there are too many devices for one page, use this URI to fetch the next page." - } - } - }, - "Device": { - "type": "object", - "description": "Device model", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Device data", - "$ref": "#/definitions/DeviceProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "DeviceProperties": { - "type": "object", - "description": "Device Information", - "properties": { - "displayName": { - "type": "string", - "description": "Device display name given by the collector" - }, - "deviceType": { - "type": "string", - "description": "Device type." - }, - "sourceName": { - "readOnly": true, - "type": "string", - "description": "The source that created the device" - }, - "networkInterfaces": { - "readOnly": true, - "type": "array", - "description": "List of network interfaces.", - "items": { - "$ref": "#/definitions/NetworkInterface" - } - }, - "vendor": { - "readOnly": true, - "type": "string", - "description": "Device vendor" - }, - "osName": { - "description": "Device operating system name.", - "type": "string" - }, - "protocols": { - "readOnly": true, - "type": "array", - "description": "List of protocols.", - "items": { - "$ref": "#/definitions/Protocol" - } - }, - "lastActiveTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "last time the device was active in the network" - }, - "lastUpdateTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "last time the device was updated" - }, - "managementState": { - "readOnly": true, - "type": "string", - "enum": [ - "Managed", - "Unmanaged" - ], - "description": "Managed state of the device.", - "x-ms-enum": { - "name": "ManagementState", - "modelAsString": true - } - }, - "authorizationState": { - "type": "string", - "enum": [ - "Authorized", - "Unauthorized" - ], - "default": "Unauthorized", - "description": "Authorized state of the device.", - "x-ms-enum": { - "name": "AuthorizationState", - "modelAsString": true - } - }, - "deviceCriticality": { - "type": "string", - "enum": [ - "Important", - "Standard" - ], - "default": "Standard", - "x-ms-enum": { - "name": "DeviceCriticality", - "modelAsString": true - }, - "description": "Device criticality." - }, - "purdueLevel": { - "type": "string", - "enum": [ - "ProcessControl", - "Supervisory", - "Enterprise" - ], - "default": "ProcessControl", - "x-ms-enum": { - "name": "PurdueLevel", - "modelAsString": true - }, - "description": "Purdue level of the device." - }, - "notes": { - "type": "string", - "description": "user notes for the device, up to 300 characters." - }, - "firmwares": { - "readOnly": true, - "type": "array", - "description": "List of device firmwares.", - "items": { - "$ref": "#/definitions/Firmware" - } - }, - "discoveryTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "Discovered time of the device." - }, - "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." - }, - "scanningFunctionality": { - "readOnly": true, - "type": "string", - "enum": [ - "ScannerDevice", - "NotScannerDevice" - ], - "x-ms-enum": { - "name": "ScanningFunctionality", - "modelAsString": true - }, - "description": "Indicates whether the device is a scanner" - }, - "lastScanTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "last time the device was scanning." - }, - "riskScore": { - "readOnly": true, - "type": "integer", - "format": "int32", - "minimum": 0, - "maximum": 100, - "description": "risk score of the device." - }, - "sensors": { - "readOnly": true, - "type": "array", - "description": "List of sensors that scanned this device.", - "items": { - "$ref": "#/definitions/Sensor" - } - }, - "site": { - "readOnly": true, - "$ref": "#/definitions/Site" - }, - "deviceStatus": { - "readOnly": true, - "type": "string", - "enum": [ - "Active", - "Removed" - ], - "x-ms-enum": { - "name": "DeviceStatus", - "modelAsString": true - }, - "description": "Device status." - } - } - }, - "NetworkInterface": { - "type": "object", - "description": "Network interface", - "properties": { - "ipAddress": { - "$ref": "#/definitions/IpAddress" - }, - "macAddress": { - "$ref": "#/definitions/MacAddress" - }, - "vlans": { - "readOnly": true, - "type": "array", - "description": "List of device vlans.", - "items": { - "type": "string" - } - } - } - }, - "IpAddress": { - "type": "object", - "description": "IP Address information", - "properties": { - "v4Address": { - "readOnly": true, - "type": "string", - "description": "IPV4 address" - }, - "detectionTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "Detection time of the ip address." - }, - "subnetCidr": { - "readOnly": true, - "type": "string", - "description": "Subnet Classless Inter-Domain Routing" - }, - "fqdn": { - "readOnly": true, - "type": "string", - "description": "Fully qualified domain name" - }, - "fqdnLastLookupTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "FQDN last lookup time." - } - } - }, - "MacAddress": { - "type": "object", - "description": "MAC Address information", - "properties": { - "address": { - "readOnly": true, - "type": "string", - "description": "MAC address" - }, - "detectionTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "Detection time of the mac address." - }, - "significance": { - "readOnly": true, - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "x-ms-enum": { - "name": "MacSignificance", - "modelAsString": true - }, - "description": "Indicates whether this is the primary secondary MAC address of the device" - }, - "relationToIpStatus": { - "readOnly": true, - "type": "string", - "enum": [ - "Guess", - "Certain" - ], - "x-ms-enum": { - "name": "RelationToIpStatus", - "modelAsString": true - }, - "description": "Indicates whether the relation of the mac to the ip address is certain or a guess" - } - } - }, - "Firmware": { - "type": "object", - "description": "Firmware information", - "properties": { - "moduleAddress": { - "readOnly": true, - "type": "string", - "description": "Address of the specific module a firmware is related to" - }, - "rack": { - "readOnly": true, - "type": "string", - "description": "Rack number of the module a firmware is related to." - }, - "slot": { - "readOnly": true, - "type": "string", - "description": "Slot number in the rack of the module a firmware is related to" - }, - "serial": { - "readOnly": true, - "type": "string", - "description": "Serial of the firmware" - }, - "model": { - "readOnly": true, - "type": "string", - "description": "Firmware model" - }, - "version": { - "readOnly": true, - "type": "string", - "description": "Firmware version" - }, - "additionalData": { - "readOnly": true, - "type": "object", - "description": " A bag of fields which extends the firmware information." - } - } - }, - "Protocol": { - "type": "object", - "description": "Protocol data", - "properties": { - "name": { - "readOnly": true, - "type": "string", - "description": "Protocol name" - }, - "identifiers": { - "type": "string", - "description": "list of protocol identifiers." - } - } - }, - "Sensor": { - "type": "object", - "description": "Sensor data", - "properties": { - "name": { - "readOnly": true, - "type": "string", - "description": "Sensor name" - }, - "zone": { - "readOnly": true, - "type": "string", - "description": "Zone Name." - } - } - }, - "Site": { - "type": "object", - "description": "Site data", - "properties": { - "displayName": { - "readOnly": true, - "type": "string", - "description": "Site display name" - } - } - } - }, - "parameters": { - "DeviceId": { - "name": "deviceId", - "in": "path", - "required": true, - "description": "Identifier of the device.", - "type": "string", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Devices/GetDevice.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Devices/GetDevice.json deleted file mode 100644 index b90115600eb5..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Devices/GetDevice.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Devices/iotHubs/myHub", - "deviceId": "myDevice" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Devices/iotHubs/myHub/providers/Microsoft.Security/devices/myDevice", - "name": "myDevice", - "type": "Microsoft.Security/devices", - "properties": { - "displayName": "10.168.140.1", - "deviceType": "PLC", - "sourceName": "HORIZON", - "networkInterfaces": [ - { - "ipAddress": { - "v4Address": "10.168.140.1", - "detectionTime": "2020-05-13T06:32:25Z" - }, - "macAddress": { - "address": "34-E1-2D-77-80-D0", - "detectionTime": "2020-05-13T06:32:25Z", - "significance": "Primary", - "relationToIpStatus": "Certain" - }, - "vlans": [ - "name(1)->2", - "3", - "another_name(4)" - ] - } - ], - "vendor": "BROADCOM", - "osName": "Windows 10 64", - "protocols": [ - { - "name": "CIP", - "identifiers": "0, 1" - }, - { - "name": "EtherNet/IP", - "identifiers": "0, 1" - } - ], - "lastActiveTime": "2020-05-13T06:32:25Z", - "lastUpdateTime": "2020-05-13T06:32:25Z", - "managementState": "Unmanaged", - "authorizationState": "Authorized", - "deviceCriticality": "Standard", - "purdueLevel": "ProcessControl", - "firmwares": [ - { - "serial": "0x27269242", - "model": "1768-ENBT", - "version": "29.11" - } - ], - "discoveryTime": "2020-05-13T06:32:25Z", - "programmingState": "NotProgrammingDevice", - "scanningFunctionality": "NotScannerDevice", - "riskScore": 100, - "sensors": [ - { - "name": "mySensorName", - "zone": "myZoneName" - } - ], - "site": { - "displayName": "mySite" - }, - "deviceStatus": "Active" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Devices/GetDevicesListForHub.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Devices/GetDevicesListForHub.json deleted file mode 100644 index 777df993569e..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Devices/GetDevicesListForHub.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Devices/iotHubs/myHub" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Devices/iotHubs/myHub/providers/Microsoft.Security/devices/myDevice", - "name": "myDevice", - "type": "Microsoft.Security/devices", - "properties": { - "displayName": "10.168.140.1", - "deviceType": "PLC", - "sourceName": "HORIZON", - "networkInterfaces": [ - { - "ipAddress": { - "v4Address": "10.168.140.1", - "detectionTime": "2020-05-13T06:32:25Z" - }, - "macAddress": { - "address": "34-E1-2D-77-80-D0", - "detectionTime": "2020-05-13T06:32:25Z", - "significance": "Primary", - "relationToIpStatus": "Certain" - }, - "vlans": [ - "name(1)->2", - "3", - "another_name(4)" - ] - } - ], - "vendor": "BROADCOM", - "osName": "Windows 10 64", - "protocols": [ - { - "name": "CIP", - "identifiers": "0, 1" - }, - { - "name": "EtherNet/IP", - "identifiers": "0, 1" - } - ], - "lastActiveTime": "2020-05-13T06:32:25Z", - "lastUpdateTime": "2020-05-13T06:32:25Z", - "managementState": "Unmanaged", - "authorizationState": "Authorized", - "deviceCriticality": "Standard", - "purdueLevel": "ProcessControl", - "firmwares": [ - { - "serial": "0x27269242", - "model": "1768-ENBT", - "version": "29.11" - } - ], - "discoveryTime": "2020-05-13T06:32:25Z", - "programmingState": "NotProgrammingDevice", - "scanningFunctionality": "NotScannerDevice", - "riskScore": 100, - "sensors": [ - { - "name": "mySensorName", - "zone": "myZoneName" - } - ], - "site": { - "displayName": "mySite" - }, - "deviceStatus": "Active" - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Devices/GetDevicesListForSubscription.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Devices/GetDevicesListForSubscription.json deleted file mode 100644 index b4aca357ced5..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Devices/GetDevicesListForSubscription.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Devices/iotHubs/myHub/providers/Microsoft.Security/devices/myDevice", - "name": "myDevice", - "type": "Microsoft.Security/devices", - "properties": { - "displayName": "10.168.140.1", - "deviceType": "PLC", - "sourceName": "HORIZON", - "networkInterfaces": [ - { - "ipAddress": { - "v4Address": "10.168.140.1", - "detectionTime": "2020-05-13T06:32:25Z" - }, - "macAddress": { - "address": "34-E1-2D-77-80-D0", - "detectionTime": "2020-05-13T06:32:25Z", - "significance": "Primary", - "relationToIpStatus": "Certain" - }, - "vlans": [ - "name(1)->2", - "3", - "another_name(4)" - ] - } - ], - "vendor": "BROADCOM", - "osName": "Windows 10 64", - "protocols": [ - { - "name": "CIP", - "identifiers": "0, 1" - }, - { - "name": "EtherNet/IP", - "identifiers": "0, 1" - } - ], - "lastActiveTime": "2020-05-13T06:32:25Z", - "lastUpdateTime": "2020-05-13T06:32:25Z", - "managementState": "Unmanaged", - "authorizationState": "Authorized", - "deviceCriticality": "Standard", - "purdueLevel": "ProcessControl", - "firmwares": [ - { - "serial": "0x27269242", - "model": "1768-ENBT", - "version": "29.11" - } - ], - "discoveryTime": "2020-05-13T06:32:25Z", - "programmingState": "NotProgrammingDevice", - "scanningFunctionality": "NotScannerDevice", - "riskScore": 100, - "sensors": [ - { - "name": "mySensorName", - "zone": "myZoneName" - } - ], - "site": { - "displayName": "mySite" - }, - "deviceStatus": "Active" - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlertTypes/GetIoTAlertType.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlertTypes/GetIoTAlertType.json deleted file mode 100644 index 87ce81ea38b0..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlertTypes/GetIoTAlertType.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotAlertTypeName": "IoT_PrivilegedContainer" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotAlertTypes/IoT_PrivilegedContainer", - "name": "IoT_PrivilegedContainer", - "type": "Microsoft.Security/iotAlertTypes", - "properties": { - "alertDisplayName": "Privileged container detected", - "severity": "Medium", - "description": "Machine logs indicate that a privileged Docker container is running. A privileged container has full access to host resources. If compromised, a malicious actor can use the privileged container to gain access to the host machine.", - "providerName": "IoTSecurity", - "remediationSteps": [ - "If the container doesn't need to run in privileged mode, remove the privileges from the container." - ], - "intent": "Exploitation,Execution", - "vendorName": "Microsoft", - "productName": "Azure Security Center for IoT", - "productComponentName": "IoT Hub" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlertTypes/GetIoTAlertTypeList.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlertTypes/GetIoTAlertTypeList.json deleted file mode 100644 index 80e82e38a730..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlertTypes/GetIoTAlertTypeList.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotAlertTypes", - "name": "IoT_PrivilegedContainer", - "type": "Microsoft.Security/iotAlertTypes", - "properties": { - "alertDisplayName": "Privileged container detected", - "severity": "Medium", - "description": "Machine logs indicate that a privileged Docker container is running. A privileged container has full access to host resources. If compromised, a malicious actor can use the privileged container to gain access to the host machine.", - "providerName": "IoTSecurity", - "remediationSteps": [ - "If the container doesn't need to run in privileged mode, remove the privileges from the container." - ], - "intent": "Exploitation,Execution", - "vendorName": "Microsoft", - "productName": "Azure Security Center for IoT", - "productComponentName": "IoT Hub" - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlerts/GetIoTAlert.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlerts/GetIoTAlert.json deleted file mode 100644 index 8412d3e4f6fd..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlerts/GetIoTAlert.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myGroup/providers/Microsoft.Devices/IotHubs/myIotHub", - "iotAlertId": "903e76ff-17eb-4bac-ac8a-2bc31ab68fd8" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Devices/iotHubs/myIotHub/providers/Microsoft.Security/iotAlerts/903e76ff-17eb-4bac-ac8a-2bc31ab68fd8", - "name": "903e76ff-17eb-4bac-ac8a-2bc31ab68fd8", - "type": "Microsoft.Security/iotAlerts", - "properties": { - "systemAlertId": "903e76ff-17eb-4bac-ac8a-2bc31ab68fd8", - "compromisedEntity": "device-1", - "alertType": "IoT_PrivilegedContainer", - "startTimeUtc": "2020-05-13T06:32:25Z", - "endTimeUtc": "2020-05-13T06:32:25Z", - "entities": [ - { - "$id": "1", - "CommandLine": "docker run --privileged", - "Type": "process" - } - ], - "extendedProperties": { - "CommandLine": "docker run --privileged", - "User Name": "aUser", - "UserId": "", - "ParentProcessId": 1593, - "DeviceId": "device-1" - } - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlerts/GetIoTAlertList.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlerts/GetIoTAlertList.json deleted file mode 100644 index 550b347860c5..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotAlerts/GetIoTAlertList.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myGroup/providers/Microsoft.Devices/IotHubs/myIotHub", - "alertType": "IoT_PrivilegedContainer", - "startTimeUtc>": "2020-05-12T06:32:25Z", - "startTimeUtc<": "2020-05-14T06:32:25Z", - "compromisedEntity": "device-1", - "$limit": 1 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Devices/iotHubs/myIotHub/providers/Microsoft.Security/iotAlerts/903e76ff-17eb-4bac-ac8a-2bc31ab68fd8", - "name": "903e76ff-17eb-4bac-ac8a-2bc31ab68fd8", - "type": "Microsoft.Security/iotAlerts", - "properties": { - "systemAlertId": "903e76ff-17eb-4bac-ac8a-2bc31ab68fd8", - "compromisedEntity": "device-1", - "alertType": "IoT_PrivilegedContainer", - "startTimeUtc": "2020-05-13T06:32:25Z", - "endTimeUtc": "2020-05-13T06:32:25Z", - "entities": [ - { - "$id": "1", - "CommandLine": "docker run --privileged", - "Type": "process" - } - ], - "extendedProperties": { - "CommandLine": "docker run --privileged", - "User Name": "aUser", - "UserId": "", - "ParentProcessId": 1593, - "DeviceId": "device-1" - } - } - } - ], - "nextLink": "https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myGroup/providers/Microsoft.Devices/iotHubs/myIotHub/providers/Microsoft.Security/iotAlerts?api-version=2020-08-06-preview&alertType=IoT_PrivilegedContainer&startTimeUtc>=2020-05-12T06:32:25Z&startTimeUtc<=2020-05-14T06:32:25Z&compromisedEntity=device-1&$limit=1&$skipToken=903e76ff-17eb-4bac-ac8a-2bc31ab68fd8" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Delete.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Delete.json deleted file mode 100644 index 1e27394b4322..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Delete.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadManagerActivation.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadManagerActivation.json deleted file mode 100644 index 2063852d8dd6..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadManagerActivation.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "headers": { - "content-type": "application/zip" - }, - "body": "{Binary}" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json deleted file mode 100644 index a2c048ddca11..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", - "type": "Microsoft.Security/iotDefenderSettings", - "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" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json deleted file mode 100644 index d4fed0f881c6..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", - "type": "Microsoft.Security/iotDefenderSettings", - "properties": { - "deviceQuota": 2000, - "sentinelWorkspaceResourceIds": [ - "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" - ], - "onboardingKind": "Default" - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PackageDownloads.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PackageDownloads.json deleted file mode 100644 index 456dc61d0672..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PackageDownloads.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-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/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json deleted file mode 100644 index e4c54697eab3..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotDefenderSettingsModel": { - "properties": { - "deviceQuota": 2000, - "sentinelWorkspaceResourceIds": [ - "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" - ], - "onboardingKind": "Default" - } - } - }, - "responses": { - "200": { - "body": { - "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", - "type": "Microsoft.Security/iotDefenderSettings", - "properties": { - "deviceQuota": 2000, - "sentinelWorkspaceResourceIds": [ - "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" - ], - "onboardingKind": "Default" - } - } - }, - "201": { - "body": { - "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", - "type": "Microsoft.Security/iotDefenderSettings", - "properties": { - "deviceQuota": 2000, - "sentinelWorkspaceResourceIds": [ - "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" - ], - "onboardingKind": "Default" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendationTypes/GetIoTRecommendationType.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendationTypes/GetIoTRecommendationType.json deleted file mode 100644 index ecc8b4b4b15e..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendationTypes/GetIoTRecommendationType.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotRecommendationTypeName": "IoT_VulnerableTLSCipherSuite" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotRecommendationTypes/IoT_VulnerableTLSCipherSuite", - "name": "IoT_VulnerableTLSCipherSuite", - "type": "Microsoft.Security/iotRecommendationTypes", - "properties": { - "recommendationDisplayName": "TLS cipher suite upgrade needed", - "severity": "Medium", - "description": "Insecure TLS configurations detected. Immediate TLS cipher suite upgrade recommended.", - "remediationSteps": [ - "Upgrade your TLS cipher suite to a secure configuration. See the Guide to TLS Standards Compliance for more information." - ], - "vendorName": "Microsoft", - "control": "Communication between device and IoT Hub is not optimized", - "productName": "Azure Security Center for IoT", - "productComponentName": "IoT Hub" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendationTypes/GetIoTRecommendationTypeList.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendationTypes/GetIoTRecommendationTypeList.json deleted file mode 100644 index ba7a86b41b0b..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendationTypes/GetIoTRecommendationTypeList.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotRecommendationTypes/IoT_VulnerableTLSCipherSuite", - "name": "IoT_VulnerableTLSCipherSuite", - "type": "Microsoft.Security/iotRecommendationTypes", - "properties": { - "recommendationDisplayName": "TLS cipher suite upgrade needed", - "severity": "Medium", - "description": "Insecure TLS configurations detected. Immediate TLS cipher suite upgrade recommended.", - "remediationSteps": [ - "Upgrade your TLS cipher suite to a secure configuration. See the Guide to TLS Standards Compliance for more information." - ], - "vendorName": "Microsoft", - "control": "Communication between device and IoT Hub is not optimized", - "productName": "Azure Security Center for IoT", - "productComponentName": "IoT Hub" - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendations/GetIoTRecommendation.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendations/GetIoTRecommendation.json deleted file mode 100644 index 4c12cfdae65b..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendations/GetIoTRecommendation.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myGroup/providers/Microsoft.Devices/IotHubs/myIotHub", - "iotRecommendationId": "903e76ff-17eb-4bac-ac8a-2bc31ab68fd8" - }, - "responses": { - "200": { - "body": { - "name": "IoT_Baseline|device-1", - "properties": { - "recommendationType": "IoT_Baseline", - "deviceId": "device-1", - "discoveredTimeUtc": "2020-05-13T06:32:25Z", - "recommendationAdditionalData": { - "SnapshotId": "48519d58-4e35-46cd-aed5-6251af95ed50", - "TotalFailedRules": "7", - "TotalRulesFailedDuoToError": "1", - "TotalInformationalFailedRules": "2", - "TotalCriticalFailedRules": "3", - "TotalWarningFailedRules": "1" - } - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendations/GetIoTRecommendationList.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendations/GetIoTRecommendationList.json deleted file mode 100644 index b6f909d395bc..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotRecommendations/GetIoTRecommendationList.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myGroup/providers/Microsoft.Devices/IotHubs/myIotHub", - "recommendationType": "IoT_Baseline", - "deviceId": "device-1", - "$limit": 1 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "IoT_Baseline|device-1", - "properties": { - "recommendationType": "IoT_Baseline", - "deviceId": "device-1", - "discoveredTimeUtc": "2020-05-13T06:32:25Z", - "recommendationAdditionalData": { - "SnapshotId": "48519d58-4e35-46cd-aed5-6251af95ed50", - "TotalFailedRules": "7", - "TotalRulesFailedDuoToError": "1", - "TotalInformationalFailedRules": "2", - "TotalCriticalFailedRules": "3", - "TotalWarningFailedRules": "1" - } - } - } - ], - "nextLink": "https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myGroup/providers/Microsoft.Devices/iotHubs/myIotHub/providers/Microsoft.Security/iotRecommendations?api-version=2020-08-06-preview&recommendationType=IoT_Baseline&deviceId=device-1&$limit=1&$skipToken=903e76ff-17eb-4bac-ac8a-2bc31ab68fd8" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json deleted file mode 100644 index c24e42c7df41..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "iotSensorName": "mySensor" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json deleted file mode 100644 index 7274a7caecc6..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "iotSensorName": "mySensor" - }, - "responses": { - "200": { - "headers": { - "content-type": "application/zip" - }, - "body": "{Binary}" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadResetPassword.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadResetPassword.json deleted file mode 100644 index eb56c01ba963..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadResetPassword.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "iotSensorName": "mySensor", - "body": { - "applianceId": "3214-528AV23-D121-D3-E1" - } - }, - "responses": { - "200": { - "headers": { - "content-type": "application/zip" - }, - "body": "{Binary}" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json deleted file mode 100644 index 80c66ce707a7..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "iotSensorName": "mySensor" - }, - "responses": { - "200": { - "body": { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSensors/mySensor", - "type": "Microsoft.Security/iotSensors", - "properties": { - "connectivityTime": "2020-11-17T12:31:25Z", - "creationTime": "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" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json deleted file mode 100644 index a7050fb4c8a4..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-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.Security/iotSensors/mySensor", - "type": "Microsoft.Security/iotSensors", - "properties": { - "connectivityTime": "2020-11-17T12:31:25Z", - "creationTime": "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" - } - }, - { - "name": "otherSensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSensors/otherSensor", - "type": "Microsoft.Security/iotSensors", - "properties": { - "connectivityTime": "2020-11-17T12:31:25Z", - "creationTime": "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" - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json deleted file mode 100644 index 835beb4467c0..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "iotSensorName": "mySensor", - "iotSensorsModel": { - "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.Security/iotSensors/mySensor", - "type": "Microsoft.Security/iotSensors", - "properties": { - "connectivityTime": "2020-11-17T12:31:25Z", - "creationTime": "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.Security/iotSensors/mySensor", - "type": "Microsoft.Security/iotSensors", - "properties": { - "connectivityTime": "2020-11-17T12:31:25Z", - "creationTime": "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" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/TriggerTiPackageUpdate.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/TriggerTiPackageUpdate.json deleted file mode 100644 index 2aebd9e8ac3b..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/TriggerTiPackageUpdate.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "iotSensorName": "mySensor" - }, - "responses": { - "200": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/Delete.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/Delete.json deleted file mode 100644 index dd79858b1cc7..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/Delete.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/Get.json deleted file mode 100644 index 75d959c8d13c..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/Get.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-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.Security/iotSites/default", - "type": "Microsoft.Security/iotSites", - "name": "default", - "properties": { - "displayName": "IoT site name", - "tags": { - "key1": "value1", - "key2": "value2" - } - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/List.json deleted file mode 100644 index 9918a1f91395..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/List.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/iotSites" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "default", - "id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSites/default", - "type": "Microsoft.Security/iotSites", - "properties": { - "displayName": "IoT site name", - "tags": { - "key1": "value1", - "key2": "value2" - } - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/Put.json deleted file mode 100644 index 3062bf75c5fe..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSites/Put.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", - "iotSitesModel": { - "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.Security/iotSites/default", - "type": "Microsoft.Security/iotSites", - "properties": { - "displayName": "IoT site name", - "tags": { - "key1": "value1", - "key2": "value2" - } - } - } - }, - "201": { - "body": { - "name": "default", - "id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSites/default", - "type": "Microsoft.Security/iotSites", - "properties": { - "displayName": "IoT site name", - "tags": { - "key1": "value1", - "key2": "value2" - } - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/Delete.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/Delete.json deleted file mode 100644 index 21b5427051fc..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/Delete.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "onPremiseIotSensorName": "mySensor" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/DownloadActivation.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/DownloadActivation.json deleted file mode 100644 index b2236a188f58..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/DownloadActivation.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "onPremiseIotSensorName": "mySensor" - }, - "responses": { - "200": { - "headers": { - "content-type": "application/zip" - }, - "body": "{Binary}" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/DownloadResetPassword.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/DownloadResetPassword.json deleted file mode 100644 index e1fb673660c8..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/DownloadResetPassword.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "onPremiseIotSensorName": "mySensor", - "body": { - "applianceId": "3214-528AV23-D121-D3-E1" - } - }, - "responses": { - "200": { - "headers": { - "content-type": "application/zip" - }, - "body": "{Binary}" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/Get.json deleted file mode 100644 index e504ee9a9086..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/Get.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "onPremiseIotSensorName": "mySensor" - }, - "responses": { - "200": { - "body": { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/onPremiseIotSensors/mySensor", - "type": "Microsoft.Security/onPremiseIotSensors", - "properties": {} - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/List.json deleted file mode 100644 index f2536dd92897..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/List.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotSensors/mySensor", - "type": "Microsoft.Security/onPremiseIotSensors", - "properties": {} - }, - { - "name": "otherSensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotSensors/otherSensor", - "type": "Microsoft.Security/onPremiseIotSensors", - "properties": {} - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/Put.json deleted file mode 100644 index 80f3d877d6d4..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/OnPremiseIotSensors/Put.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "onPremiseIotSensorName": "mySensor" - }, - "responses": { - "200": { - "body": { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotSensors/mySensor", - "type": "Microsoft.Security/onPremiseIotSensors", - "properties": {} - } - }, - "201": { - "body": { - "name": "mySensor", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotSensors/mySensor", - "type": "Microsoft.Security/onPremiseIotSensors", - "properties": {} - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotAlertTypes.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotAlertTypes.json deleted file mode 100644 index a1dd8e2d4361..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotAlertTypes.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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.Security/iotAlertTypes": { - "get": { - "x-ms-examples": { - "Get IoT Alert Types": { - "$ref": "./examples/IotAlertTypes/GetIoTAlertTypeList.json" - } - }, - "tags": [ - "IoT Security Alert Types" - ], - "description": "List IoT alert types", - "operationId": "IotAlertTypes_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IotAlertTypeList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotAlertTypes/{iotAlertTypeName}": { - "get": { - "x-ms-examples": { - "Get IoT Alert Type": { - "$ref": "./examples/IotAlertTypes/GetIoTAlertType.json" - } - }, - "tags": [ - "IoT Security Alert Types" - ], - "operationId": "IotAlertTypes_Get", - "description": "Get IoT alert type", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "in": "path", - "name": "iotAlertTypeName", - "required": true, - "type": "string", - "description": "Name of the alert type" - } - ], - "responses": { - "200": { - "description": "IoT alert type", - "schema": { - "$ref": "#/definitions/IotAlertType" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "IotAlertTypeList": { - "type": "object", - "description": "List of alert types", - "properties": { - "value": { - "type": "array", - "description": "List data", - "items": { - "$ref": "#/definitions/IotAlertType" - } - } - } - }, - "IotAlertType": { - "type": "object", - "description": "IoT alert type.", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Alert type properties", - "$ref": "#/definitions/IotAlertTypeProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "IotAlertTypeProperties": { - "type": "object", - "description": "IoT alert type information.", - "properties": { - "alertDisplayName": { - "readOnly": true, - "type": "string", - "example": "Privileged container detected", - "description": "The display name of the alert" - }, - "severity": { - "readOnly": true, - "type": "string", - "example": "Medium", - "description": "The severity of the alert", - "enum": [ - "Informational", - "Low", - "Medium", - "High" - ], - "x-ms-enum": { - "name": "alertSeverity", - "modelAsString": true, - "values": [ - { - "value": "Informational" - }, - { - "value": "Low" - }, - { - "value": "Medium" - }, - { - "value": "High" - } - ] - } - }, - "description": { - "readOnly": true, - "type": "string", - "description": "Description of the suspected vulnerability and meaning.", - "example": "Machine logs indicate that a privileged Docker container is running. A privileged container has full access to host resources. If compromised, a malicious actor can use the privileged container to gain access to the host machine." - }, - "providerName": { - "readOnly": true, - "type": "string", - "example": "IoTSecurity", - "description": "The name of the alert provider or internal partner" - }, - "productName": { - "readOnly": true, - "type": "string", - "example": "Azure Security Center for IoT", - "description": "The name of the product which published this alert" - }, - "productComponentName": { - "readOnly": true, - "type": "string", - "example": "IoT Hub", - "description": "The name of a component inside the product which generated the alert" - }, - "vendorName": { - "readOnly": true, - "type": "string", - "example": "Microsoft", - "description": "The name of the vendor that raise the alert" - }, - "intent": { - "readOnly": true, - "type": "string", - "example": "Exploitation,Execution", - "description": "Kill chain related intent behind the alert. Could contain multiple enum values (separated by commas)", - "enum": [ - "Unknown", - "PreAttack", - "InitialAccess", - "Persistence", - "PrivilegeEscalation", - "DefenseEvasion", - "CredentialAccess", - "Discovery", - "LateralMovement", - "Execution", - "Collection", - "Exfiltration", - "CommandAndControl", - "Impact", - "Probing", - "Exploitation" - ], - "x-ms-enum": { - "name": "alertIntent", - "modelAsString": true, - "values": [ - { - "value": "Unknown" - }, - { - "value": "PreAttack" - }, - { - "value": "InitialAccess" - }, - { - "value": "Persistence" - }, - { - "value": "PrivilegeEscalation" - }, - { - "value": "DefenseEvasion" - }, - { - "value": "CredentialAccess" - }, - { - "value": "Discovery" - }, - { - "value": "LateralMovement" - }, - { - "value": "Execution" - }, - { - "value": "Collection" - }, - { - "value": "Exfiltration" - }, - { - "value": "CommandAndControl" - }, - { - "value": "Impact" - }, - { - "value": "Probing" - }, - { - "value": "Exploitation" - } - ] - } - }, - "remediationSteps": { - "readOnly": true, - "description": "Manual action items to take to remediate the alert", - "type": "array", - "items": { - "type": "string", - "example": "If the container doesn't need to run in privileged mode, remove the privileges from the container." - } - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotAlerts.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotAlerts.json deleted file mode 100644 index bdf74b5bb257..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotAlerts.json +++ /dev/null @@ -1,289 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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.Security/iotAlerts": { - "get": { - "x-ms-examples": { - "List IoT Alerts": { - "$ref": "./examples/IotAlerts/GetIoTAlertList.json" - } - }, - "tags": [ - "IoT Security Alerts" - ], - "description": "List IoT alerts", - "operationId": "IotAlerts_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotAlertScope" - }, - { - "in": "query", - "name": "startTimeUtc>", - "x-ms-client-name": "minStartTimeUtc", - "required": false, - "type": "string", - "description": "Filter by minimum startTimeUtc (ISO 8601 format)" - }, - { - "in": "query", - "name": "startTimeUtc<", - "x-ms-client-name": "maxStartTimeUtc", - "required": false, - "type": "string", - "description": "Filter by maximum startTimeUtc (ISO 8601 format)" - }, - { - "in": "query", - "name": "alertType", - "required": false, - "type": "string", - "description": "Filter by alert type" - }, - { - "in": "query", - "name": "deviceManagementType", - "required": false, - "type": "string", - "enum": [ - "Managed", - "Unmanaged" - ], - "description": "Get devices only from specific type, Managed or Unmanaged.", - "x-ms-enum": { - "name": "ManagementState", - "modelAsString": true - } - }, - { - "in": "query", - "name": "compromisedEntity", - "required": false, - "type": "string", - "description": "Filter by compromised device" - }, - { - "in": "query", - "name": "$limit", - "required": false, - "type": "integer", - "format": "int32", - "description": "Limit the number of items returned in a single page" - }, - { - "in": "query", - "name": "$skipToken", - "required": false, - "type": "string", - "description": "Skip token used for pagination" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IotAlertListModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/{scope}/providers/Microsoft.Security/iotAlerts/{iotAlertId}": { - "get": { - "x-ms-examples": { - "Get IoT Alert": { - "$ref": "./examples/IotAlerts/GetIoTAlert.json" - } - }, - "tags": [ - "IoT Security Alerts" - ], - "operationId": "IotAlerts_Get", - "description": "Get IoT alert", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotAlertScope" - }, - { - "in": "path", - "name": "iotAlertId", - "required": true, - "type": "string", - "description": "Id of the alert" - } - ], - "responses": { - "200": { - "description": "IoT alert", - "schema": { - "$ref": "#/definitions/IotAlertModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "IotAlertListModel": { - "description": "List of IoT alerts", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/IotAlertModel" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "When available, follow the URI to get the next page of data" - } - } - }, - "IotAlertModel": { - "type": "object", - "description": "IoT alert", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Alert properties", - "$ref": "#/definitions/IotAlertPropertiesModel" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "IotAlertPropertiesModel": { - "type": "object", - "description": "IoT alert properties", - "properties": { - "systemAlertId": { - "description": "Holds the product canonical identifier of the alert within the scope of a product", - "readOnly": true, - "type": "string", - "example": "903e76ff-17eb-4bac-ac8a-2bc31ab68fd8" - }, - "compromisedEntity": { - "description": "Display name of the main entity being reported on", - "readOnly": true, - "type": "string", - "example": "device-1" - }, - "alertType": { - "description": "The type name of the alert", - "readOnly": true, - "type": "string", - "example": "IoT_PrivilegedContainer" - }, - "startTimeUtc": { - "description": "The impact start time of the alert (the time of the first event or activity included in the alert)", - "readOnly": true, - "type": "string", - "example": "2020-05-13T06:32:25Z" - }, - "endTimeUtc": { - "description": "The impact end time of the alert (the time of the last event or activity included in the alert)", - "readOnly": true, - "type": "string", - "example": "2020-05-13T06:32:25Z" - }, - "entities": { - "description": "A list of entities related to the alert", - "type": "array", - "items": { - "type": "object" - }, - "example": [ - { - "$id": "1", - "CommandLine": "docker run --privileged", - "Type": "process" - } - ] - }, - "extendedProperties": { - "type": "object", - "description": "A bag of fields which extends the alert information", - "example": { - "CommandLine": "docker run --privileged", - "User Name": "aUser", - "UserId": "", - "ParentProcessId": 1593, - "DeviceId": "device-1" - } - } - } - } - }, - "parameters": { - "IotAlertScope": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName})", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json deleted file mode 100644 index ae50e311f50a..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json +++ /dev/null @@ -1,587 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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.Security/iotDefenderSettings": { - "get": { - "x-ms-examples": { - "List IoT Defender settings": { - "$ref": "./examples/IotDefenderSettings/List.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "description": "List IoT Defender Settings", - "operationId": "IotDefenderSettings_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IotDefenderSettingsList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default": { - "get": { - "x-ms-examples": { - "Get IoT Defender settings": { - "$ref": "./examples/IotDefenderSettings/Get.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "operationId": "IotDefenderSettings_Get", - "description": "Get IoT Defender Settings", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "IoT Defender Settings", - "schema": { - "$ref": "#/definitions/IotDefenderSettingsModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create or update IoT Defender settings": { - "$ref": "./examples/IotDefenderSettings/Put.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "operationId": "IotDefenderSettings_CreateOrUpdate", - "description": "Create or update IoT Defender settings", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/IotDefenderSettingsModel" - } - ], - "responses": { - "200": { - "description": "Updated IoT Defender settings", - "schema": { - "$ref": "#/definitions/IotDefenderSettingsModel" - } - }, - "201": { - "description": "Created IoT Defender settings", - "schema": { - "$ref": "#/definitions/IotDefenderSettingsModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete IoT Defender settings": { - "$ref": "./examples/IotDefenderSettings/Delete.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "operationId": "IotDefenderSettings_Delete", - "description": "Delete IoT Defender settings", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "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/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/packageDownloads": { - "post": { - "x-ms-examples": { - "Package downloads": { - "$ref": "./examples/IotDefenderSettings/PackageDownloads.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "operationId": "IotDefenderSettings_PackageDownloads", - "description": "Information about downloadable packages", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "Package downloads", - "schema": { - "$ref": "#/definitions/PackageDownloads" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/downloadManagerActivation": { - "post": { - "x-ms-examples": { - "Download quota data of the subscription": { - "$ref": "./examples/IotDefenderSettings/DownloadManagerActivation.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "operationId": "IotDefenderSettings_DownloadManagerActivation", - "description": "Download manager activation data defined for this subscription", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "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/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "IotDefenderSettingsList": { - "description": "List of IoT Defender settings", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/IotDefenderSettingsModel" - } - } - } - }, - "IotDefenderSettingsModel": { - "type": "object", - "description": "IoT Defender settings", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "IoT Defender settings properties", - "$ref": "#/definitions/IotDefenderSettingsProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "IotDefenderSettingsProperties": { - "type": "object", - "description": "IoT Defender settings properties", - "properties": { - "deviceQuota": { - "type": "integer", - "format": "int32", - "minimum": 1000, - "description": "Size of the device quota (as a opposed to a Pay as You Go billing model). Value is required to be in multiples of 1000." - }, - "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 - } - }, - "required": [ - "deviceQuota", - "sentinelWorkspaceResourceIds", - "onboardingKind" - ] - }, - "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" - } - }, - "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" - } - }, - "medium": { - "type": "array", - "description": "Medium package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - } - }, - "line": { - "type": "array", - "description": "Line package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - } - } - } - } - } - }, - "upgrade": { - "type": "array", - "description": "Sensor upgrade package downloads (on existing installations)", - "items": { - "$ref": "#/definitions/UpgradePackageDownloadInfo" - } - } - } - }, - "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" - } - }, - "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" - } - }, - "enterpriseHighAvailability": { - "type": "array", - "description": "The EnterpriseHighAvailability package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - } - }, - "medium": { - "type": "array", - "description": "The Medium package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - } - }, - "mediumHighAvailability": { - "type": "array", - "description": "The MediumHighAvailability package type", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - } - } - } - } - } - }, - "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" - } - }, - "snmp": { - "type": "array", - "description": "SNMP Server file", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - } - }, - "wmiTool": { - "type": "array", - "description": "Used for local configuration export", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - } - }, - "authorizedDevicesImportTemplate": { - "type": "array", - "description": "Authorized devices import template", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - } - }, - "deviceInformationUpdateImportTemplate": { - "type": "array", - "description": "Authorized devices import template", - "readOnly": true, - "items": { - "$ref": "#/definitions/PackageDownloadInfo" - } - } - } - } - }, - "parameters": { - "IotDefenderSettingsModel": { - "name": "iotDefenderSettingsModel", - "in": "body", - "required": true, - "description": "The IoT defender settings model", - "schema": { - "$ref": "#/definitions/IotDefenderSettingsModel" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotRecommendationTypes.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotRecommendationTypes.json deleted file mode 100644 index 9299fa3006e2..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotRecommendationTypes.json +++ /dev/null @@ -1,247 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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.Security/iotRecommendationTypes": { - "get": { - "x-ms-examples": { - "Get IoT Recommendation Types": { - "$ref": "./examples/IotRecommendationTypes/GetIoTRecommendationTypeList.json" - } - }, - "tags": [ - "IoT Security Recommendation Types" - ], - "description": "List IoT recommendation types", - "operationId": "IotRecommendationTypes_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IotRecommendationTypeList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotRecommendationTypes/{iotRecommendationTypeName}": { - "get": { - "x-ms-examples": { - "Get IoT Recommendation Type": { - "$ref": "./examples/IotRecommendationTypes/GetIoTRecommendationType.json" - } - }, - "tags": [ - "IoT Security Recommendation Types" - ], - "operationId": "IotRecommendationTypes_Get", - "description": "Get IoT recommendation type", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "in": "path", - "name": "iotRecommendationTypeName", - "required": true, - "type": "string", - "description": "Name of the recommendation type" - } - ], - "responses": { - "200": { - "description": "IoT recommendation type", - "schema": { - "$ref": "#/definitions/IotRecommendationType" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "IotRecommendationTypeList": { - "type": "object", - "description": "List of recommendation types", - "properties": { - "value": { - "type": "array", - "description": "List data", - "items": { - "$ref": "#/definitions/IotRecommendationType" - } - } - } - }, - "IotRecommendationType": { - "type": "object", - "description": "IoT recommendation type.", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Recommendation type properties", - "$ref": "#/definitions/IotRecommendationTypeProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "IotRecommendationTypeProperties": { - "type": "object", - "description": "IoT recommendation type information.", - "properties": { - "recommendationDisplayName": { - "readOnly": true, - "type": "string", - "example": "TLS cipher suite upgrade needed", - "description": "The display name of the recommendation" - }, - "severity": { - "readOnly": true, - "type": "string", - "example": "Medium", - "description": "The severity of the recommendation", - "enum": [ - "Unknown", - "NotApplicable", - "Healthy", - "OffByPolicy", - "Low", - "Medium", - "High" - ], - "x-ms-enum": { - "name": "recommendationSeverity", - "modelAsString": true, - "values": [ - { - "value": "Unknown" - }, - { - "value": "NotApplicable" - }, - { - "value": "Healthy" - }, - { - "value": "OffByPolicy" - }, - { - "value": "Low" - }, - { - "value": "Medium" - }, - { - "value": "High" - } - ] - } - }, - "description": { - "readOnly": true, - "type": "string", - "description": "Description of the suspected vulnerability and meaning.", - "example": "Insecure TLS configurations detected. Immediate TLS cipher suite upgrade recommended." - }, - "productName": { - "readOnly": true, - "type": "string", - "example": "Azure Security Center for IoT", - "description": "The name of the product which published this recommendation" - }, - "productComponentName": { - "readOnly": true, - "type": "string", - "example": "IoT Hub", - "description": "The name of a component inside the product which generated the recommendation" - }, - "vendorName": { - "readOnly": true, - "type": "string", - "example": "Microsoft", - "description": "The name of the vendor that raised the recommendation" - }, - "control": { - "readOnly": true, - "type": "string", - "example": "Communication between device and IoT Hub is not optimized", - "description": "The name of the recommendation's control category " - }, - "remediationSteps": { - "readOnly": true, - "description": "Manual action items to take to resolve the recommendation", - "type": "array", - "items": { - "type": "string", - "example": "Upgrade your TLS cipher suite to a secure configuration. See the Guide to TLS Standards Compliance for more information." - } - }, - "dataSource": { - "readOnly": true, - "description": "The alert's data source", - "type": "string", - "example": "IoT Hub" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotRecommendations.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotRecommendations.json deleted file mode 100644 index 325bc059bf72..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotRecommendations.json +++ /dev/null @@ -1,233 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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.Security/iotRecommendations": { - "get": { - "x-ms-examples": { - "Get IoT Recommendations": { - "$ref": "./examples/IotRecommendations/GetIoTRecommendationList.json" - } - }, - "tags": [ - "IoT Security Recommendations" - ], - "description": "List IoT recommendations", - "operationId": "IotRecommendations_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotRecommendationScope" - }, - { - "in": "query", - "name": "recommendationType", - "required": false, - "type": "string", - "description": "Filter by recommendation type" - }, - { - "in": "query", - "name": "deviceId", - "required": false, - "type": "string", - "description": "Filter by device id" - }, - { - "in": "query", - "name": "$limit", - "required": false, - "type": "integer", - "format": "int32", - "description": "Limit the number of items returned in a single page" - }, - { - "in": "query", - "name": "$skipToken", - "required": false, - "type": "string", - "description": "Skip token used for pagination" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IotRecommendationListModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/{scope}/providers/Microsoft.Security/iotRecommendations/{iotRecommendationId}": { - "get": { - "x-ms-examples": { - "Get IoT Recommendation": { - "$ref": "./examples/IotRecommendations/GetIoTRecommendation.json" - } - }, - "tags": [ - "IoT Security Recommendations" - ], - "operationId": "IotRecommendations_Get", - "description": "Get IoT recommendation", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotRecommendationScope" - }, - { - "in": "path", - "name": "iotRecommendationId", - "required": true, - "type": "string", - "description": "Id of the recommendation" - } - ], - "responses": { - "200": { - "description": "IoT recommendation", - "schema": { - "$ref": "#/definitions/IotRecommendationModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "IotRecommendationListModel": { - "description": "List of IoT recommendations", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/IotRecommendationModel" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "When available, follow the URI to get the next page of data" - } - } - }, - "IotRecommendationModel": { - "type": "object", - "description": "IoT recommendation", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Recommendation properties", - "$ref": "#/definitions/IotRecommendationPropertiesModel" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "IotRecommendationPropertiesModel": { - "type": "object", - "description": "IoT recommendation properties", - "properties": { - "deviceId": { - "description": "Identifier of the device being reported on", - "readOnly": true, - "type": "string", - "example": "device-1" - }, - "recommendationType": { - "description": "The type name of the recommendation", - "readOnly": true, - "type": "string", - "example": "IoT_PrivilegedContainer" - }, - "discoveredTimeUtc": { - "description": "The discovery time of the recommendation", - "readOnly": true, - "type": "string", - "example": "2020-05-13T06:32:25Z" - }, - "recommendationAdditionalData": { - "type": "object", - "description": "A bag of fields which extends the recommendation information", - "example": { - "SnapshotId": "48519d58-4e35-46cd-aed5-6251af95ed50", - "TotalFailedRules": "7", - "TotalRulesFailedDuoToError": "1", - "TotalInformationalFailedRules": "2", - "TotalCriticalFailedRules": "3", - "TotalWarningFailedRules": "1" - } - } - } - } - }, - "parameters": { - "IotRecommendationScope": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName})", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json deleted file mode 100644 index 84c5e3886d07..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json +++ /dev/null @@ -1,528 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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.Security/iotSensors": { - "get": { - "x-ms-examples": { - "List IoT sensors": { - "$ref": "./examples/IotSensors/List.json" - } - }, - "tags": [ - "IoT Sensors" - ], - "description": "List IoT sensors", - "operationId": "IotSensors_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotSensorScope" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IotSensorsList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}": { - "get": { - "x-ms-examples": { - "Get IoT sensor": { - "$ref": "./examples/IotSensors/Get.json" - } - }, - "tags": [ - "IoT Sensors" - ], - "operationId": "IotSensors_Get", - "description": "Get IoT sensor", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotSensorScope" - }, - { - "$ref": "#/parameters/IotSensorName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IotSensorsModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create or update IoT sensor": { - "$ref": "./examples/IotSensors/Put.json" - } - }, - "tags": [ - "IoT Sensors" - ], - "operationId": "IotSensors_CreateOrUpdate", - "description": "Create or update IoT sensor", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotSensorScope" - }, - { - "$ref": "#/parameters/IotSensorName" - }, - { - "$ref": "#/parameters/IotSensorsModel" - } - ], - "responses": { - "200": { - "description": "Updated IoT sensor", - "schema": { - "$ref": "#/definitions/IotSensorsModel" - } - }, - "201": { - "description": "Created IoT sensor", - "schema": { - "$ref": "#/definitions/IotSensorsModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete IoT sensor": { - "$ref": "./examples/IotSensors/Delete.json" - } - }, - "tags": [ - "IoT Sensors" - ], - "operationId": "IotSensors_Delete", - "description": "Delete IoT sensor", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotSensorScope" - }, - { - "$ref": "#/parameters/IotSensorName" - } - ], - "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/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}/downloadActivation": { - "post": { - "x-ms-examples": { - "Download activation file": { - "$ref": "./examples/IotSensors/DownloadActivation.json" - } - }, - "tags": [ - "IoT Sensors" - ], - "operationId": "IotSensors_DownloadActivation", - "description": "Download sensor activation file", - "produces": [ - "application/zip" - ], - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotSensorScope" - }, - { - "$ref": "#/parameters/IotSensorName" - } - ], - "responses": { - "200": { - "description": "Downloaded activation file", - "schema": { - "type": "object", - "format": "file" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}/downloadResetPassword": { - "post": { - "x-ms-examples": { - "Download file for reset password of the sensor": { - "$ref": "./examples/IotSensors/DownloadResetPassword.json" - } - }, - "tags": [ - "IoT Sensors" - ], - "operationId": "IotSensors_DownloadResetPassword", - "description": "Download file for reset password of the sensor", - "produces": [ - "application/zip" - ], - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotSensorScope" - }, - { - "$ref": "#/parameters/IotSensorName" - }, - { - "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/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}/triggerTiPackageUpdate": { - "post": { - "x-ms-examples": { - "Trigger threat intelligence package update": { - "$ref": "./examples/IotSensors/TriggerTiPackageUpdate.json" - } - }, - "tags": [ - "IoT Sensors" - ], - "operationId": "IotSensors_TriggerTiPackageUpdate", - "description": "Trigger threat intelligence package update", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotSensorScope" - }, - { - "$ref": "#/parameters/IotSensorName" - } - ], - "responses": { - "200": { - "description": "Triggered threat intelligence package update" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "IotSensorsList": { - "description": "List of IoT sensors", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/IotSensorsModel" - } - } - } - }, - "IotSensorsModel": { - "type": "object", - "description": "IoT sensor model", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "IoT sensor properties", - "$ref": "#/definitions/IotSensorProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "IotSensorProperties": { - "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" - }, - "creationTime": { - "description": "Creation 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": { - "IotSensorScope": { - "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 - }, - "IotSensorName": { - "name": "iotSensorName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the IoT sensor", - "x-ms-parameter-location": "method" - }, - "IotSensorsModel": { - "name": "iotSensorsModel", - "in": "body", - "required": true, - "description": "The IoT sensor model", - "schema": { - "$ref": "#/definitions/IotSensorsModel" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSites.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSites.json deleted file mode 100644 index 085ac8e072fb..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSites.json +++ /dev/null @@ -1,260 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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.Security/iotSites": { - "get": { - "x-ms-examples": { - "List IoT sites": { - "$ref": "./examples/IotSites/List.json" - } - }, - "tags": [ - "IoT Sites" - ], - "description": "List IoT sites", - "operationId": "IotSites_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotSiteScope" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IotSitesList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/{scope}/providers/Microsoft.Security/iotSites/default": { - "get": { - "x-ms-examples": { - "Get IoT site": { - "$ref": "./examples/IotSites/Get.json" - } - }, - "tags": [ - "IoT Sites" - ], - "operationId": "IotSites_Get", - "description": "Get IoT site", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotSiteScope" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IotSitesModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create or update IoT site": { - "$ref": "./examples/IotSites/Put.json" - } - }, - "tags": [ - "IoT Sites" - ], - "operationId": "IotSites_CreateOrUpdate", - "description": "Create or update IoT site", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotSiteScope" - }, - { - "$ref": "#/parameters/IotSitesModel" - } - ], - "responses": { - "200": { - "description": "Updated IoT site", - "schema": { - "$ref": "#/definitions/IotSitesModel" - } - }, - "201": { - "description": "Created IoT site", - "schema": { - "$ref": "#/definitions/IotSitesModel" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete IoT site": { - "$ref": "./examples/IotSites/Delete.json" - } - }, - "tags": [ - "IoT Sites" - ], - "operationId": "IotSites_Delete", - "description": "Delete IoT site", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IotSiteScope" - } - ], - "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/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "IotSitesList": { - "description": "List of IoT sites", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/IotSitesModel" - } - } - } - }, - "IotSitesModel": { - "type": "object", - "description": "IoT site model", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "IoT site properties", - "$ref": "#/definitions/IotSiteProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "IotSiteProperties": { - "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": { - "IotSiteScope": { - "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 - }, - "IotSitesModel": { - "name": "iotSitesModel", - "in": "body", - "required": true, - "description": "The IoT sites model", - "schema": { - "$ref": "#/definitions/IotSitesModel" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/onPremiseIotSensors.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/onPremiseIotSensors.json deleted file mode 100644 index 97492fd35bed..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/onPremiseIotSensors.json +++ /dev/null @@ -1,346 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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.Security/onPremiseIotSensors": { - "get": { - "x-ms-examples": { - "List on-premise IoT sensors": { - "$ref": "./examples/OnPremiseIotSensors/List.json" - } - }, - "tags": [ - "On-Premise IoT Sensors" - ], - "description": "List on-premise IoT sensors", - "operationId": "OnPremiseIotSensors_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OnPremiseIotSensorsList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}": { - "get": { - "x-ms-examples": { - "Get on-premise IoT sensor": { - "$ref": "./examples/OnPremiseIotSensors/Get.json" - } - }, - "tags": [ - "On-Premise IoT Sensors" - ], - "operationId": "OnPremiseIotSensors_Get", - "description": "Get on-premise IoT sensor", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/OnPremiseIotSensorName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OnPremiseIotSensor" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create or update on-premise IoT sensor": { - "$ref": "./examples/OnPremiseIotSensors/Put.json" - } - }, - "tags": [ - "On-Premise IoT Sensors" - ], - "operationId": "OnPremiseIotSensors_CreateOrUpdate", - "description": "Create or update on-premise IoT sensor", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/OnPremiseIotSensorName" - } - ], - "responses": { - "200": { - "description": "Updated on-premise IoT sensor", - "schema": { - "$ref": "#/definitions/OnPremiseIotSensor" - } - }, - "201": { - "description": "Created on-premise IoT sensor", - "schema": { - "$ref": "#/definitions/OnPremiseIotSensor" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete on-premise IoT sensor": { - "$ref": "./examples/OnPremiseIotSensors/Delete.json" - } - }, - "tags": [ - "On-Premise IoT Sensors" - ], - "operationId": "OnPremiseIotSensors_Delete", - "description": "Delete on-premise IoT sensor", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/OnPremiseIotSensorName" - } - ], - "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/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}/downloadActivation": { - "post": { - "x-ms-examples": { - "Download activation file": { - "$ref": "./examples/OnPremiseIotSensors/DownloadActivation.json" - } - }, - "tags": [ - "On-Premise IoT Sensors" - ], - "operationId": "OnPremiseIotSensors_DownloadActivation", - "description": "Download sensor activation file", - "produces": [ - "application/zip" - ], - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/OnPremiseIotSensorName" - } - ], - "responses": { - "200": { - "description": "Downloaded activation file", - "schema": { - "type": "object", - "format": "file" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}/downloadResetPassword": { - "post": { - "x-ms-examples": { - "Download file for reset password of the sensor": { - "$ref": "./examples/OnPremiseIotSensors/DownloadResetPassword.json" - } - }, - "tags": [ - "IoT Sensors" - ], - "operationId": "OnPremiseIotSensors_DownloadResetPassword", - "description": "Download file for reset password of the sensor", - "produces": [ - "application/zip" - ], - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/OnPremiseIotSensorName" - }, - { - "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/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "OnPremiseIotSensorsList": { - "description": "List of on-premise IoT sensors", - "type": "object", - "properties": { - "value": { - "description": "List data", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/OnPremiseIotSensor" - } - } - } - }, - "OnPremiseIotSensor": { - "type": "object", - "description": "On-premise IoT sensor", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "On-premise IoT sensor properties", - "$ref": "#/definitions/OnPremiseIotSensorProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "OnPremiseIotSensorProperties": { - "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": { - "OnPremiseIotSensorName": { - "name": "onPremiseIotSensorName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the on-premise IoT sensor", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index c5476d89437c..a9f42ec9f226 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -36,30 +36,6 @@ directive: from: iotSecuritySolutionAnalytics.json where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels"].get' reason: The list returns limited number of items - - suppress: PageableOperation - from: alertTypes.json - where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/alertTypes"].get' - reason: The list returns limited number of items - - suppress: PageableOperation - from: recommendationTypes.json - where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/recommendationTypes"].get' - reason: The list returns limited number of items - - suppress: PageableOperation - from: iotDefenderSettings.json - where: '$.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings"].get' - reason: The list returns limited number of items - - suppress: PageableOperation - from: iotSensors.json - where: '$.paths["/{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}"].get' - reason: The list returns limited number of items - - suppress: PageableOperation - from: onPremiseIotSensors.json - where: '$.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors"].get' - reason: The list returns limited number of items - - suppress: TopLevelResourcesListByResourceGroup - from: onPremiseIotSensors.json - where: $.definitions.OnPremiseIotSensor - reason: The resource is managed in a subscription level (instead of inside a resource group) - suppress: SECRET_PROPERTY from: ingestionSettings.json where: $.definitions.IngestionSettingToken.properties.token @@ -215,15 +191,6 @@ input-file: - Microsoft.Security/preview/2020-07-01-preview/sqlVulnerabilityAssessmentsScanOperations.json - Microsoft.Security/preview/2020-07-01-preview/sqlVulnerabilityAssessmentsScanResultsOperations.json - Microsoft.Security/preview/2020-07-01-preview/sqlVulnerabilityAssessmentsBaselineRuleOperations.json -- Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json -- Microsoft.Security/preview/2020-08-06-preview/iotSensors.json -- Microsoft.Security/preview/2020-08-06-preview/devices.json -- Microsoft.Security/preview/2020-08-06-preview/onPremiseIotSensors.json -- Microsoft.Security/preview/2020-08-06-preview/iotSites.json -- Microsoft.Security/preview/2020-08-06-preview/iotAlerts.json -- Microsoft.Security/preview/2020-08-06-preview/iotAlertTypes.json -- Microsoft.Security/preview/2020-08-06-preview/iotRecommendations.json -- Microsoft.Security/preview/2020-08-06-preview/iotRecommendationTypes.json - Microsoft.Security/stable/2021-01-01/alerts.json - Microsoft.Security/stable/2021-06-01/settings.json - Microsoft.Security/preview/2021-01-15-preview/ingestionSettings.json @@ -422,27 +389,6 @@ override-info: title: SecurityCenter ``` -### Tag: package-2020-08-preview-only - -These settings apply only when `--tag=package-2020-08-preview-only` is specified on the command line. This tag is used for Ruby SDK. - -``` yaml $(tag) == 'package-2020-08-preview-only' -input-file: -- Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json -- Microsoft.Security/preview/2020-08-06-preview/iotSensors.json -- Microsoft.Security/preview/2020-08-06-preview/devices.json -- Microsoft.Security/preview/2020-08-06-preview/onPremiseIotSensors.json -- Microsoft.Security/preview/2020-08-06-preview/iotSites.json -- Microsoft.Security/preview/2020-08-06-preview/iotAlerts.json -- Microsoft.Security/preview/2020-08-06-preview/iotAlertTypes.json -- Microsoft.Security/preview/2020-08-06-preview/iotRecommendations.json -- Microsoft.Security/preview/2020-08-06-preview/iotRecommendationTypes.json - -# Needed when there is more than one input file -override-info: - title: SecurityCenter -``` - ### Tag: package-2021-01-preview-only These settings apply only when `--tag=package-2021-01-preview-only` is specified on the command line. This tag is used for Ruby SDK.