Database Sql Vulnerability Assessment Baselines - Create Or Update
Add a database's vulnerability assessment rule baseline list.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/default/baselines/default?api-version=2024-05-01-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
baseline
|
path | True | ||
database
|
path | True |
string |
The name of the database. |
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
server
|
path | True |
string |
The name of the server. |
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
vulnerability
|
path | True |
The name of the vulnerability assessment. |
|
api-version
|
query | True |
string |
The API version to use for the request. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
properties.latestScan | True |
boolean |
The latest scan flag |
properties.results | True |
object |
The rule baseline result list |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successfully add the vulnerability assessment rule baseline list. |
|
Other Status Codes |
*** Error Responses: ***
|
Examples
Add a database's vulnerability assessment rule baseline from the latest scan result. |
Add a database's vulnerability assessment rule baseline list. |
Add a database's vulnerability assessment rule baseline from the latest scan result.
Sample request
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/servers/vulnerabilityaseessmenttest-6440/databases/testdb/sqlVulnerabilityAssessments/default/baselines/default?api-version=2024-05-01-preview
{
"properties": {
"latestScan": true,
"results": {}
}
}
Sample response
{
"properties": {
"results": {
"VA1020": [],
"VA1054": [],
"VA1095": [],
"VA1096": [],
"VA1097": [],
"VA1099": [],
"VA1143": [
[
"True"
]
],
"VA1219": [
[
"False"
]
],
"VA1221": [],
"VA1223": [],
"VA1224": [],
"VA1246": [],
"VA1248": [],
"VA1258": [],
"VA1281": [],
"VA1282": [],
"VA2020": [],
"VA2033": [],
"VA2062": [],
"VA2064": [],
"VA2108": [],
"VA2109": [],
"VA2129": [],
"VA2130": []
}
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/servers/vulnerabilityaseessmenttest-6440/databases/testdb/sqlVulnerabilityAssessments/Default/baselines/Default",
"name": "Default",
"type": "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/baselines"
}
Add a database's vulnerability assessment rule baseline list.
Sample request
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/servers/vulnerabilityaseessmenttest-6440/databases/testdb/sqlVulnerabilityAssessments/default/baselines/default?api-version=2024-05-01-preview
{
"properties": {
"latestScan": false,
"results": {
"VA2063": [
[
"AllowAll",
"0.0.0.0",
"255.255.255.255"
]
],
"VA2065": [
[
"AllowAll",
"0.0.0.0",
"255.255.255.255"
]
]
}
}
}
Sample response
{
"properties": {
"results": {
"VA2063": [
[
"AllowAll",
"0.0.0.0",
"255.255.255.255"
]
],
"VA2065": [
[
"AllowAll",
"0.0.0.0",
"255.255.255.255"
]
]
}
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/servers/vulnerabilityaseessmenttest-6440/databases/testdb/sqlVulnerabilityAssessments/Default/baselines/Default",
"name": "Default",
"type": "Microsoft.Sql/servers/sqlVulnerabilityAssessments/baselines"
}
Definitions
Name | Description |
---|---|
Baseline |
|
created |
The type of identity that created the resource. |
Database |
A database sql vulnerability assessment baseline set. |
Database |
A database sql vulnerability assessment rule baseline list input. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
system |
Metadata pertaining to creation and last modification of the resource. |
Vulnerability |
The name of the vulnerability assessment. |
BaselineName
Name | Type | Description |
---|---|---|
default |
string |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
DatabaseSqlVulnerabilityAssessmentBaselineSet
A database sql vulnerability assessment baseline set.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
name |
string |
Resource name. |
properties.results |
object |
The baseline set result |
systemData |
SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource. |
|
type |
string |
Resource type. |
DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput
A database sql vulnerability assessment rule baseline list input.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
name |
string |
Resource name. |
properties.latestScan |
boolean |
The latest scan flag |
properties.results |
object |
The rule baseline result list |
systemData |
SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource. |
|
type |
string |
Resource type. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |
VulnerabilityAssessmentName
The name of the vulnerability assessment.
Name | Type | Description |
---|---|---|
default |
string |