Skip to content

Commit

Permalink
Add IoT data connector (#17086)
Browse files Browse the repository at this point in the history
* add Iot data connector

* fix kind in getIotById

* add deleted files

* add missing newlines

* fix newlines
  • Loading branch information
ShaniFelig authored Dec 22, 2021
1 parent 6d68fa0 commit a11dd79
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@
},
"Get a APIPolling data connector": {
"$ref": "./examples/dataConnectors/GetAPIPolling.json"
},
"Get a IoT data connector": {
"$ref": "./examples/dataConnectors/GetIoTById.json"
}
},
"tags": [
Expand Down Expand Up @@ -416,6 +419,9 @@
},
"Check requirements for MicrosoftThreatIntelligence.": {
"$ref": "./examples/dataConnectors/CheckRequirementsMicrosoftThreatIntelligence.json"
},
"Check requirements for IoT.": {
"$ref": "./examples/dataConnectors/CheckRequirementsIoT.json"
}
},
"tags": [
Expand Down Expand Up @@ -865,6 +871,33 @@
"description": "Threat Intelligence TAXII data connector required properties.",
"type": "object"
},
"IoTCheckRequirements": {
"allOf": [
{
"$ref": "#/definitions/DataConnectorsCheckRequirements"
}
],
"description": "Represents IoT requirements check request.",
"properties": {
"properties": {
"$ref": "#/definitions/IoTCheckRequirementsProperties",
"description": "IoT requirements check properties.",
"x-ms-client-flatten": true
}
},
"type": "object",
"x-ms-discriminator-value": "IOT"
},
"IoTCheckRequirementsProperties": {
"description": "IoT requirements check properties.",
"properties": {
"subscriptionId": {
"description": "The subscription id to connect to, and get the data from.",
"type": "string"
}
},
"type": "object"
},
"AADDataConnector": {
"allOf": [
{
Expand Down Expand Up @@ -1222,6 +1255,38 @@
"dataTypes"
]
},
"IoTDataConnector": {
"allOf": [
{
"$ref": "#/definitions/DataConnector"
}
],
"description": "Represents IoT data connector.",
"properties": {
"properties": {
"$ref": "#/definitions/IoTDataConnectorProperties",
"description": "IoT data connector properties.",
"x-ms-client-flatten": true
}
},
"type": "object",
"x-ms-discriminator-value": "IOT"
},
"IoTDataConnectorProperties": {
"allOf": [
{
"$ref": "#/definitions/DataConnectorWithAlertsProperties"
}
],
"description": "IoT data connector properties.",
"properties": {
"subscriptionId": {
"description": "The subscription id to connect to, and get the data from.",
"type": "string"
}
},
"type": "object"
},
"DataConnector": {
"description": "Data connector",
"allOf": [
Expand Down Expand Up @@ -1292,7 +1357,8 @@
"MicrosoftThreatProtection",
"MicrosoftThreatIntelligence",
"GenericUI",
"APIPolling"
"APIPolling",
"IOT"
],
"type": "string",
"x-ms-enum": {
Expand Down Expand Up @@ -1349,6 +1415,9 @@
},
{
"value": "APIPolling"
},
{
"value": "IOT"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2021-10-01-preview",
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
"resourceGroupName": "myRg",
"workspaceName": "myWorkspace",
"DataConnectorsCheckRequirements": {
"kind": "IOT",
"properties": {
"subscriptionId": "c0688291-89d7-4bed-87a2-a7b1bff43f4c"
}
}
},
"responses": {
"200": {
"body": {
"authorizationState": "Valid",
"licenseState": "Valid"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2021-10-01-preview",
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
"resourceGroupName": "myRg",
"workspaceName": "myWorkspace",
"dataConnectorId": "d2e5dc7a-f3a2-429d-954b-939fa8c2932e"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/d2e5dc7a-f3a2-429d-954b-939fa8c2932e",
"name": "d2e5dc7a-f3a2-429d-954b-939fa8c2932e",
"type": "Microsoft.SecurityInsights/dataConnectors",
"kind": "IOT",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"properties": {
"subscriptionId": "c0688291-89d7-4bed-87a2-a7b1bff43f4c",
"dataTypes": {
"alerts": {
"state": "Enabled"
}
}
}
}
}
}
}

0 comments on commit a11dd79

Please sign in to comment.