DefenderForStorageSettingResource.GetMalwareScan Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the Defender for Storage malware scan for the specified storage resource.
- Request Path. : /{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}/malwareScans/{scanId}.
- Operation Id. : DefenderForStorageSettings_GetMalwareScan.
- Default Api Version. : 2025-09-01-preview.
- Resource. : DefenderForStorageSettingResource.
public virtual Azure.Response<Azure.ResourceManager.SecurityCenter.Models.MalwareScan> GetMalwareScan(string scanId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMalwareScan : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.Models.MalwareScan>
override this.GetMalwareScan : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.Models.MalwareScan>
Public Overridable Function GetMalwareScan (scanId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MalwareScan)
Parameters
- scanId
- String
The identifier of the scan. Can be either 'latest' or a GUID.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
scanId is null.
scanId is an empty string, and was expected to be non-empty.