Skip to content

Commit

Permalink
Added missing Database exmaples
Browse files Browse the repository at this point in the history
Added missing examples for database security alert
  • Loading branch information
t-robalt committed Jan 20, 2019
1 parent e01a332 commit ca3dd7c
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 0 deletions.
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"
}
}
}
}
}
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": ""
}
}
}
}
}
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"
}
}
}
}
}

0 comments on commit ca3dd7c

Please sign in to comment.