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

Add IoT data connector #17086

Merged
merged 5 commits into from
Dec 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
}
}
}
}
}