Skip to content

Commit

Permalink
Microsoft.Security/iotDefenderSettings (2020-08-06-preview) (#10810)
Browse files Browse the repository at this point in the history
* Added unmanaged devices quota

* Specify format

* rename field

* Minimum 1000

* Add sentinelWorkspaceResourceIds

Co-authored-by: Liran Chen <[email protected]>
Co-authored-by: Orel Kayam <[email protected]>
  • Loading branch information
3 people authored Sep 29, 2020
1 parent c40cc1a commit d6ef8ec
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
{
"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": {
"body": {
"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": {
"body": {
"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"
]
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
},
{
"$ref": "#/parameters/IotDefenderSettingsModel"
}
],
"responses": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}
}

0 comments on commit d6ef8ec

Please sign in to comment.