-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sites, sensors and onPremiseSensors resources (#12991)
* Add Microsoft.IoTSecurity provider * Run prettier * Add MD * rename files * update MD * resolve the Avocado * Remove unused files * Add operations API * update operations.json * update markdown * remove dot * re-use types * remove comma * Remove duplicated common types * Use ProxyResource * Remove IoT prefix * Add example * undo changes * Run prettier * Use capital letter * run prettier * Add sites, sensors and onPremiseSensors resources * update markdowns * run prettier * Fix broken parameter * Re-trigger Validations * Add systemData * Run prettier * add systemData * Run prettier * Align changes * Undo Microsoft.Security changes * Add systemData to example * Fix PR comments * Update example Co-authored-by: Orel Kayam <orkayam@microsoft.com>
- Loading branch information
Showing
22 changed files
with
1,640 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...er/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc24", | ||
"onPremiseSensorName": "mySensor" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
....IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/DownloadActivation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", | ||
"onPremiseSensorName": "mySensor" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"content-type": "application/zip" | ||
}, | ||
"body": "{Binary}" | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...TSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/DownloadResetPassword.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", | ||
"onPremiseSensorName": "mySensor", | ||
"body": { | ||
"applianceId": "3214-528AV23-D121-D3-E1" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"content-type": "application/zip" | ||
}, | ||
"body": "{Binary}" | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...nager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", | ||
"onPremiseSensorName": "mySensor" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "mySensor", | ||
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/onPremiseSensors/mySensor", | ||
"type": "Microsoft.IoTSecurity/onPremiseSensors", | ||
"properties": {}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-04-27T21:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...ager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "mySensor", | ||
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor", | ||
"type": "Microsoft.IoTSecurity/onPremiseSensors", | ||
"properties": {}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-04-27T21:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z" | ||
} | ||
}, | ||
{ | ||
"name": "otherSensor", | ||
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/otherSensor", | ||
"type": "Microsoft.IoTSecurity/onPremiseSensors", | ||
"properties": {}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-04-27T21:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...nager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/OnPremiseSensors/Put.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", | ||
"onPremiseSensorName": "mySensor" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "mySensor", | ||
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor", | ||
"type": "Microsoft.IoTSecurity/onPremiseSensors", | ||
"properties": {}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-04-27T21:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "mySensor", | ||
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor", | ||
"type": "Microsoft.IoTSecurity/onPremiseSensors", | ||
"properties": {}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-04-27T21:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...rce-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", | ||
"sensorName": "mySensor" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/DownloadActivation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", | ||
"sensorName": "mySensor" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"content-type": "application/zip" | ||
}, | ||
"body": "{Binary}" | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...rosoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/DownloadResetPassword.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", | ||
"sensorName": "mySensor", | ||
"body": { | ||
"applianceId": "3214-528AV23-D121-D3-E1" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"content-type": "application/zip" | ||
}, | ||
"body": "{Binary}" | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...source-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", | ||
"sensorName": "mySensor" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "mySensor", | ||
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor", | ||
"type": "Microsoft.IoTSecurity/sensors", | ||
"properties": { | ||
"connectivityTime": "2020-11-17T12:31:25Z", | ||
"dynamicLearning": true, | ||
"learningMode": true, | ||
"sensorStatus": "Ok", | ||
"sensorVersion": "2020.11.01.1643", | ||
"tiAutomaticUpdates": true, | ||
"tiStatus": "Ok", | ||
"tiVersion": "2020-11-17T12:31:25Z", | ||
"zone": "Zone Name" | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-04-27T21:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...ource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "mySensor", | ||
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor", | ||
"type": "Microsoft.IoTSecurity/sensors", | ||
"properties": { | ||
"connectivityTime": "2020-11-17T12:31:25Z", | ||
"dynamicLearning": true, | ||
"learningMode": true, | ||
"sensorStatus": "Ok", | ||
"sensorVersion": "2020.11.01.1643", | ||
"tiAutomaticUpdates": true, | ||
"tiStatus": "Ok", | ||
"tiVersion": "2020-11-17T12:31:25Z", | ||
"zone": "Zone Name" | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-04-27T21:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z" | ||
} | ||
}, | ||
{ | ||
"name": "otherSensor", | ||
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/otherSensor", | ||
"type": "Microsoft.IoTSecurity/sensors", | ||
"properties": { | ||
"connectivityTime": "2020-11-17T12:31:25Z", | ||
"dynamicLearning": false, | ||
"learningMode": false, | ||
"sensorStatus": "Disconnected", | ||
"sensorVersion": "2020.11.01.1643", | ||
"tiAutomaticUpdates": true, | ||
"tiStatus": "Ok", | ||
"tiVersion": "2020-11-17T12:31:25Z", | ||
"zone": "Zone Name" | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-04-27T21:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...source-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Put.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", | ||
"sensorName": "mySensor", | ||
"sensorModel": { | ||
"properties": { | ||
"tiAutomaticUpdates": true, | ||
"zone": "Zone Name" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "mySensor", | ||
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor", | ||
"type": "Microsoft.IoTSecurity/sensors", | ||
"properties": { | ||
"connectivityTime": "2020-11-17T12:31:25Z", | ||
"dynamicLearning": true, | ||
"learningMode": true, | ||
"sensorStatus": "Ok", | ||
"sensorVersion": "2020.11.01.1643", | ||
"tiAutomaticUpdates": true, | ||
"tiStatus": "Ok", | ||
"tiVersion": "2020-11-17T12:31:25Z", | ||
"zone": "Zone Name" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "mySensor", | ||
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor", | ||
"type": "Microsoft.IoTSecurity/sensors", | ||
"properties": { | ||
"connectivityTime": "2020-11-17T12:31:25Z", | ||
"dynamicLearning": true, | ||
"learningMode": true, | ||
"sensorStatus": "Ok", | ||
"sensorVersion": "2020.11.01.1643", | ||
"tiAutomaticUpdates": true, | ||
"tiStatus": "Ok", | ||
"tiVersion": "2020-11-17T12:31:25Z", | ||
"zone": "Zone Name" | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-04-27T21:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...osoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/TriggerTiPackageUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", | ||
"sensorName": "mySensor" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sites/Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
Oops, something went wrong.