DatabaseVulnerabilityAssessmentRuleBaseline

Manages a Database Vulnerability Assessment Rule Baseline.

NOTE Database Vulnerability Assessment is currently only available for MS SQL databases.

Create a DatabaseVulnerabilityAssessmentRuleBaseline Resource

def DatabaseVulnerabilityAssessmentRuleBaseline(resource_name, opts=None, baseline_name=None, baseline_results=None, database_name=None, rule_id=None, server_vulnerability_assessment_id=None, __props__=None);
name string
The unique name of the resource.
args DatabaseVulnerabilityAssessmentRuleBaselineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DatabaseVulnerabilityAssessmentRuleBaselineArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DatabaseVulnerabilityAssessmentRuleBaselineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

DatabaseVulnerabilityAssessmentRuleBaseline Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The DatabaseVulnerabilityAssessmentRuleBaseline resource accepts the following input properties:

BaselineResults List<DatabaseVulnerabilityAssessmentRuleBaselineBaselineResultArgs>

A baseline_result block as documented below. Multiple blocks can be defined.

DatabaseName string

Specifies the name of the MS SQL Database. Changing this forces a new resource to be created.

RuleId string

The vulnerability assessment rule ID. Changing this forces a new resource to be created.

ServerVulnerabilityAssessmentId string

The Vulnerability Assessment ID of the MS SQL Server. Changing this forces a new resource to be created.

BaselineName string

The name of the vulnerability assessment rule baseline. Valid options are default and master. default implies a baseline on a database level rule and master for server level rule. Defaults to default. Changing this forces a new resource to be created.

BaselineResults []DatabaseVulnerabilityAssessmentRuleBaselineBaselineResult

A baseline_result block as documented below. Multiple blocks can be defined.

DatabaseName string

Specifies the name of the MS SQL Database. Changing this forces a new resource to be created.

RuleId string

The vulnerability assessment rule ID. Changing this forces a new resource to be created.

ServerVulnerabilityAssessmentId string

The Vulnerability Assessment ID of the MS SQL Server. Changing this forces a new resource to be created.

BaselineName string

The name of the vulnerability assessment rule baseline. Valid options are default and master. default implies a baseline on a database level rule and master for server level rule. Defaults to default. Changing this forces a new resource to be created.

baselineResults DatabaseVulnerabilityAssessmentRuleBaselineBaselineResult[]

A baseline_result block as documented below. Multiple blocks can be defined.

databaseName string

Specifies the name of the MS SQL Database. Changing this forces a new resource to be created.

ruleId string

The vulnerability assessment rule ID. Changing this forces a new resource to be created.

serverVulnerabilityAssessmentId string

The Vulnerability Assessment ID of the MS SQL Server. Changing this forces a new resource to be created.

baselineName string

The name of the vulnerability assessment rule baseline. Valid options are default and master. default implies a baseline on a database level rule and master for server level rule. Defaults to default. Changing this forces a new resource to be created.

baseline_results List[DatabaseVulnerabilityAssessmentRuleBaselineBaselineResult]

A baseline_result block as documented below. Multiple blocks can be defined.

database_name str

Specifies the name of the MS SQL Database. Changing this forces a new resource to be created.

rule_id str

The vulnerability assessment rule ID. Changing this forces a new resource to be created.

server_vulnerability_assessment_id str

The Vulnerability Assessment ID of the MS SQL Server. Changing this forces a new resource to be created.

baseline_name str

The name of the vulnerability assessment rule baseline. Valid options are default and master. default implies a baseline on a database level rule and master for server level rule. Defaults to default. Changing this forces a new resource to be created.

Outputs

All input properties are implicitly available as output properties. Additionally, the DatabaseVulnerabilityAssessmentRuleBaseline resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing DatabaseVulnerabilityAssessmentRuleBaseline Resource

Get an existing DatabaseVulnerabilityAssessmentRuleBaseline resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, baseline_name=None, baseline_results=None, database_name=None, rule_id=None, server_vulnerability_assessment_id=None, __props__=None);
func GetDatabaseVulnerabilityAssessmentRuleBaseline(ctx *Context, name string, id IDInput, state *DatabaseVulnerabilityAssessmentRuleBaselineState, opts ...ResourceOption) (*DatabaseVulnerabilityAssessmentRuleBaseline, error)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

BaselineName string

The name of the vulnerability assessment rule baseline. Valid options are default and master. default implies a baseline on a database level rule and master for server level rule. Defaults to default. Changing this forces a new resource to be created.

BaselineResults List<DatabaseVulnerabilityAssessmentRuleBaselineBaselineResultArgs>

A baseline_result block as documented below. Multiple blocks can be defined.

DatabaseName string

Specifies the name of the MS SQL Database. Changing this forces a new resource to be created.

RuleId string

The vulnerability assessment rule ID. Changing this forces a new resource to be created.

ServerVulnerabilityAssessmentId string

The Vulnerability Assessment ID of the MS SQL Server. Changing this forces a new resource to be created.

BaselineName string

The name of the vulnerability assessment rule baseline. Valid options are default and master. default implies a baseline on a database level rule and master for server level rule. Defaults to default. Changing this forces a new resource to be created.

BaselineResults []DatabaseVulnerabilityAssessmentRuleBaselineBaselineResult

A baseline_result block as documented below. Multiple blocks can be defined.

DatabaseName string

Specifies the name of the MS SQL Database. Changing this forces a new resource to be created.

RuleId string

The vulnerability assessment rule ID. Changing this forces a new resource to be created.

ServerVulnerabilityAssessmentId string

The Vulnerability Assessment ID of the MS SQL Server. Changing this forces a new resource to be created.

baselineName string

The name of the vulnerability assessment rule baseline. Valid options are default and master. default implies a baseline on a database level rule and master for server level rule. Defaults to default. Changing this forces a new resource to be created.

baselineResults DatabaseVulnerabilityAssessmentRuleBaselineBaselineResult[]

A baseline_result block as documented below. Multiple blocks can be defined.

databaseName string

Specifies the name of the MS SQL Database. Changing this forces a new resource to be created.

ruleId string

The vulnerability assessment rule ID. Changing this forces a new resource to be created.

serverVulnerabilityAssessmentId string

The Vulnerability Assessment ID of the MS SQL Server. Changing this forces a new resource to be created.

baseline_name str

The name of the vulnerability assessment rule baseline. Valid options are default and master. default implies a baseline on a database level rule and master for server level rule. Defaults to default. Changing this forces a new resource to be created.

baseline_results List[DatabaseVulnerabilityAssessmentRuleBaselineBaselineResult]

A baseline_result block as documented below. Multiple blocks can be defined.

database_name str

Specifies the name of the MS SQL Database. Changing this forces a new resource to be created.

rule_id str

The vulnerability assessment rule ID. Changing this forces a new resource to be created.

server_vulnerability_assessment_id str

The Vulnerability Assessment ID of the MS SQL Server. Changing this forces a new resource to be created.

Supporting Types

DatabaseVulnerabilityAssessmentRuleBaselineBaselineResult

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Results List<string>

A list representing a result of the baseline.

Results []string

A list representing a result of the baseline.

results string[]

A list representing a result of the baseline.

results List[str]

A list representing a result of the baseline.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.