Interface SqlPoolVulnerabilityAssessmentScansClient


public interface SqlPoolVulnerabilityAssessmentScansClient
An instance of this class provides access to all the operations defined in SqlPoolVulnerabilityAssessmentScansClient.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<VulnerabilityAssessmentScanRecordInner> list(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName)
      Lists the vulnerability assessment scans of a SQL pool

      Lists the vulnerability assessment scans of a SQL pool.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      sqlPoolName - SQL pool name.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      Returns:
      a list of vulnerability assessment scan records as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<VulnerabilityAssessmentScanRecordInner> list(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, com.azure.core.util.Context context)
      Lists the vulnerability assessment scans of a SQL pool

      Lists the vulnerability assessment scans of a SQL pool.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      sqlPoolName - SQL pool name.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      context - The context to associate with this operation.
      Returns:
      a list of vulnerability assessment scan records as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginInitiateScan

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginInitiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId)
      Executes a Vulnerability Assessment database scan.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      sqlPoolName - SQL pool name.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      scanId - The vulnerability assessment scan Id of the scan to retrieve.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginInitiateScan

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginInitiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, com.azure.core.util.Context context)
      Executes a Vulnerability Assessment database scan.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      sqlPoolName - SQL pool name.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      scanId - The vulnerability assessment scan Id of the scan to retrieve.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • initiateScan

      void initiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId)
      Executes a Vulnerability Assessment database scan.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      sqlPoolName - SQL pool name.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      scanId - The vulnerability assessment scan Id of the scan to retrieve.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • initiateScan

      void initiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, com.azure.core.util.Context context)
      Executes a Vulnerability Assessment database scan.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      sqlPoolName - SQL pool name.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      scanId - The vulnerability assessment scan Id of the scan to retrieve.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • exportWithResponse

      com.azure.core.http.rest.Response<SqlPoolVulnerabilityAssessmentScansExportInner> exportWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, com.azure.core.util.Context context)
      Convert an existing scan result to a human readable format. If already exists nothing happens.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      sqlPoolName - SQL pool name.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      scanId - The vulnerability assessment scan Id of the scan to retrieve.
      context - The context to associate with this operation.
      Returns:
      a Sql pool Vulnerability Assessment scan export resource along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • export

      SqlPoolVulnerabilityAssessmentScansExportInner export(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId)
      Convert an existing scan result to a human readable format. If already exists nothing happens.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      sqlPoolName - SQL pool name.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      scanId - The vulnerability assessment scan Id of the scan to retrieve.
      Returns:
      a Sql pool Vulnerability Assessment scan export resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<VulnerabilityAssessmentScanRecordInner> getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, com.azure.core.util.Context context)
      Gets a vulnerability assessment scan record of a Sql pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      sqlPoolName - SQL pool name.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      scanId - The vulnerability assessment scan Id of the scan to retrieve.
      context - The context to associate with this operation.
      Returns:
      a vulnerability assessment scan record of a Sql pool along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      VulnerabilityAssessmentScanRecordInner get(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId)
      Gets a vulnerability assessment scan record of a Sql pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      sqlPoolName - SQL pool name.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      scanId - The vulnerability assessment scan Id of the scan to retrieve.
      Returns:
      a vulnerability assessment scan record of a Sql pool.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.