-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Define "relations" API as a sub-resource of cases and bookmarks. Allows users to define and maintain relationships between cases and bookmarks across various user scenarios #7191
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
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3ba53f6
Added relations api specifications
fe2fa8c
Added support for update relations in the API and updated examples
790ff04
Fixed relations model input and tested generated classes in e2e test …
d8d1329
merged fork
c4eefe3
added back missing properties and settings after fork merge
ac57a01
Merge remote-tracking branch 'upstream/master'
2d0f568
in line with
951f5c1
merge master
5621d33
merged fork and fix empty lines
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
712 changes: 712 additions & 0 deletions
712
...ource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
57 changes: 57 additions & 0 deletions
57
...ights/preview/2019-01-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.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,57 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "relationInputModel": { | ||
| "properties": { | ||
| "sourceRelationNode": { | ||
| "relationNodeId": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "relationNodeKind": "Case" | ||
| }, | ||
| "targetRelationNode": { | ||
| "relationNodeId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "relationNodeKind": "Bookmark" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "type": "Microsoft.SecurityInsights/bookmarks/relations", | ||
| "kind": "CasesToBookmarks", | ||
| "etag": "190057d0-0000-0d00-0000-5c6f5adb0000", | ||
| "properties": { | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "caseTitle": "Test case", | ||
| "caseSeverity": "High" | ||
| } | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "type": "Microsoft.SecurityInsights/bookmarks/relations", | ||
| "kind": "CasesToBookmarks", | ||
| "etag": "190057d0-0000-0d00-0000-5c6f5adb0000", | ||
| "properties": { | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "caseTitle": "Test case", | ||
| "caseSeverity": "High" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
16 changes: 16 additions & 0 deletions
16
...ights/preview/2019-01-01-preview/examples/bookmarks/relations/DeleteBookmarkRelation.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,16 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "204": {} | ||
| } | ||
| } | ||
|
|
33 changes: 33 additions & 0 deletions
33
...ghts/preview/2019-01-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.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,33 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "type": "Microsoft.SecurityInsights/cases/relations", | ||
| "kind": "CasesToBookmarks", | ||
| "etag": "190057d0-0000-0d00-0000-5c6f5adb0000", | ||
| "properties": { | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "caseTitle": "Test case", | ||
| "caseSeverity": "High", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" | ||
|
ctoma73 marked this conversation as resolved.
Outdated
|
||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
30 changes: 30 additions & 0 deletions
30
...ts/preview/2019-01-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.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,30 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "type": "Microsoft.SecurityInsights/cases/relations", | ||
| "kind": "CasesToBookmarks", | ||
| "etag": "190057d0-0000-0d00-0000-5c6f5adb0000", | ||
| "properties": { | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "caseTitle": "Test case", | ||
| "caseSeverity": "High", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
55 changes: 55 additions & 0 deletions
55
...urityInsights/preview/2019-01-01-preview/examples/cases/relations/CreateCaseRelation.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,55 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", | ||
| "caseId": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "relationInputModel": { | ||
| "properties": { | ||
| "sourceRelationNode": { | ||
| "relationNodeId": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "relationNodeKind": "Case" | ||
| }, | ||
| "targetRelationNode": { | ||
| "relationNodeId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "relationNodeKind": "Bookmark" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/cases/afbd324f-6c48-459c-8710-8d1e1cd03812/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "type": "Microsoft.SecurityInsights/cases/relations", | ||
| "kind": "CasesToBookmarks", | ||
| "etag": "190057d0-0000-0d00-0000-5c6f5adb0000", | ||
| "properties": { | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "bookmarkName": "Test bookmark", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" | ||
| } | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/cases/afbd324f-6c48-459c-8710-8d1e1cd03812/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "type": "Microsoft.SecurityInsights/cases/relations", | ||
| "kind": "CasesToBookmarks", | ||
| "etag": "190057d0-0000-0d00-0000-5c6f5adb0000", | ||
| "properties": { | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "bookmarkName": "Test bookmark", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
...urityInsights/preview/2019-01-01-preview/examples/cases/relations/DeleteCaseRelation.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,16 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", | ||
| "caseId": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "204": {} | ||
| } | ||
| } | ||
|
|
32 changes: 32 additions & 0 deletions
32
...rityInsights/preview/2019-01-01-preview/examples/cases/relations/GetAllCaseRelations.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,32 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", | ||
| "caseId": "afbd324f-6c48-459c-8710-8d1e1cd03812" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/cases/afbd324f-6c48-459c-8710-8d1e1cd03812/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "type": "Microsoft.SecurityInsights/cases/relations", | ||
| "kind": "CasesToBookmarks", | ||
| "etag": "190057d0-0000-0d00-0000-5c6f5adb0000", | ||
| "properties": { | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "bookmarkName": "Test bookmark", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
29 changes: 29 additions & 0 deletions
29
...tyInsights/preview/2019-01-01-preview/examples/cases/relations/GetCaseRelationByName.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,29 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview", | ||
| "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", | ||
| "resourceGroupName": "myRg", | ||
| "workspaceName": "myWorkspace", | ||
| "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", | ||
| "caseId": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/cases/afbd324f-6c48-459c-8710-8d1e1cd03812/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", | ||
| "type": "Microsoft.SecurityInsights/cases/relations", | ||
| "kind": "CasesToBookmarks", | ||
| "etag": "190057d0-0000-0d00-0000-5c6f5adb0000", | ||
| "properties": { | ||
| "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096", | ||
| "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812", | ||
| "bookmarkName": "Test bookmark", | ||
| "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
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.