-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Adding new resource type to SecurityInsights - already reviewed/approved in private repo #14499
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
Merged
njuCZ
merged 7 commits into
Azure:master
from
matthew-ouellette:dev-securityinsights-Microsoft.SecurityInsights-metadata
May 27, 2021
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
cfb45bd
Copy commit from private repo
matthew-ouellette adde422
Make new API version
matthew-ouellette 49f5ad3
Remove old examples
matthew-ouellette db827fa
Fix exclusion for Metadata list endpoint
matthew-ouellette eb19112
Move back to initial preview version
matthew-ouellette 82ab564
Change id to contentId, sourceId
matthew-ouellette 52850dd
Fix sourceId in get all example
matthew-ouellette File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
777 changes: 777 additions & 0 deletions
777
...ghts/resource-manager/Microsoft.SecurityInsights/preview/2021-05-01-preview/Metadata.json
Large diffs are not rendered by default.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
...crosoft.SecurityInsights/preview/2021-05-01-preview/examples/metadata/DeleteMetadata.json
This file contains hidden or 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-03-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", | ||
| "metadataName": "metadataName" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "204": {} | ||
| } | ||
| } | ||
65 changes: 65 additions & 0 deletions
65
...crosoft.SecurityInsights/preview/2021-05-01-preview/examples/metadata/GetAllMetadata.json
This file contains hidden or 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,65 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2021-03-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalInsights" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName1", | ||
| "name": "metadataName1", | ||
| "type": "Microsoft.SecurityInsights/metadata", | ||
| "properties": { | ||
| "id": "c00ee137-7475-47c8-9cce-ec6f0f1bedd0", | ||
| "version": "1.0.0.0", | ||
| "kind": "analyticRule", | ||
| "parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName", | ||
| "source": { | ||
| "kind": "solution", | ||
| "name": "Contoso Solution 1.0", | ||
| "id": "b688a130-76f4-4a07-bf57-762222a3cadf" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName2", | ||
| "name": "metadataName2", | ||
| "type": "Microsoft.SecurityInsights/metadata", | ||
| "properties": { | ||
| "id": "f5160682-0e10-4e23-8fcf-df3df49c5522", | ||
| "version": "1.0.0.0", | ||
| "kind": "analyticRule", | ||
| "parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName2", | ||
| "source": { | ||
| "kind": "solution", | ||
| "name": "Contoso Solution 1.0", | ||
| "id": "b688a130-76f4-4a07-bf57-762222a3cadf" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.Insights/workbooks/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName3", | ||
| "name": "metadataName3", | ||
| "type": "Microsoft.SecurityInsights/metadata", | ||
| "properties": { | ||
| "id": "f593501d-ec01-4057-8146-a1de35c461ef", | ||
| "version": "1.0.0.0", | ||
| "kind": "workbook", | ||
| "parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.Insights/workbooks/workbookName", | ||
| "source": { | ||
| "kind": "solution", | ||
| "name": "Contoso Solution 1.0", | ||
| "id": "b688a130-76f4-4a07-bf57-762222a3cadf" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
53 changes: 53 additions & 0 deletions
53
...ft.SecurityInsights/preview/2021-05-01-preview/examples/metadata/GetAllMetadataOData.json
This file contains hidden or 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,53 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2021-03-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", | ||
| "ODataFilter": "properties/kind eq 'analyticRule'", | ||
| "ODataOrderBy": "properties/parentId desc", | ||
| "ODataSkip": "2", | ||
| "ODataTop": "2" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName1", | ||
| "name": "metadataName1", | ||
| "type": "Microsoft.SecurityInsights/metadata", | ||
| "properties": { | ||
| "id": "c00ee137-7475-47c8-9cce-ec6f0f1bedd0", | ||
| "version": "1.0.0.0", | ||
| "kind": "analyticRule", | ||
| "parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName1", | ||
| "source": { | ||
| "kind": "solution", | ||
| "name": "Contoso Solution 1.0", | ||
| "id": "b688a130-76f4-4a07-bf57-762222a3cadf" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName2", | ||
| "name": "metadataName2", | ||
| "type": "Microsoft.SecurityInsights/metadata", | ||
| "properties": { | ||
| "id": "f5160682-0e10-4e23-8fcf-df3df49c5522", | ||
| "version": "1.0.0.0", | ||
| "kind": "analyticRule", | ||
| "parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName2", | ||
| "source": { | ||
| "kind": "solution", | ||
| "name": "Contoso Solution 1.0", | ||
| "id": "b688a130-76f4-4a07-bf57-762222a3cadf" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
72 changes: 72 additions & 0 deletions
72
.../Microsoft.SecurityInsights/preview/2021-05-01-preview/examples/metadata/GetMetadata.json
This file contains hidden or 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,72 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2021-03-01-preview", | ||
| "subscriptionId": "2e1dc338-d04d-4443-b721-037eff4fdcac", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", | ||
| "metadataName": "metadataName" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName", | ||
| "name": "metadataName", | ||
| "type": "Microsoft.SecurityInsights/metadata", | ||
| "properties": { | ||
| "id": "c00ee137-7475-47c8-9cce-ec6f0f1bedd0", | ||
| "version": "1.0.0.0", | ||
| "kind": "analyticRule", | ||
| "parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName", | ||
| "source": { | ||
| "kind": "solution", | ||
| "name": "Contoso Solution 1.0", | ||
| "id": "b688a130-76f4-4a07-bf57-762222a3cadf" | ||
| }, | ||
| "author": { | ||
| "name": "User Name", | ||
| "email": "email@microsoft.com" | ||
| }, | ||
| "support": { | ||
| "name": "Microsoft", | ||
| "email": "support@microsoft.com", | ||
| "link": "https://support.microsoft.com/", | ||
| "tier": "developer" | ||
| }, | ||
| "dependencies": { | ||
| "operator": "AND", | ||
| "criteria": [ | ||
| { | ||
| "operator": "OR", | ||
| "criteria": [ | ||
| { | ||
| "id": "045d06d0-ee72-4794-aba4-cf5646e4c756", | ||
| "kind": "dataConnector" | ||
| }, | ||
| { | ||
| "id": "dbfcb2cc-d782-40ef-8d94-fe7af58a6f2d", | ||
| "kind": "dataConnector" | ||
| }, | ||
| { | ||
| "id": "de4dca9b-eb37-47d6-a56f-b8b06b261593", | ||
| "kind": "dataConnector", | ||
| "version": "2.0" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "kind": "playbook", | ||
| "id": "31ee11cc-9989-4de8-b176-5e0ef5c4dbab", | ||
| "version": "1.0" | ||
| }, | ||
| { | ||
| "kind": "parser", | ||
| "id": "21ba424a-9438-4444-953a-7059539a7a1b" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
36 changes: 36 additions & 0 deletions
36
...icrosoft.SecurityInsights/preview/2021-05-01-preview/examples/metadata/PatchMetadata.json
This file contains hidden or 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,36 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2021-03-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", | ||
| "metadataName": "metadataName", | ||
| "metadataPatch": { | ||
| "properties": { | ||
| "author": { | ||
| "name": "User Name", | ||
| "email": "email@microsoft.com" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName", | ||
| "name": "metadataName", | ||
| "type": "Microsoft.SecurityInsights/metadata", | ||
| "properties": { | ||
| "id": "c00ee137-7475-47c8-9cce-ec6f0f1bedd0", | ||
| "kind": "analyticRule", | ||
| "parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName", | ||
| "author": { | ||
| "name": "User Name", | ||
| "email": "email@microsoft.com" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.