Database Vulnerability Assessment Scans - Export
Convert an existing scan result to a human readable format. If already exists nothing happens
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/default/scans/{scanId}/export?api-version=2021-11-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
database
|
path | True |
string |
The name of the scanned 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. |
scan
|
path | True |
string |
The vulnerability assessment scan Id. |
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. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Scan result was converted successfully. |
|
201 Created |
Scan result was converted successfully. |
|
Other Status Codes |
*** Error Responses: ***
|
Examples
Export a database's vulnerability assessment scan results.
Sample request
POST https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/servers/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001/export?api-version=2021-11-01
Sample response
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/servers/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001/export",
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans/export",
"properties": {
"exportedReportLocation": "https://myaccount.blob.core.windows.net/vulnerabilityAssessment/vulnerabilityassessmenttest-6440/testdb/scan001.xlsx"
}
}
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/servers/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001/export",
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans/export",
"properties": {
"exportedReportLocation": "https://myaccount.blob.core.windows.net/vulnerabilityAssessment/vulnerabilityassessmenttest-6440/testdb/scan001.xlsx"
}
}
Definitions
Name | Description |
---|---|
Database |
A database Vulnerability Assessment scan export resource. |
Vulnerability |
The name of the vulnerability assessment. |
DatabaseVulnerabilityAssessmentScansExport
A database Vulnerability Assessment scan export resource.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
name |
string |
Resource name. |
properties.exportedReportLocation |
string |
Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). |
type |
string |
Resource type. |
VulnerabilityAssessmentName
The name of the vulnerability assessment.
Name | Type | Description |
---|---|---|
default |
string |