-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add SubAssessment event source type and edit automations PUT examples #10454
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
8 commits
Select commit
Hold shift + click to select a range
7ff73a7
Add SubAssessment event source type and add more automations examples
surashed 8dcfac3
Change Location isReadOnlu to false
surashed 4bf2361
Test
surashed b80ad9b
Add new read/write location and add new type TrackedResourceLocation
surashed 193945c
Minor
surashed f481945
minor
surashed 49286fe
prettier fixes
surashed e58a0d7
Change variable name to TrackedResourceLocation
surashed 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
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
102 changes: 102 additions & 0 deletions
102
.../preview/2019-01-01-preview/examples/Automations/PutAutomationAllAssessments_example.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,102 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview", | ||
| "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", | ||
| "automationName": "exampleAutomation", | ||
| "resourceGroupName": "exampleResourceGroup", | ||
| "Automation": { | ||
| "location": "Central US", | ||
| "etag": "etag value (must be supplied for update)", | ||
| "tags": {}, | ||
| "properties": { | ||
| "description": "An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment", | ||
| "isEnabled": true, | ||
| "scopes": [ | ||
| { | ||
| "description": "A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5", | ||
| "scopePath": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup" | ||
| } | ||
| ], | ||
| "sources": [ | ||
| { | ||
| "eventSource": "Assessments", | ||
| "ruleSets": [] | ||
| } | ||
| ], | ||
| "actions": [ | ||
| { | ||
| "logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1", | ||
| "actionType": "LogicApp", | ||
| "uri": "https://exampleTriggerUri1.com" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/automations/exampleAutomation", | ||
| "name": "exampleAutomation", | ||
| "type": "Microsoft.Security/automations", | ||
| "location": "Central US", | ||
| "etag": "new etag value", | ||
| "tags": {}, | ||
| "properties": { | ||
| "description": "An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment", | ||
| "isEnabled": true, | ||
| "scopes": [ | ||
| { | ||
| "description": "A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5", | ||
| "scopePath": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup" | ||
| } | ||
| ], | ||
| "sources": [ | ||
| { | ||
| "eventSource": "Assessments", | ||
| "ruleSets": [] | ||
| } | ||
| ], | ||
| "actions": [ | ||
| { | ||
| "logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1", | ||
| "actionType": "LogicApp" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/SecurityAutomations/exampleAutomation", | ||
| "name": "exampleAutomation", | ||
| "type": "Microsoft.Security/SecurityAutomations", | ||
| "location": "Central US", | ||
| "etag": "new etag value", | ||
| "tags": {}, | ||
| "properties": { | ||
| "description": "An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment", | ||
| "isEnabled": true, | ||
| "scopes": [ | ||
| { | ||
| "description": "A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5", | ||
| "scopePath": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup" | ||
| } | ||
| ], | ||
| "sources": [ | ||
| { | ||
| "eventSource": "Assessments", | ||
| "ruleSets": [] | ||
| } | ||
| ], | ||
| "actions": [ | ||
| { | ||
| "logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1", | ||
| "actionType": "LogicApp" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
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
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
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.