Interface WorkspaceManagedSqlServerVulnerabilityAssessmentsClient
-
public interface WorkspaceManagedSqlServerVulnerabilityAssessmentsClient
An instance of this class provides access to all the operations defined in WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerVulnerabilityAssessmentInner
createOrUpdate(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, ServerVulnerabilityAssessmentInner parameters)
Create or Update workspace managed sql server's vulnerability assessment.com.azure.core.http.rest.Response<ServerVulnerabilityAssessmentInner>
createOrUpdateWithResponse(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, ServerVulnerabilityAssessmentInner parameters, com.azure.core.util.Context context)
Create or Update workspace managed sql server's vulnerability assessment.void
delete(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName)
Remove workspace managed sql server's vulnerability assessment.com.azure.core.http.rest.Response<Void>
deleteWithResponse(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, com.azure.core.util.Context context)
Remove workspace managed sql server's vulnerability assessment.ServerVulnerabilityAssessmentInner
get(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName)
Get workspace managed sql server's vulnerability assessment.com.azure.core.http.rest.Response<ServerVulnerabilityAssessmentInner>
getWithResponse(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, com.azure.core.util.Context context)
Get workspace managed sql server's vulnerability assessment.com.azure.core.http.rest.PagedIterable<ServerVulnerabilityAssessmentInner>
list(String resourceGroupName, String workspaceName)
Lists the vulnerability assessment policies associated with a workspace managed sql server.com.azure.core.http.rest.PagedIterable<ServerVulnerabilityAssessmentInner>
list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
Lists the vulnerability assessment policies associated with a workspace managed sql server.
-
-
-
Method Detail
-
get
ServerVulnerabilityAssessmentInner get(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName)
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.
-
getWithResponse
com.azure.core.http.rest.Response<ServerVulnerabilityAssessmentInner> getWithResponse(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, com.azure.core.util.Context context)
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.
-
createOrUpdate
ServerVulnerabilityAssessmentInner createOrUpdate(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, ServerVulnerabilityAssessmentInner parameters)
Create or Update 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.parameters
- Properties for vulnerability assessment.- Returns:
- a server 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ServerVulnerabilityAssessmentInner> createOrUpdateWithResponse(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, ServerVulnerabilityAssessmentInner parameters, com.azure.core.util.Context context)
Create or Update 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.parameters
- Properties for vulnerability assessment.context
- The context to associate with this operation.- Returns:
- a server 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.
-
delete
void delete(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName)
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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, com.azure.core.util.Context context)
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.
-
list
com.azure.core.http.rest.PagedIterable<ServerVulnerabilityAssessmentInner> list(String resourceGroupName, String workspaceName)
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<ServerVulnerabilityAssessmentInner> list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
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.
-
-