SqlVulnerabilityAssessmentScansClient Interface

public interface SqlVulnerabilityAssessmentScansClient

An instance of this class provides access to all the operations defined in SqlVulnerabilityAssessmentScansClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<SqlVulnerabilityAssessmentScanOperationResultInner>,SqlVulnerabilityAssessmentScanOperationResultInner> beginInitiateScan(String resourceId)

Initiates a vulnerability assessment scan.

abstract SyncPoller<PollResult<SqlVulnerabilityAssessmentScanOperationResultInner>,SqlVulnerabilityAssessmentScanOperationResultInner> beginInitiateScan(String resourceId, String databaseName, Context context)

Initiates a vulnerability assessment scan.

abstract ScanV2Inner get(String scanId, String resourceId)

Gets the scan details of a single scan record.

abstract SqlVulnerabilityAssessmentScanOperationResultInner getScanOperationResult(String resourceId, String operationId)

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

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

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

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

Gets the scan details of a single scan record.

abstract SqlVulnerabilityAssessmentScanOperationResultInner initiateScan(String resourceId)

Initiates a vulnerability assessment scan.

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

Initiates a vulnerability assessment scan.

abstract PagedIterable<ScanV2Inner> list(String resourceId)

Gets a list of scan records.

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

Gets a list of scan records.

Method Details

beginInitiateScan

public abstract SyncPoller<PollResult<SqlVulnerabilityAssessmentScanOperationResultInner>,SqlVulnerabilityAssessmentScanOperationResultInner> beginInitiateScan(String resourceId)

Initiates a vulnerability assessment scan.

Parameters:

resourceId - The resourceId parameter.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginInitiateScan

public abstract SyncPoller<PollResult<SqlVulnerabilityAssessmentScanOperationResultInner>,SqlVulnerabilityAssessmentScanOperationResultInner> beginInitiateScan(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 SyncPoller<T,U> for polling of long-running operation.

get

public abstract ScanV2Inner 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 SqlVulnerabilityAssessmentScanOperationResultInner 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<SqlVulnerabilityAssessmentScanOperationResultInner> 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<ScanV2Inner> 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 SqlVulnerabilityAssessmentScanOperationResultInner initiateScan(String resourceId)

Initiates a vulnerability assessment scan.

Parameters:

resourceId - The resourceId parameter.

Returns:

the response.

initiateScan

public abstract SqlVulnerabilityAssessmentScanOperationResultInner 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<ScanV2Inner> 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<ScanV2Inner> 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