Interface SqlVulnerabilityAssessmentBaselineRulesClient
public interface SqlVulnerabilityAssessmentBaselineRulesClient
An instance of this class provides access to all the operations defined in
SqlVulnerabilityAssessmentBaselineRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptionAdd a list of baseline rules.com.azure.core.http.rest.Response<RulesResultsInner>
addWithResponse
(String workspaceId, String resourceId, RulesResultsInput body, com.azure.core.util.Context context) Add a list of baseline rules.createOrUpdate
(String ruleId, String workspaceId, String resourceId) Creates a Baseline for a rule in a database.com.azure.core.http.rest.Response<RuleResultsInner>
createOrUpdateWithResponse
(String ruleId, String workspaceId, String resourceId, RuleResultsInput body, com.azure.core.util.Context context) Creates a Baseline for a rule in a database.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<RuleResultsInner>
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<RulesResultsInner>
listWithResponse
(String workspaceId, String resourceId, com.azure.core.util.Context context) Gets the results for all rules in the Baseline.
-
Method Details
-
createOrUpdate
Creates a Baseline for a rule in a database. Will overwrite any previously existing results.- Parameters:
ruleId
- The rule Id.workspaceId
- The workspace Id.resourceId
- The identifier of the resource.- Returns:
- rule 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<RuleResultsInner> createOrUpdateWithResponse(String ruleId, String workspaceId, String resourceId, RuleResultsInput body, com.azure.core.util.Context context) Creates a Baseline for a rule in a database. Will overwrite any previously existing results.- Parameters:
ruleId
- The rule Id.workspaceId
- The workspace Id.resourceId
- The identifier of the resource.body
- The baseline results for this rule.context
- The context to associate with this operation.- Returns:
- rule 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.
-
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<RuleResultsInner> 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<RulesResultsInner> 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<RulesResultsInner> 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.
-