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 index 838aa27b70fa..1a4dd8e4a4b5 100644 --- 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 @@ -9,7 +9,12 @@ "name": "default", "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", - "properties": {} + "properties": { + "deviceQuota": 2000, + "sentinelWorkspaceResourceIds": [ + "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" + ] + } } } } 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 index 2cf5f5fee30d..7594b4d7cc01 100644 --- 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 @@ -11,7 +11,12 @@ "name": "default", "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", - "properties": {} + "properties": { + "deviceQuota": 2000, + "sentinelWorkspaceResourceIds": [ + "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" + ] + } } ] } 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 index b4738db76a87..6eb347f06596 100644 --- 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 @@ -1,7 +1,15 @@ { "parameters": { "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "iotDefenderSettingsModel": { + "properties": { + "deviceQuota": 2000, + "sentinelWorkspaceResourceIds": [ + "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" + ] + } + } }, "responses": { "200": { @@ -9,7 +17,12 @@ "name": "default", "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", - "properties": {} + "properties": { + "deviceQuota": 2000, + "sentinelWorkspaceResourceIds": [ + "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" + ] + } } }, "201": { @@ -17,7 +30,12 @@ "name": "default", "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", - "properties": {} + "properties": { + "deviceQuota": 2000, + "sentinelWorkspaceResourceIds": [ + "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" + ] + } } } } 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 index afdeadc4a050..8929c118bb08 100644 --- 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 @@ -122,6 +122,9 @@ }, { "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/IotDefenderSettingsModel" } ], "responses": { @@ -251,7 +254,25 @@ "IotDefenderSettingsProperties": { "type": "object", "description": "IoT Defender settings properties", - "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" + } + } + }, + "required": [ + "deviceQuota", + "sentinelWorkspaceResourceIds" + ] }, "DownloadLink": { "type": "string", @@ -445,5 +466,16 @@ } } }, - "parameters": {} + "parameters": { + "IotDefenderSettingsModel": { + "name": "iotDefenderSettingsModel", + "in": "body", + "required": true, + "description": "The IoT defender settings model", + "schema": { + "$ref": "#/definitions/IotDefenderSettingsModel" + }, + "x-ms-parameter-location": "method" + } + } }