SQL blob auditing and threat detection specs and examples#1012
SQL blob auditing and threat detection specs and examples#1012anudeepsharma merged 28 commits intoAzure:masterfrom
Conversation
|
@jaredmoo, |
| "kind": "V12", | ||
| "properties": { | ||
| "state":"Enabled", | ||
| "storageEndpoint": "https://mystorage.blob.core.windows.net", |
There was a problem hiding this comment.
Comment by @anudeepsharma :
ARM's recommendation of using another resource is by ID, and as first party application you can always query access keys. Now you are putting responsibility of updating the storage account key whenever user recycle the storage account keys. I am putting this comment specially here as these APIs are in preview.
This is applicable for SecurityAlert as well (you can open a backlog item for the same for next API version)
In case you ask for storageAccount ID, you don't need to ask subscription id as well. So in total StorageEndpoint, AccessKeys, StorageSubscription, isStorageSecondaryKeyInUse will be replaced by one entity StorageAccountId
| "state": "Enabled", | ||
| "emailAccountAdmins": "Enabled", | ||
| "emailAddresses": "testSecurityAlert@microsoft.com", | ||
| "disabledAlerts": "Access_Anomaly;Usage_Anomaly", |
There was a problem hiding this comment.
Array here would have been better for disabledAlerts and emailAddresses
anudeepsharma
left a comment
There was a problem hiding this comment.
https://travis-ci.org/Azure/azure-rest-api-specs/jobs/209097807
Linter errors on PR. Please fix the same.
For comments on APIs please create backlog item in RP to fix and get it reviewed for next API version.
| "properties": { | ||
| "state": "Enabled", | ||
| "emailAccountAdmins": "Enabled", | ||
| "emailAddresses": "testSecurityAlert@microsoft.com", |
There was a problem hiding this comment.
The property name is in plural form "emailAddress es" and it only accepts one email address as a string. An array would have been better.
There was a problem hiding this comment.
@ayeletshpigelman please make sure it's noted as a bug.
| "state": "Enabled", | ||
| "emailAccountAdmins": "Enabled", | ||
| "emailAddresses": "", | ||
| "disabledAlerts": "", |
There was a problem hiding this comment.
Is it OK to send an empty string back in the response (if the property was not set in the request body OR due to any other reason)? An optional property not being present if not set or it being present always with an empty string are two different things. Looks like the latter is true. If that is indeed the case then should such properties have "default": "".
I have seen this for "storageAccountAccessKey" and "storageEndpoint" as well.
There was a problem hiding this comment.
If "state": "Disabled" then everything else is optional. If "state": "Enabled" then "storageEndpoint" and "storageAccountAccessKey" are required. I'll split these out into 2 different examples.
There was a problem hiding this comment.
Also emailAddresses etc can be set to null, so empty string is not default.
There was a problem hiding this comment.
Actually the min/max examples are already accurate (when enabled=true). I just have to make state required.
|
@anudeepsharma @amarzavery can you please review?
|
|
Thanks Anudeep!
From: Anudeep Sharma [mailto:notifications@github.com]
Sent: Tuesday, March 14, 2017 9:59 AM
To: Azure/azure-rest-api-specs <azure-rest-api-specs@noreply.github.com>
Cc: Jared Moore <Jared.Moore@microsoft.com>; Mention <mention@noreply.github.com>
Subject: Re: [Azure/azure-rest-api-specs] SQL blob auditing and threat detection specs and examples (#1012)
Merged #1012<#1012>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1012 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADGS935zAWBsVgnkiEDBadGGiL0xh58hks5rlsdngaJpZM4MXO42>.
|
|
No modification for NodeJS |
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-versionin the path should match theapi-versionin the spec).Quality of Swagger