DatabaseVulnerabilityAssessmentRuleBaselinesOperations Class

DatabaseVulnerabilityAssessmentRuleBaselinesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
DatabaseVulnerabilityAssessmentRuleBaselinesOperations

Constructor

DatabaseVulnerabilityAssessmentRuleBaselinesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

create_or_update

Creates or updates a database's vulnerability assessment rule baseline.

delete

Removes the database's vulnerability assessment rule baseline.

get

Gets a database's vulnerability assessment rule baseline.

create_or_update

Creates or updates a database's vulnerability assessment rule baseline.

create_or_update(resource_group_name: str, server_name: str, database_name: str, vulnerability_assessment_name: Union[str, _models.VulnerabilityAssessmentName], rule_id: str, baseline_name: Union[str, _models.VulnerabilityAssessmentPolicyBaselineName], parameters: _models.DatabaseVulnerabilityAssessmentRuleBaseline, **kwargs: Any) -> _models.DatabaseVulnerabilityAssessmentRuleBaseline

Parameters

resource_group_name
str
Required

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

server_name
str
Required

The name of the server.

database_name
str
Required

The name of the database for which the vulnerability assessment rule baseline is defined.

vulnerability_assessment_name
str or VulnerabilityAssessmentName
Required

The name of the vulnerability assessment.

rule_id
str
Required

The vulnerability assessment rule ID.

baseline_name
str or VulnerabilityAssessmentPolicyBaselineName
Required

The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).

parameters
DatabaseVulnerabilityAssessmentRuleBaseline
Required

The requested rule baseline resource.

cls
callable

A custom type or function that will be passed the direct response

Returns

DatabaseVulnerabilityAssessmentRuleBaseline, or the result of cls(response)

Return type

Exceptions

delete

Removes the database's vulnerability assessment rule baseline.

delete(resource_group_name: str, server_name: str, database_name: str, vulnerability_assessment_name: Union[str, _models.VulnerabilityAssessmentName], rule_id: str, baseline_name: Union[str, _models.VulnerabilityAssessmentPolicyBaselineName], **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

server_name
str
Required

The name of the server.

database_name
str
Required

The name of the database for which the vulnerability assessment rule baseline is defined.

vulnerability_assessment_name
str or VulnerabilityAssessmentName
Required

The name of the vulnerability assessment.

rule_id
str
Required

The vulnerability assessment rule ID.

baseline_name
str or VulnerabilityAssessmentPolicyBaselineName
Required

The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Gets a database's vulnerability assessment rule baseline.

get(resource_group_name: str, server_name: str, database_name: str, vulnerability_assessment_name: Union[str, _models.VulnerabilityAssessmentName], rule_id: str, baseline_name: Union[str, _models.VulnerabilityAssessmentPolicyBaselineName], **kwargs: Any) -> _models.DatabaseVulnerabilityAssessmentRuleBaseline

Parameters

resource_group_name
str
Required

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

server_name
str
Required

The name of the server.

database_name
str
Required

The name of the database for which the vulnerability assessment rule baseline is defined.

vulnerability_assessment_name
str or VulnerabilityAssessmentName
Required

The name of the vulnerability assessment.

rule_id
str
Required

The vulnerability assessment rule ID.

baseline_name
str or VulnerabilityAssessmentPolicyBaselineName
Required

The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).

cls
callable

A custom type or function that will be passed the direct response

Returns

DatabaseVulnerabilityAssessmentRuleBaseline, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.sql.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\sql\\models\\__init__.py'>