SqlVulnerabilityAssessmentBaselineRulesClient Interface

public interface SqlVulnerabilityAssessmentBaselineRulesClient

An instance of this class provides access to all the operations defined in SqlVulnerabilityAssessmentBaselineRulesClient.

Method Summary

Modifier and Type Method and Description
abstract RulesResultsInner add(String resourceId)

Set a list of baseline rules.

abstract Response<RulesResultsInner> addWithResponse(String resourceId, String databaseName, RulesResultsInput body, Context context)

Set a list of baseline rules.

abstract RuleResultsInner createOrUpdate(String resourceId, String ruleId)

Creates a Baseline for a rule in a database.

abstract Response<RuleResultsInner> createOrUpdateWithResponse(String resourceId, String ruleId, String databaseName, RuleResultsInput body, Context context)

Creates a Baseline for a rule in a database.

abstract void delete(String resourceId, String ruleId)

Deletes a rule from the Baseline of a given database.

abstract Response<Void> deleteWithResponse(String resourceId, String ruleId, String databaseName, Context context)

Deletes a rule from the Baseline of a given database.

abstract RuleResultsInner get(String resourceId, String ruleId)

Gets the results for a given rule in the Baseline.

abstract Response<RuleResultsInner> getWithResponse(String resourceId, String ruleId, String databaseName, Context context)

Gets the results for a given rule in the Baseline.

abstract PagedIterable<RuleResultsInner> list(String resourceId)

Gets the results for all rules in the Baseline.

abstract PagedIterable<RuleResultsInner> list(String resourceId, String databaseName, Context context)

Gets the results for all rules in the Baseline.

Method Details

add

public abstract RulesResultsInner add(String resourceId)

Set a list of baseline rules. Will overwrite any previously existing results (for all rules).

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.

Returns:

a list of rules results.

addWithResponse

public abstract Response<RulesResultsInner> addWithResponse(String resourceId, String databaseName, RulesResultsInput body, Context context)

Set a list of baseline rules. Will overwrite any previously existing results (for all rules).

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.
databaseName - The name of the database to assess. Required when the API is called on the parent resource (e.g., server level) rather than on a specific database resource, since the database name is not part of the resource URI. This is the only way to assess system databases (e.g., master), which cannot be referenced directly in the resource URI.
body - The content of the action request.
context - The context to associate with this operation.

Returns:

a list of rules results along with Response<T>.

createOrUpdate

public abstract RuleResultsInner createOrUpdate(String resourceId, String ruleId)

Creates a Baseline for a rule in a database. Will overwrite any previously existing results.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The rule Id.

Returns:

rule results.

createOrUpdateWithResponse

public abstract Response<RuleResultsInner> createOrUpdateWithResponse(String resourceId, String ruleId, String databaseName, RuleResultsInput body, Context context)

Creates a Baseline for a rule in a database. Will overwrite any previously existing results.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The rule Id.
databaseName - The name of the database to assess. Required when the API is called on the parent resource (e.g., server level) rather than on a specific database resource, since the database name is not part of the resource URI. This is the only way to assess system databases (e.g., master), which cannot be referenced directly in the resource URI.
body - The baseline results for this rule.
context - The context to associate with this operation.

Returns:

rule results along with Response<T>.

delete

public abstract void delete(String resourceId, String ruleId)

Deletes a rule from the Baseline of a given database.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The rule Id.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceId, String ruleId, String databaseName, Context context)

Deletes a rule from the Baseline of a given database.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The rule Id.
databaseName - The name of the database to assess. Required when the API is called on the parent resource (e.g., server level) rather than on a specific database resource, since the database name is not part of the resource URI. This is the only way to assess system databases (e.g., master), which cannot be referenced directly in the resource URI.
context - The context to associate with this operation.

Returns:

get

public abstract RuleResultsInner get(String resourceId, String ruleId)

Gets the results for a given rule in the Baseline.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The rule Id.

Returns:

the results for a given rule in the Baseline.

getWithResponse

public abstract Response<RuleResultsInner> getWithResponse(String resourceId, String ruleId, String databaseName, Context context)

Gets the results for a given rule in the Baseline.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The rule Id.
databaseName - The name of the database to assess. Required when the API is called on the parent resource (e.g., server level) rather than on a specific database resource, since the database name is not part of the resource URI. This is the only way to assess system databases (e.g., master), which cannot be referenced directly in the resource URI.
context - The context to associate with this operation.

Returns:

the results for a given rule in the Baseline along with Response<T>.

list

public abstract PagedIterable<RuleResultsInner> list(String resourceId)

Gets the results for all rules in the Baseline.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.

Returns:

the results for all rules in the Baseline as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<RuleResultsInner> list(String resourceId, String databaseName, Context context)

Gets the results for all rules in the Baseline.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.
databaseName - The name of the database to assess. Required when the API is called on the parent resource (e.g., server level) rather than on a specific database resource, since the database name is not part of the resource URI. This is the only way to assess system databases (e.g., master), which cannot be referenced directly in the resource URI.
context - The context to associate with this operation.

Returns:

the results for all rules in the Baseline as paginated response with PagedIterable<T>.

Applies to