-
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
Changes from 10 commits
0927a35
e01a332
ca3dd7c
17aeab7
7bd8524
d4e6f4b
72ddcb9
1e8f062
7b8ab61
1185ca8
77d2f47
29718a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
tabs -to--> spaces |
||
"properties": { | ||
"state": "Enabled", | ||
"emailAccountAdmins": "true", | ||
"emailAddresses": ["test@microsoft.com","user@microsoft.com"], | ||
"disabledAlerts": ["Usage_Anomaly"], | ||
"retentionDays": 0, | ||
"storageAccountAccessKey": "", | ||
"storageEndpoint": "" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
add location, kind There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added only location for server. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for the churn, but |
||
"properties": { | ||
"state": "Disabled", | ||
"emailAccountAdmins": true, | ||
"emailAddresses": [ "test@microsoft.com;user@microsoft.com" ], | ||
"disabledAlerts": ["Access_Anomaly"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. convert tabs to (4) spaces |
||
"retentionDays": 0, | ||
"storageAccountAccessKey": "", | ||
"storageEndpoint": "" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add location, kind There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added only location for server. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above. Adding location here makes the example not align to the definition. please remove. |
||
"state": "Disabled", | ||
"emailAccountAdmins": true, | ||
"emailAddresses": [ "test@microsoft.com;user@microsoft.com" ], | ||
"disabledAlerts": ["Access_Anomaly"], | ||
"retentionDays": 0, | ||
"storageAccountAccessKey": "", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. convert tabs to (4) spaces |
||
"storageEndpoint": "https://mystorage.blob.core.windows.net" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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.