-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Added List Policies API to SecurityAlerts #5070
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0927a35
Added SecurityAlert List API
t-robalt e01a332
FIxed a description
t-robalt ca3dd7c
Added missing Database exmaples
t-robalt 17aeab7
Added missing description change
t-robalt 7bd8524
Revert "FIxed a description"
t-robalt d4e6f4b
Revert "Added missing description change"
t-robalt 72ddcb9
Update DatabaseSecurityAlertListByDatabase.json
t-robalt 1e8f062
fixed examples
t-robalt 7b8ab61
Update DatabaseSecurityAlertCreateMin.json
t-robalt 1185ca8
Update readme.md
t-robalt 77d2f47
Minor fixes
t-robalt 29718a6
Removed location
t-robalt 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 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 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
33 changes: 33 additions & 0 deletions
33
...t.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertListByDatabase.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,33 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "securityalert-6852", | ||
"managedInstanceName": "securityalert-2080", | ||
"databaseName": "testdb", | ||
"api-version": "2017-03-01=preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-6852/providers/Microsoft.Sql/managedInstances/securityalert-2080/databases/testdb", | ||
"name": "default", | ||
"type": "Microsoft.Sql/managedInstances/databases/securityAlertPolicies", | ||
"location": "Japan East", | ||
"kind": "V12", | ||
"properties": { | ||
"state": "Enabled", | ||
"emailAccountAdmins": "true", | ||
"emailAddresses": ["test@microsoft.com","user@microsoft.com"], | ||
"disabledAlerts": ["Usage_Anomaly"], | ||
"retentionDays": 0, | ||
"storageAccountAccessKey": "", | ||
"storageEndpoint": "" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...oft.Sql/preview/2017-03-01-preview/examples/ManagedServerSecurityAlertListByInstance.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,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "securityalert-4799", | ||
"managedInstanceName": "securityalert-6440", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-4799/providers/Microsoft.Sql/managedInstances/securityalert-6440", | ||
"name": "Default", | ||
"type": "Microsoft.Sql/managedInstances/securityAlertPolicies", | ||
"properties": { | ||
"state": "Disabled", | ||
"emailAccountAdmins": true, | ||
"emailAddresses": [ "test@microsoft.com;user@microsoft.com" ], | ||
"disabledAlerts": ["Access_Anomaly"], | ||
"retentionDays": 0, | ||
"storageAccountAccessKey": "", | ||
"storageEndpoint": "" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...r/Microsoft.Sql/preview/2017-03-01-preview/examples/ServerSecurityAlertsListByServer.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,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "securityalert-4799", | ||
"serverName": "securityalert-6440", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-4799/providers/Microsoft.Sql/servers/securityalert-6440/securityAlertPolicies", | ||
"name": "Default", | ||
"type": "Microsoft.Sql/servers/securityAlertPolicies", | ||
"properties": { | ||
"state": "Disabled", | ||
"emailAccountAdmins": true, | ||
"emailAddresses": [ "test@microsoft.com;user@microsoft.com" ], | ||
"disabledAlerts": ["Access_Anomaly"], | ||
"retentionDays": 0, | ||
"storageAccountAccessKey": "", | ||
"storageEndpoint": "https://mystorage.blob.core.windows.net" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason for not supporting PATCH ? (for ex to allow email info to be updated )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The policy is updated through PUT, so PATCH is not necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PATCH is not strictly required for proxy resources.