forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Microsoft.IoTSecurity provider (Azure#12644)
* 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 Co-authored-by: Orel Kayam <[email protected]>
- Loading branch information
Showing
10 changed files
with
1,373 additions
and
0 deletions.
There are no files selected for viewing
566 changes: 566 additions & 0 deletions
566
...y/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/defenderSettings.json
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...er/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/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", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...urity/preview/2021-02-01-preview/examples/DefenderSettings/DownloadManagerActivation.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,14 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"content-type": "application/zip" | ||
}, | ||
"body": "{Binary}" | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...nager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/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,21 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "default", | ||
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default", | ||
"type": "Microsoft.IoTSecurity/defenderSettings", | ||
"properties": { | ||
"deviceQuota": 2000, | ||
"sentinelWorkspaceResourceIds": [ | ||
"/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...ager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/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,25 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "default", | ||
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default", | ||
"type": "Microsoft.IoTSecurity/defenderSettings", | ||
"properties": { | ||
"deviceQuota": 2000, | ||
"sentinelWorkspaceResourceIds": [ | ||
"/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
170 changes: 170 additions & 0 deletions
170
...ft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/PackageDownloads.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,170 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"sensor": { | ||
"full": { | ||
"iso": [ | ||
{ | ||
"version": "3.1", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Latest" | ||
}, | ||
{ | ||
"version": "2.8.11", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Previous" | ||
} | ||
], | ||
"ovf": { | ||
"enterprise": [ | ||
{ | ||
"version": "3.1", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Latest" | ||
}, | ||
{ | ||
"version": "2.8.11", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Previous" | ||
} | ||
], | ||
"medium": [ | ||
{ | ||
"version": "3.1", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Latest" | ||
}, | ||
{ | ||
"version": "2.8.11", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Previous" | ||
} | ||
], | ||
"line": [ | ||
{ | ||
"version": "3.1", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Latest" | ||
}, | ||
{ | ||
"version": "2.8.11", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Previous" | ||
} | ||
] | ||
} | ||
}, | ||
"upgrade": [ | ||
{ | ||
"version": "2.8.2", | ||
"fromVersion": "2.8.0", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Latest" | ||
}, | ||
{ | ||
"version": "2.8.10", | ||
"fromVersion": "2.8.0", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Previous" | ||
} | ||
] | ||
}, | ||
"centralManager": { | ||
"full": { | ||
"iso": [ | ||
{ | ||
"version": "3.1", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Latest" | ||
}, | ||
{ | ||
"version": "2.8.11", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Previous" | ||
} | ||
], | ||
"ovf": { | ||
"enterprise": [ | ||
{ | ||
"version": "3.1", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Latest" | ||
} | ||
], | ||
"enterpriseHighAvailability": [ | ||
{ | ||
"version": "3.1", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Latest" | ||
} | ||
], | ||
"medium": [ | ||
{ | ||
"version": "3.1", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Latest" | ||
} | ||
], | ||
"mediumHighAvailability": [ | ||
{ | ||
"version": "3.1", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Latest" | ||
} | ||
] | ||
} | ||
}, | ||
"upgrade": [ | ||
{ | ||
"version": "2.8.2", | ||
"fromVersion": "2.8.0", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Latest" | ||
}, | ||
{ | ||
"version": "2.8.10", | ||
"fromVersion": "2.8.0", | ||
"link": "http://microsoft.com/downloadLocation", | ||
"versionKind": "Previous" | ||
} | ||
] | ||
}, | ||
"threatIntelligence": [ | ||
{ | ||
"link": "http://microsoft.com/downloadLocation", | ||
"version": "2020.02.10" | ||
} | ||
], | ||
"snmp": [ | ||
{ | ||
"link": "http://microsoft.com/downloadLocation", | ||
"version": "2020.02.10" | ||
} | ||
], | ||
"wmiTool": [ | ||
{ | ||
"link": "http://microsoft.com/downloadLocation", | ||
"version": "2020.02.10" | ||
} | ||
], | ||
"authorizedDevicesImportTemplate": [ | ||
{ | ||
"link": "http://microsoft.com/downloadLocation", | ||
"version": "2020.02.10" | ||
} | ||
], | ||
"deviceInformationUpdateImportTemplate": [ | ||
{ | ||
"link": "http://microsoft.com/downloadLocation", | ||
"version": "2020.02.10" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...nager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/DefenderSettings/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,42 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", | ||
"DefenderSettingsModel": { | ||
"properties": { | ||
"deviceQuota": 2000, | ||
"sentinelWorkspaceResourceIds": [ | ||
"/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "default", | ||
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default", | ||
"type": "Microsoft.IoTSecurity/defenderSettings", | ||
"properties": { | ||
"deviceQuota": 2000, | ||
"sentinelWorkspaceResourceIds": [ | ||
"/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" | ||
] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "default", | ||
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default", | ||
"type": "Microsoft.IoTSecurity/defenderSettings", | ||
"properties": { | ||
"deviceQuota": 2000, | ||
"sentinelWorkspaceResourceIds": [ | ||
"/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
91 changes: 91 additions & 0 deletions
91
...ce-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Operations/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,91 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-12345678abc", | ||
"api-version": "2021-02-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"Date": "Wed, 13 Sep 2017 18:04:32 GMT", | ||
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", | ||
"X-Content-Type-Options": "nosniff", | ||
"x-ms-ratelimit-remaining-tenant-reads": "14999", | ||
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" | ||
}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.IoTSecurity/unregister/action", | ||
"display": { | ||
"provider": "Microsoft IoT Security", | ||
"resource": "Subscription", | ||
"operation": "Unregister Subscription", | ||
"description": "Unregisters the subscription for Azure Defender for IoT" | ||
}, | ||
"origin": "user,system" | ||
}, | ||
{ | ||
"name": "Microsoft.IoTSecurity/register/action", | ||
"display": { | ||
"provider": "Microsoft IoT Security", | ||
"resource": "Subscription", | ||
"operation": "Register Subscription", | ||
"description": "Registers the subscription for Azure Defender for IoT" | ||
}, | ||
"origin": "user,system" | ||
}, | ||
{ | ||
"name": "Microsoft.IoTSecurity/defenderSettings/read", | ||
"display": { | ||
"provider": "Microsoft IoT Security", | ||
"resource": "IoT Defender Settings", | ||
"operation": "Get IoT Defender Settings", | ||
"description": "Gets IoT Defender Settings" | ||
}, | ||
"origin": "user" | ||
}, | ||
{ | ||
"name": "Microsoft.IoTSecurity/defenderSettings/write", | ||
"display": { | ||
"provider": "Microsoft IoT Security", | ||
"resource": "IoT Defender Settings", | ||
"operation": "Create or update IoT Defender Settings", | ||
"description": "Creates or updates IoT Defender Settings" | ||
}, | ||
"origin": "user" | ||
}, | ||
{ | ||
"name": "Microsoft.IoTSecurity/defenderSettings/delete", | ||
"display": { | ||
"provider": "Microsoft IoT Security", | ||
"resource": "IoT Defender Settings", | ||
"operation": "Delete IoT Defender Settings", | ||
"description": "Deletes IoT Defender Settings" | ||
}, | ||
"origin": "user" | ||
}, | ||
{ | ||
"name": "Microsoft.IoTSecurity/defenderSettings/packageDownloads/action", | ||
"display": { | ||
"provider": "Microsoft IoT Security", | ||
"resource": "IoT Defender Settings", | ||
"operation": "Get downloadable IoT Defender packages information", | ||
"description": "Gets downloadable IoT Defender packages information" | ||
}, | ||
"origin": "user" | ||
}, | ||
{ | ||
"name": "Microsoft.IoTSecurity/defenderSettings/downloadManagerActivation/action", | ||
"display": { | ||
"provider": "Microsoft IoT Security", | ||
"resource": "IoT Defender Settings", | ||
"operation": "Download manager activation file", | ||
"description": "Download manager activation file" | ||
}, | ||
"origin": "user" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.