Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: sql preview model validation errors
- Remove empty "body" for RESPONSE_SCHEMA_NOT_IN_SPEC errors
- IsAzureMonitorTargetEnabled -> isAzureMonitorTargetEnabled
- "State" -> "state"
- emailAccountAdmins "true" -> true
- Add 202 response for RestorePoints_Create
- password -> certPassword for ManagedInstanceTdeCertificates_Create and TdeCertificates_Create
  • Loading branch information
nschonni committed Jul 31, 2019
commit 368b5914a375e09ef413285c932b72038a8af7e4
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"type": "boolean"
},
"isAzureMonitorTargetEnabled": {
"description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n",
"description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n",
"type": "boolean"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"parameters": {
"properties": {
"state": "Enabled",
"IsAzureMonitorTargetEnabled": true
"isAzureMonitorTargetEnabled": true
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@
"api-version": "2015-05-01-preview"
},
"responses": {
"200": {
"body": ""
},
"202": {
"body": ""
},
"204": {
"body": ""
}
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
"api-version": "2015-05-01-preview"
},
"responses": {
"200": {
"body": ""
},
"204": {
"body": ""
}
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
"api-version": "2015-05-01-preview"
},
"responses": {
"200": {
"body": ""
},
"200": {},
"202": {},
"204": {
"body": ""
}
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
"api-version": "2015-05-01-preview"
},
"responses": {
"200": {
"body": ""
},
"200": {},
"202": {},
"204": {
"body": ""
}
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@
"api-version": "2015-05-01-preview"
},
"responses": {
"200": {
"body": ""
},
"200": {},
"202": {},
"204": {
"body": ""
}
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"type": "Microsoft.Sql/servers/syncAgents"
}
},
"202": {
"body": ""
}
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"type": "Microsoft.Sql/servers/syncAgents"
}
},
"202": {
"body": ""
}
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@
"api-version": "2015-05-01-preview"
},
"responses": {
"200": {
"body": ""
},
"202": {
"body": ""
},
"204": {
"body": ""
}
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"type": "Microsoft.Sql/servers/syncAgents"
}
},
"202": {
"body": ""
}
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
"type": "Microsoft.Sql/servers/databases/syncGroups"
}
},
"202": {
"body": ""
}
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
"type": "Microsoft.Sql/servers/databases/syncGroups"
}
},
"202": {
"body": ""
}
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,8 @@
"api-version": "2015-05-01-preview"
},
"responses": {
"200": {
"body": ""
},
"202": {
"body": ""
},
"204": {
"body": ""
}
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
"type": "Microsoft.Sql/servers/databases/syncGroups"
}
},
"202": {
"body": ""
}
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
"type": "Microsoft.Sql/servers/databases/syncGroups"
}
},
"202": {
"body": ""
}
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@
"api-version": "2015-05-01-preview"
},
"responses": {
"200": {
"body": ""
},
"202": {
"body": ""
},
"204": {
"body": ""
}
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
"api-version": "2015-05-01-preview"
},
"responses": {
"200": {
"body": ""
},
"200": {},
"202": {},
"204": {
"body": ""
}
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@
"api-version": "2015-05-01-preview"
},
"responses": {
"200": {
"body": ""
},
"202": {
"body": ""
},
"204": {
"body": ""
}
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@
"type": "boolean"
},
"isAzureMonitorTargetEnabled": {
"description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n",
"description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n",
"type": "boolean"
}
}
Expand Down Expand Up @@ -567,7 +567,7 @@
"type": "boolean"
},
"isAzureMonitorTargetEnabled": {
"description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n",
"description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n",
"type": "boolean"
}
}
Expand Down Expand Up @@ -641,7 +641,7 @@
"type": "boolean"
},
"isAzureMonitorTargetEnabled": {
"description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n",
"description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n",
"type": "boolean"
}
}
Expand Down Expand Up @@ -715,7 +715,7 @@
"type": "boolean"
},
"isAzureMonitorTargetEnabled": {
"description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n",
"description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n",
"type": "boolean"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
"api-version": "2017-03-01-preview"
},
"responses": {
"200": {
"body": ""
}
"200": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"parameters": {
"properties": {
"state": "Enabled",
"IsAzureMonitorTargetEnabled": true
"isAzureMonitorTargetEnabled": true
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"restorePointLabel": "mylabel"
}
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@
"api-version": "2017-03-01-preview"
},
"responses": {
"200": {
"body": ""
},
"200": {},
"202": {},
"204": {
"body": ""
}
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"databaseSecurityAlertPolicyResource": {
"properties": {
"state": "Enabled",
"emailAccountAdmins": "true",
"emailAccountAdmins": true,
"emailAddresses": [
"[email protected]",
"[email protected]"
Expand All @@ -33,7 +33,7 @@
"kind": "V12",
"properties": {
"state": "Enabled",
"emailAccountAdmins": "true",
"emailAccountAdmins": true,
"emailAddresses": [
"[email protected]",
"[email protected]"
Expand All @@ -56,7 +56,7 @@
"kind": "V12",
"properties": {
"state": "Enabled",
"emailAccountAdmins": "true",
"emailAccountAdmins": true,
"emailAddresses": [
"[email protected]",
"[email protected]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"kind": "V12",
"properties": {
"state": "Enabled",
"emailAccountAdmins": "true",
"emailAccountAdmins": true,
"emailAddresses": [],
"disabledAlerts": [],
"retentionDays": 0,
Expand All @@ -38,7 +38,7 @@
"kind": "V12",
"properties": {
"state": "Enabled",
"emailAccountAdmins": "true",
"emailAccountAdmins": true,
"emailAddresses": [],
"disabledAlerts": [],
"retentionDays": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"kind": "V12",
"properties": {
"state": "Enabled",
"emailAccountAdmins": "true",
"emailAccountAdmins": true,
"emailAddresses": [
"[email protected]",
"[email protected]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"api-version": "2017-03-01-preview"
},
"responses": {
"200": {
"body": ""
},
"200": {},
"202": {}
}
}
Loading