SqlVulnerabilityAssessmentScans Interface

public interface SqlVulnerabilityAssessmentScans

Resource collection API of SqlVulnerabilityAssessmentScans.

Method Summary

Modifier and Type Method and Description
abstract ScanV2 get(String scanId, String resourceId)

Gets the scan details of a single scan record.

abstract SqlVulnerabilityAssessmentScanOperationResult getScanOperationResult(String resourceId, String operationId)

Gets the result of a scan operation initiated by the InitiateScan action.

abstract Response<SqlVulnerabilityAssessmentScanOperationResult> getScanOperationResultWithResponse(String resourceId, String operationId, String databaseName, Context context)

Gets the result of a scan operation initiated by the InitiateScan action.

abstract Response<ScanV2> getWithResponse(String scanId, String resourceId, String databaseName, Context context)

Gets the scan details of a single scan record.

abstract SqlVulnerabilityAssessmentScanOperationResult initiateScan(String resourceId)

Initiates a vulnerability assessment scan.

abstract SqlVulnerabilityAssessmentScanOperationResult initiateScan(String resourceId, String databaseName, Context context)

Initiates a vulnerability assessment scan.

abstract PagedIterable<ScanV2> list(String resourceId)

Gets a list of scan records.

abstract PagedIterable<ScanV2> list(String resourceId, String databaseName, Context context)

Gets a list of scan records.

Method Details

get

public abstract ScanV2 get(String scanId, String resourceId)

Gets the scan details of a single scan record.

Parameters:

scanId - The scan Id. Type 'latest' to get the scan record for the latest scan.
resourceId - The fully qualified Azure Resource manager identifier of the resource.

Returns:

the scan details of a single scan record.

getScanOperationResult

public abstract SqlVulnerabilityAssessmentScanOperationResult getScanOperationResult(String resourceId, String operationId)

Gets the result of a scan operation initiated by the InitiateScan action.

Parameters:

resourceId - The resourceId parameter.
operationId - The operationId parameter.

Returns:

the result of a scan operation initiated by the InitiateScan action.

getScanOperationResultWithResponse

public abstract Response<SqlVulnerabilityAssessmentScanOperationResult> getScanOperationResultWithResponse(String resourceId, String operationId, String databaseName, Context context)

Gets the result of a scan operation initiated by the InitiateScan action.

Parameters:

resourceId - The resourceId parameter.
operationId - The operationId parameter.
databaseName - The databaseName parameter.
context - The context to associate with this operation.

Returns:

the result of a scan operation initiated by the InitiateScan action along with Response<T>.

getWithResponse

public abstract Response<ScanV2> getWithResponse(String scanId, String resourceId, String databaseName, Context context)

Gets the scan details of a single scan record.

Parameters:

scanId - The scan Id. Type 'latest' to get the scan record for the latest scan.
resourceId - The fully qualified Azure Resource manager identifier of the resource.
databaseName - 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.
context - The context to associate with this operation.

Returns:

the scan details of a single scan record along with Response<T>.

initiateScan

public abstract SqlVulnerabilityAssessmentScanOperationResult initiateScan(String resourceId)

Initiates a vulnerability assessment scan.

Parameters:

resourceId - The resourceId parameter.

Returns:

the response.

initiateScan

public abstract SqlVulnerabilityAssessmentScanOperationResult initiateScan(String resourceId, String databaseName, Context context)

Initiates a vulnerability assessment scan.

Parameters:

resourceId - The resourceId parameter.
databaseName - The databaseName parameter.
context - The context to associate with this operation.

Returns:

the response.

list

public abstract PagedIterable<ScanV2> list(String resourceId)

Gets a list of scan records.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.

Returns:

a list of scan records as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<ScanV2> list(String resourceId, String databaseName, Context context)

Gets a list of scan records.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.
databaseName - 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.
context - The context to associate with this operation.

Returns:

a list of scan records as paginated response with PagedIterable<T>.

Applies to