Interface WorkspaceManagedSqlServerVulnerabilityAssessments


public interface WorkspaceManagedSqlServerVulnerabilityAssessments
Resource collection API of WorkspaceManagedSqlServerVulnerabilityAssessments.
  • Method Details

    • getWithResponse

      com.azure.core.http.rest.Response<ServerVulnerabilityAssessment> getWithResponse(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, com.azure.core.util.Context context)
      Get server's vulnerability assessment.

      Get workspace managed sql server's vulnerability assessment.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      context - The context to associate with this operation.
      Returns:
      workspace managed sql server's vulnerability assessment 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

      ServerVulnerabilityAssessment get(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName)
      Get server's vulnerability assessment.

      Get workspace managed sql server's vulnerability assessment.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      Returns:
      workspace managed sql server's vulnerability assessment.
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, com.azure.core.util.Context context)
      Remove server's vulnerability assessment.

      Remove workspace managed sql server's vulnerability assessment.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • delete

      void delete(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName)
      Remove server's vulnerability assessment.

      Remove workspace managed sql server's vulnerability assessment.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      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<ServerVulnerabilityAssessment> list(String resourceGroupName, String workspaceName)
      Lists the vulnerability assessment policies associated with a server.

      Lists the vulnerability assessment policies associated with a workspace managed sql server.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      Returns:
      a list of the server's vulnerability assessments 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<ServerVulnerabilityAssessment> list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
      Lists the vulnerability assessment policies associated with a server.

      Lists the vulnerability assessment policies associated with a workspace managed sql server.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      context - The context to associate with this operation.
      Returns:
      a list of the server's vulnerability assessments 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.
    • getById

      Get server's vulnerability assessment.

      Get workspace managed sql server's vulnerability assessment.

      Parameters:
      id - the resource ID.
      Returns:
      workspace managed sql server's vulnerability assessment 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<ServerVulnerabilityAssessment> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get server's vulnerability assessment.

      Get workspace managed sql server's vulnerability assessment.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      workspace managed sql server's vulnerability assessment 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.
    • deleteById

      void deleteById(String id)
      Remove server's vulnerability assessment.

      Remove workspace managed sql server's vulnerability assessment.

      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Remove server's vulnerability assessment.

      Remove workspace managed sql server's vulnerability assessment.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • define

      Begins definition for a new ServerVulnerabilityAssessment resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new ServerVulnerabilityAssessment definition.