From 49fb703a396b6f1036de3d951031c0bedbb7b2fe Mon Sep 17 00:00:00 2001 From: galmoshe <33285417+galmoshe@users.noreply.github.com> Date: Mon, 14 Dec 2020 04:09:05 +0200 Subject: [PATCH] Sensor Threat Intelligence Package Update (#11915) * add ti package update * remove redundant spec * fix case sensitive path * prettier Co-authored-by: Gal Moshe Co-authored-by: Gal Moshe --- .../IotSensors/TriggerTiPackageUpdate.json | 10 ++++++ .../2020-08-06-preview/iotSensors.json | 36 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/TriggerTiPackageUpdate.json 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 new file mode 100644 index 000000000000..2aebd9e8ac3b --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/TriggerTiPackageUpdate.json @@ -0,0 +1,10 @@ +{ + "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/iotSensors.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json index c129ae9a8e67..979c9da0f32a 100644 --- 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 @@ -287,6 +287,42 @@ } } } + }, + "/{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": {