Skip to content

Commit b01e25f

Browse files
Adding new resource type to SecurityInsights - already reviewed/approved in private repo (Azure#14499)
* Copy commit from private repo * Make new API version * Remove old examples * Fix exclusion for Metadata list endpoint * Move back to initial preview version * Change id to contentId, sourceId * Fix sourceId in get all example
1 parent 119d0a9 commit b01e25f

File tree

9 files changed

+1253
-0
lines changed

9 files changed

+1253
-0
lines changed

specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-03-01-preview/Metadata.json

Lines changed: 777 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-03-01-preview",
4+
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
5+
"resourceGroupName": "myRg",
6+
"workspaceName": "myWorkspace",
7+
"operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
8+
"metadataName": "metadataName"
9+
},
10+
"responses": {
11+
"200": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-03-01-preview",
4+
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
5+
"resourceGroupName": "myRg",
6+
"workspaceName": "myWorkspace",
7+
"operationalInsightsResourceProvider": "Microsoft.OperationalInsights"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName1",
15+
"name": "metadataName1",
16+
"type": "Microsoft.SecurityInsights/metadata",
17+
"properties": {
18+
"contentId": "c00ee137-7475-47c8-9cce-ec6f0f1bedd0",
19+
"version": "1.0.0.0",
20+
"kind": "analyticRule",
21+
"parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName",
22+
"source": {
23+
"kind": "solution",
24+
"name": "Contoso Solution 1.0",
25+
"sourceId": "b688a130-76f4-4a07-bf57-762222a3cadf"
26+
}
27+
}
28+
},
29+
{
30+
"id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName2",
31+
"name": "metadataName2",
32+
"type": "Microsoft.SecurityInsights/metadata",
33+
"properties": {
34+
"contentId": "f5160682-0e10-4e23-8fcf-df3df49c5522",
35+
"version": "1.0.0.0",
36+
"kind": "analyticRule",
37+
"parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName2",
38+
"source": {
39+
"kind": "solution",
40+
"name": "Contoso Solution 1.0",
41+
"sourceId": "b688a130-76f4-4a07-bf57-762222a3cadf"
42+
}
43+
}
44+
},
45+
{
46+
"id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.Insights/workbooks/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName3",
47+
"name": "metadataName3",
48+
"type": "Microsoft.SecurityInsights/metadata",
49+
"properties": {
50+
"contentId": "f593501d-ec01-4057-8146-a1de35c461ef",
51+
"version": "1.0.0.0",
52+
"kind": "workbook",
53+
"parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.Insights/workbooks/workbookName",
54+
"source": {
55+
"kind": "solution",
56+
"name": "Contoso Solution 1.0",
57+
"sourceId": "b688a130-76f4-4a07-bf57-762222a3cadf"
58+
}
59+
}
60+
}
61+
]
62+
}
63+
}
64+
}
65+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-03-01-preview",
4+
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
5+
"resourceGroupName": "myRg",
6+
"workspaceName": "myWorkspace",
7+
"operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
8+
"ODataFilter": "properties/kind eq 'analyticRule'",
9+
"ODataOrderBy": "properties/parentId desc",
10+
"ODataSkip": "2",
11+
"ODataTop": "2"
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"value": [
17+
{
18+
"id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName1",
19+
"name": "metadataName1",
20+
"type": "Microsoft.SecurityInsights/metadata",
21+
"properties": {
22+
"contentId": "c00ee137-7475-47c8-9cce-ec6f0f1bedd0",
23+
"version": "1.0.0.0",
24+
"kind": "analyticRule",
25+
"parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName1",
26+
"source": {
27+
"kind": "solution",
28+
"name": "Contoso Solution 1.0",
29+
"sourceId": "b688a130-76f4-4a07-bf57-762222a3cadf"
30+
}
31+
}
32+
},
33+
{
34+
"id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName2",
35+
"name": "metadataName2",
36+
"type": "Microsoft.SecurityInsights/metadata",
37+
"properties": {
38+
"contentId": "f5160682-0e10-4e23-8fcf-df3df49c5522",
39+
"version": "1.0.0.0",
40+
"kind": "analyticRule",
41+
"parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName2",
42+
"source": {
43+
"kind": "solution",
44+
"name": "Contoso Solution 1.0",
45+
"sourceId": "b688a130-76f4-4a07-bf57-762222a3cadf"
46+
}
47+
}
48+
}
49+
]
50+
}
51+
}
52+
}
53+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-03-01-preview",
4+
"subscriptionId": "2e1dc338-d04d-4443-b721-037eff4fdcac",
5+
"resourceGroupName": "myRg",
6+
"workspaceName": "myWorkspace",
7+
"operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
8+
"metadataName": "metadataName"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName",
14+
"name": "metadataName",
15+
"type": "Microsoft.SecurityInsights/metadata",
16+
"properties": {
17+
"contentId": "c00ee137-7475-47c8-9cce-ec6f0f1bedd0",
18+
"version": "1.0.0.0",
19+
"kind": "analyticRule",
20+
"parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName",
21+
"source": {
22+
"kind": "solution",
23+
"name": "Contoso Solution 1.0",
24+
"sourceId": "b688a130-76f4-4a07-bf57-762222a3cadf"
25+
},
26+
"author": {
27+
"name": "User Name",
28+
"email": "[email protected]"
29+
},
30+
"support": {
31+
"name": "Microsoft",
32+
"email": "[email protected]",
33+
"link": "https://support.microsoft.com/",
34+
"tier": "developer"
35+
},
36+
"dependencies": {
37+
"operator": "AND",
38+
"criteria": [
39+
{
40+
"operator": "OR",
41+
"criteria": [
42+
{
43+
"contentId": "045d06d0-ee72-4794-aba4-cf5646e4c756",
44+
"kind": "dataConnector"
45+
},
46+
{
47+
"contentId": "dbfcb2cc-d782-40ef-8d94-fe7af58a6f2d",
48+
"kind": "dataConnector"
49+
},
50+
{
51+
"contentId": "de4dca9b-eb37-47d6-a56f-b8b06b261593",
52+
"kind": "dataConnector",
53+
"version": "2.0"
54+
}
55+
]
56+
},
57+
{
58+
"kind": "playbook",
59+
"contentId": "31ee11cc-9989-4de8-b176-5e0ef5c4dbab",
60+
"version": "1.0"
61+
},
62+
{
63+
"kind": "parser",
64+
"contentId": "21ba424a-9438-4444-953a-7059539a7a1b"
65+
}
66+
]
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-03-01-preview",
4+
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
5+
"resourceGroupName": "myRg",
6+
"workspaceName": "myWorkspace",
7+
"operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
8+
"metadataName": "metadataName",
9+
"metadataPatch": {
10+
"properties": {
11+
"author": {
12+
"name": "User Name",
13+
"email": "[email protected]"
14+
}
15+
}
16+
}
17+
},
18+
"responses": {
19+
"200": {
20+
"body": {
21+
"id": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName",
22+
"name": "metadataName",
23+
"type": "Microsoft.SecurityInsights/metadata",
24+
"properties": {
25+
"contentId": "c00ee137-7475-47c8-9cce-ec6f0f1bedd0",
26+
"kind": "analyticRule",
27+
"parentId": "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName",
28+
"author": {
29+
"name": "User Name",
30+
"email": "[email protected]"
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)