Interface WorkspaceManagedSqlServerVulnerabilityAssessments
-
public interface WorkspaceManagedSqlServerVulnerabilityAssessments
Resource collection API of WorkspaceManagedSqlServerVulnerabilityAssessments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerVulnerabilityAssessment.DefinitionStages.Blank
define(VulnerabilityAssessmentName name)
Begins definition for a new ServerVulnerabilityAssessment resource.void
delete(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName)
Remove workspace managed sql server's vulnerability assessment.void
deleteById(String id)
Remove workspace managed sql server's vulnerability assessment.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse(String id, com.azure.core.util.Context context)
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.ServerVulnerabilityAssessment
get(String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName)
Get workspace managed sql server's vulnerability assessment.ServerVulnerabilityAssessment
getById(String id)
Get workspace managed sql server's vulnerability assessment.com.azure.core.http.rest.Response<ServerVulnerabilityAssessment>
getByIdWithResponse(String id, com.azure.core.util.Context context)
Get workspace managed sql server's vulnerability assessment.com.azure.core.http.rest.Response<ServerVulnerabilityAssessment>
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<ServerVulnerabilityAssessment>
list(String resourceGroupName, String workspaceName)
Lists the vulnerability assessment policies associated with a workspace managed sql server.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 workspace managed sql server.
-
-
-
Method Detail
-
get
ServerVulnerabilityAssessment 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<ServerVulnerabilityAssessment> 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.
-
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<ServerVulnerabilityAssessment> 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<ServerVulnerabilityAssessment> 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.
-
getById
ServerVulnerabilityAssessment getById(String id)
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 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 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 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
ServerVulnerabilityAssessment.DefinitionStages.Blank define(VulnerabilityAssessmentName name)
Begins definition for a new ServerVulnerabilityAssessment resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new ServerVulnerabilityAssessment definition.
-
-