Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download files for cm sensors #11635

Merged
merged 8 commits into from
Nov 24, 2020
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2020-08-06-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
},
"responses": {
"200": {
"headers": {
"content-type": "application/zip"
},
"body": "{Binary}"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"api-version": "2020-08-06-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
"iotSensorName": "mySensor",
"applianceId": "3214-528AV23-D121-D3-E1"
},
"responses": {
"200": {
"headers": {
"content-type": "application/zip"
},
"body": "{Binary}"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"api-version": "2020-08-06-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"onPremiseIotSensorName": "mySensor",
"applianceId": "3214-528AV23-D121-D3-E1"
},
"responses": {
"200": {
"headers": {
"content-type": "application/zip"
},
"body": "{Binary}"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,46 @@
}
}
}
},
"/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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,58 @@
}
}
}
},
"/{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": "applianceId",
"description": "The appliance id of the sensor.",
"required": true,
"schema": {
"type": "string"
pilor marked this conversation as resolved.
Show resolved Hide resolved
}
}
],
"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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,58 @@
}
}
}
},
"/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": "applianceId",
"description": "The appliance id of the sensor.",
"required": true,
"schema": {
"type": "string"
pilor marked this conversation as resolved.
Show resolved Hide resolved
}
}
],
"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": {
Expand Down