Interface SqlVulnerabilityAssessmentBaselineRules
public interface SqlVulnerabilityAssessmentBaselineRules
Resource collection API of SqlVulnerabilityAssessmentBaselineRules.
-
Method Summary
Modifier and TypeMethodDescriptionAdd a list of baseline rules.com.azure.core.http.rest.Response<RulesResults>
addWithResponse
(String workspaceId, String resourceId, RulesResultsInput body, com.azure.core.util.Context context) Add a list of baseline rules.Begins definition for a new RuleResults resource.void
Deletes a rule from the Baseline of a given database.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String ruleId, String workspaceId, String resourceId, com.azure.core.util.Context context) Deletes a rule from the Baseline of a given database.Gets the results for a given rule in the Baseline.com.azure.core.http.rest.Response<RuleResults>
getWithResponse
(String ruleId, String workspaceId, String resourceId, com.azure.core.util.Context context) Gets the results for a given rule in the Baseline.Gets the results for all rules in the Baseline.com.azure.core.http.rest.Response<RulesResults>
listWithResponse
(String workspaceId, String resourceId, com.azure.core.util.Context context) Gets the results for all rules in the Baseline.
-
Method Details
-
get
Gets the results for a given rule in the Baseline.- Parameters:
ruleId
- The rule Id.workspaceId
- The workspace Id.resourceId
- The identifier of the resource.- Returns:
- the results for a given rule in the Baseline.
- 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<RuleResults> getWithResponse(String ruleId, String workspaceId, String resourceId, com.azure.core.util.Context context) Gets the results for a given rule in the Baseline.- Parameters:
ruleId
- The rule Id.workspaceId
- The workspace Id.resourceId
- The identifier of the resource.context
- The context to associate with this operation.- Returns:
- the results for a given rule in the Baseline 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
Deletes a rule from the Baseline of a given database.- Parameters:
ruleId
- The rule Id.workspaceId
- The workspace Id.resourceId
- The identifier of the 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String ruleId, String workspaceId, String resourceId, com.azure.core.util.Context context) Deletes a rule from the Baseline of a given database.- Parameters:
ruleId
- The rule Id.workspaceId
- The workspace Id.resourceId
- The identifier of the resource.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
Gets the results for all rules in the Baseline.- Parameters:
workspaceId
- The workspace Id.resourceId
- The identifier of the resource.- Returns:
- the results for all rules in the Baseline.
- 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.
-
listWithResponse
com.azure.core.http.rest.Response<RulesResults> listWithResponse(String workspaceId, String resourceId, com.azure.core.util.Context context) Gets the results for all rules in the Baseline.- Parameters:
workspaceId
- The workspace Id.resourceId
- The identifier of the resource.context
- The context to associate with this operation.- Returns:
- the results for all rules in the Baseline 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.
-
add
Add a list of baseline rules. Will overwrite any previously existing results (for all rules).- Parameters:
workspaceId
- The workspace Id.resourceId
- The identifier of the resource.- Returns:
- a list of rules results.
- 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.
-
addWithResponse
com.azure.core.http.rest.Response<RulesResults> addWithResponse(String workspaceId, String resourceId, RulesResultsInput body, com.azure.core.util.Context context) Add a list of baseline rules. Will overwrite any previously existing results (for all rules).- Parameters:
workspaceId
- The workspace Id.resourceId
- The identifier of the resource.body
- The baseline rules.context
- The context to associate with this operation.- Returns:
- a list of rules results 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.
-
define
Begins definition for a new RuleResults resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new RuleResults definition.
-