SqlVulnerabilityAssessmentScanCollection.GetAll 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 |
|---|---|
| GetAll(String, CancellationToken) |
Gets a list of scan records.
|
| GetAll(Guid, CancellationToken) |
Provides a compatibility shim for the GetAll operation preserved from the previous public API surface. |
GetAll(String, CancellationToken)
Gets a list of scan records.
- Request Path. : /{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans.
- Operation Id. : ScanV2s_List.
- Default Api Version. : 2026-04-01-preview.
public virtual Azure.Pageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource> GetAll(string databaseName = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>
override this.GetAll : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>
Public Overridable Function GetAll (Optional databaseName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SqlVulnerabilityAssessmentScanResource)
Parameters
- databaseName
- String
The name of the database to assess. Required when the API is called on the parent resource (e.g., server level) rather than on a specific database resource, since the database name is not part of the resource URI. This is the only way to assess system databases (e.g., master), which cannot be referenced directly in the resource URI.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of SqlVulnerabilityAssessmentScanResource that may take multiple service requests to iterate over.
Applies to
GetAll(Guid, CancellationToken)
Provides a compatibility shim for the GetAll operation preserved from the previous public API surface.
public virtual Azure.Pageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource> GetAll(Guid workspaceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : Guid * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>
override this.GetAll : Guid * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentScanResource>
Public Overridable Function GetAll (workspaceId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SqlVulnerabilityAssessmentScanResource)
Parameters
- workspaceId
- Guid
The value preserved for API compatibility.
- cancellationToken
- CancellationToken
The value preserved for API compatibility.
Returns
The compatibility result.