Defender For Storage - Start Malware Scan
Initiate a Defender for Storage malware scan for the specified storage account.
POST https://management.azure.com/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/current/startMalwareScan?api-version=2024-10-01-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The identifier of the resource. |
setting
|
path | True | pattern: ^[a-z][a-z0-9]*$ |
Defender for Storage setting name. |
api-version
|
query | True |
string |
API version for the operation |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The status of the malware scan operation. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Initiate a Defender for Storage malware scan for the specified storage account.
Sample request
Sample response
{
"properties": {
"scanId": "fc831479-412f-4bc2-8333-a8edda751a80",
"scanStatus": "Queued",
"scanStatusMessage": "The scan request has been queued for scanning"
}
}
Definitions
Name | Description |
---|---|
Blobs |
A summary of the scan results of the blobs that were scanned. |
Cloud |
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). |
Cloud |
The error detail. |
Error |
The resource management error additional info. |
Malware |
Describes the state of a malware scan operation. |
Malware |
|
Scan |
A summary of the scan results. |
setting |
Defender for Storage setting name. |
BlobsScanSummary
A summary of the scan results of the blobs that were scanned.
Name | Type | Description |
---|---|---|
maliciousBlobsCount |
integer (int64) |
The number of malicious blobs that were detected during the scan. |
scannedBlobsInGB |
number (double) |
The number of gigabytes of data that were scanned. |
skippedBlobsCount |
integer (int64) |
The number of blobs that were skipped. |
totalBlobsScanned |
integer (int64) |
The total number of blobs that were scanned. |
CloudError
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
Name | Type | Description |
---|---|---|
error.additionalInfo |
The error additional info. |
|
error.code |
string |
The error code. |
error.details |
The error details. |
|
error.message |
string |
The error message. |
error.target |
string |
The error target. |
CloudErrorBody
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. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
MalwareScan
Describes the state of a malware scan operation.
Name | Type | Description |
---|---|---|
properties |
MalwareScanProperties
Name | Type | Description |
---|---|---|
scanEndTime |
string |
The time at which the scan has ended. Only available for a scan which has terminated. |
scanId |
string |
The identifier of the scan. |
scanStartTime |
string |
The time at which the scan had been initiated. |
scanStatus |
string |
A status code of the scan operation. |
scanStatusMessage |
string |
A description of the status of the scan. |
scanSummary |
A summary of the scan results. |
ScanSummary
A summary of the scan results.
Name | Type | Description |
---|---|---|
blobs |
A summary of the scan results of the blobs that were scanned. |
|
estimatedScanCostUSD |
number (double) |
The estimated cost of the scan. Only available for a scan which has terminated. |
settingName
Defender for Storage setting name.
Value | Description |
---|---|
current |
Name of the Defender for Storage Settings name. |