SqlVulnerabilityAssessmentBaselineRules Interface

public interface SqlVulnerabilityAssessmentBaselineRules

Resource collection API of SqlVulnerabilityAssessmentBaselineRules.

Method Summary

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

Set a list of baseline rules.

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

Set a list of baseline rules.

abstract Blank define(String name)

Begins definition for a new RuleResults resource.

abstract void delete(String resourceId, String ruleId)

Deletes a rule from the Baseline of a given database.

abstract void deleteById(String id)

Deletes a rule from the Baseline of a given database.

abstract Response<Void> deleteByIdWithResponse(String id, String databaseName, Context context)

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 RuleResults get(String resourceId, String ruleId)

Gets the results for a given rule in the Baseline.

abstract RuleResults getById(String id)

Gets the results for a given rule in the Baseline.

abstract Response<RuleResults> getByIdWithResponse(String id, String databaseName, Context context)

Gets the results for a given rule in the Baseline.

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

Gets the results for a given rule in the Baseline.

abstract PagedIterable<RuleResults> list(String resourceId)

Gets the results for all rules in the Baseline.

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

Gets the results for all rules in the Baseline.

Method Details

add

public abstract RulesResults 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<RulesResults> 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>.

define

public abstract RuleResults.DefinitionStages.Blank define(String name)

Begins definition for a new RuleResults resource.

Parameters:

name - resource name.

Returns:

the first stage of the new RuleResults definition.

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.

deleteById

public abstract void deleteById(String id)

Deletes a rule from the Baseline of a given database.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, String databaseName, Context context)

Deletes a rule from the Baseline of a given database.

Parameters:

id - the resource 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:

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 RuleResults 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.

getById

public abstract RuleResults getById(String id)

Gets the results for a given rule in the Baseline.

Parameters:

id - the resource ID.

Returns:

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

getByIdWithResponse

public abstract Response<RuleResults> getByIdWithResponse(String id, String databaseName, Context context)

Gets the results for a given rule in the Baseline.

Parameters:

id - the resource 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>.

getWithResponse

public abstract Response<RuleResults> 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<RuleResults> 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<RuleResults> 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