SqlVulnerabilityAssessmentScanCollection.GetAsync 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.
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.
|
GetAsync(String, Guid, CancellationToken)
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)
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.