-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing examples for database security alert
- Loading branch information
Showing
3 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
...ger/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertCreateMax.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,60 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "securityalert-4799", | ||
"serverName": "securityalert-6440", | ||
"databaseName": "testdb", | ||
"securityAlertPolicyName": "default", | ||
"api-version": "2018-06-01-preview", | ||
"databaseSecurityAlertPolicyResource": { | ||
"properties": { | ||
"state": "Enabled", | ||
"emailAccountAdmins": "true", | ||
"emailAddresses": [ "test@microsoft.com", "user@microsoft.com" ], | ||
"disabledAlerts": [ "Sql_Injection", "Usage_Anomaly" ], | ||
"retentionDays": 6, | ||
"storageAccountAccessKey": "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==", | ||
"storageEndpoint": "https://mystorage.blob.core.windows.net" | ||
} | ||
} | ||
}, | ||
|
||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-4799/providers/Microsoft.Sql/servers/securityalert-6440/databases/testdb", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/databases/securityAlertPolicies", | ||
"kind": "V12", | ||
"properties": { | ||
"state": "Enabled", | ||
"emailAccountAdmins": "true", | ||
"emailAddresses": ["test@microsoft.com","user@microsoft.com"], | ||
"disabledAlerts": ["Sql_Injection","Usage_Anomaly"], | ||
"retentionDays": 6, | ||
"storageAccountAccessKey": "", | ||
"storageEndpoint": "https://mystorage.blob.core.windows.net" | ||
} | ||
} | ||
}, | ||
|
||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-4799/providers/Microsoft.Sql/servers/securityalert-6440/databases/testdb", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/databases/securityAlertPolicies", | ||
"kind": "V12", | ||
"properties": { | ||
"state": "Enabled", | ||
"emailAccountAdmins": "true", | ||
"emailAddresses": ["test@microsoft.com","user@microsoft.com"], | ||
"disabledAlerts": ["Access_Anomaly","Usage_Anomaly"], | ||
"retentionDays": 6, | ||
"storageAccountAccessKey": "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==", | ||
"storageEndpoint": "https://mystorage.blob.core.windows.net", | ||
"useServerDefault": "Disabled" | ||
} | ||
} | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
...ger/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertCreateMin.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,53 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "securityalert-4799", | ||
"serverName": "securityalert-6440", | ||
"databaseName": "testdb", | ||
"securityAlertPolicyName": "default", | ||
"api-version": "2018-06-01-preview", | ||
"databaseSecurityAlertPolicyResource": { | ||
"properties": { | ||
"state": "Enabled", | ||
} | ||
} | ||
}, | ||
|
||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-4799/providers/Microsoft.Sql/servers/securityalert-6440/databases/testdb", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/databases/securityAlertPolicies", | ||
"kind": "V12", | ||
"properties": { | ||
"state": "Enabled", | ||
"emailAccountAdmins": "true", | ||
"emailAddresses": [], | ||
"disabledAlerts": [], | ||
"retentionDays": 0, | ||
"storageAccountAccessKey": "", | ||
"storageEndpoint": "" | ||
} | ||
} | ||
}, | ||
|
||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-4799/providers/Microsoft.Sql/servers/securityalert-6440/databases/testdb", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/databases/securityAlertPolicies", | ||
"kind": "V12", | ||
"properties": { | ||
"state": "Enabled", | ||
"emailAccountAdmins": "true", | ||
"emailAddresses": [], | ||
"disabledAlerts": [], | ||
"retentionDays": 0, | ||
"storageAccountAccessKey": "", | ||
"storageEndpoint": "" | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...e-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertGet.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-6852", | ||
"serverName": "securityalert-2080", | ||
"databaseName": "testdb", | ||
"securityAlertPolicyName": "default", | ||
"api-version": "2018-06-01=preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-6852/providers/Microsoft.Sql/servers/securityalert-2080/databases/testdb", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/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": "", | ||
"creationTime": "10/8/2018 12:00:00 AM" | ||
} | ||
} | ||
} | ||
} | ||
} |