SqlVulnerabilityAssessmentScanCollection.Get 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 |
|---|---|
| Get(String, Guid, CancellationToken) |
Provides a compatibility shim for the Get operation preserved from the previous public API surface. |
| Get(String, String, CancellationToken) |
Gets the scan details of a single scan record.
|
Get(String, Guid, CancellationToken)
Provides a compatibility shim for the Get operation preserved from the previous public API surface.
public virtual Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource> Get(string scanId, Guid workspaceId, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * Guid * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>
override this.Get : string * Guid * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>
Public Overridable Function Get (scanId As String, workspaceId As Guid, Optional cancellationToken As CancellationToken = Nothing) As 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
Get(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 Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource> Get(string scanId, string databaseName = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>
override this.Get : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>
Public Overridable Function Get (scanId As String, Optional databaseName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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.