SqlVulnerabilityAssessmentScanCollection.GetAsync Method

Definition

Overloads

Name Description
GetAsync(String, Guid, CancellationToken)

Provides a compatibility shim for the GetAsync operation preserved from the previous public API surface.

GetAsync(String, String, CancellationToken)

Gets the scan details of a single scan record.

  • Request Path. : /{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}.
  • Operation Id. : ScanV2s_Get.
  • Default Api Version. : 2026-04-01-preview.

GetAsync(String, Guid, CancellationToken)

Source:
SqlVulnerabilityAssessmentScanCollection.cs
Source:
SqlVulnerabilityAssessmentScanCollection.cs

Provides a compatibility shim for the GetAsync operation preserved from the previous public API surface.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>> GetAsync(string scanId, Guid workspaceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>>
override this.GetAsync : string * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>>
Public Overridable Function GetAsync (scanId As String, workspaceId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SqlVulnerabilityAssessmentScanResource))

Parameters

scanId
String

The value preserved for API compatibility.

workspaceId
Guid

The value preserved for API compatibility.

cancellationToken
CancellationToken

The value preserved for API compatibility.

Returns

The compatibility result.

Exceptions

scanId is an empty string, and was expected to be non-empty.

scanId is null.

Applies to

GetAsync(String, String, CancellationToken)

Source:
SqlVulnerabilityAssessmentScanCollection.cs

Gets the scan details of a single scan record.

  • Request Path. : /{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}.
  • Operation Id. : ScanV2s_Get.
  • Default Api Version. : 2026-04-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>> GetAsync(string scanId, string databaseName = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>>
override this.GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>>
Public Overridable Function GetAsync (scanId As String, Optional databaseName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SqlVulnerabilityAssessmentScanResource))

Parameters

scanId
String
databaseName
String
cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

scanId is null.

scanId is an empty string, and was expected to be non-empty.

Applies to