ServerVulnerabilityAssessment
Manages the Vulnerability Assessment for a MS SQL Server.
NOTE Vulnerability Assessment is currently only available for MS SQL databases.
Create a ServerVulnerabilityAssessment Resource
new ServerVulnerabilityAssessment(name: string, args: ServerVulnerabilityAssessmentArgs, opts?: CustomResourceOptions);def ServerVulnerabilityAssessment(resource_name, opts=None, recurring_scans=None, server_security_alert_policy_id=None, storage_account_access_key=None, storage_container_path=None, storage_container_sas_key=None, __props__=None);func NewServerVulnerabilityAssessment(ctx *Context, name string, args ServerVulnerabilityAssessmentArgs, opts ...ResourceOption) (*ServerVulnerabilityAssessment, error)public ServerVulnerabilityAssessment(string name, ServerVulnerabilityAssessmentArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServerVulnerabilityAssessmentArgs
- 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 ServerVulnerabilityAssessmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerVulnerabilityAssessmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ServerVulnerabilityAssessment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ServerVulnerabilityAssessment resource accepts the following input properties:
- Server
Security stringAlert Policy Id The id of the security alert policy of the MS SQL Server. Changing this forces a new resource to be created.
- Storage
Container stringPath A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- Recurring
Scans ServerVulnerability Assessment Recurring Scans Args The recurring scans settings. The
recurring_scansblock supports fields documented below.- Storage
Account stringAccess Key Specifies the identifier key of the storage account for vulnerability assessment scan results. If
storage_container_sas_keyisn’t specified,storage_account_access_keyis required.- Storage
Container stringSas Key A shared access signature (SAS Key) that has write access to the blob container specified in
storage_container_pathparameter. Ifstorage_account_access_keyisn’t specified,storage_container_sas_keyis required.
- Server
Security stringAlert Policy Id The id of the security alert policy of the MS SQL Server. Changing this forces a new resource to be created.
- Storage
Container stringPath A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- Recurring
Scans ServerVulnerability Assessment Recurring Scans The recurring scans settings. The
recurring_scansblock supports fields documented below.- Storage
Account stringAccess Key Specifies the identifier key of the storage account for vulnerability assessment scan results. If
storage_container_sas_keyisn’t specified,storage_account_access_keyis required.- Storage
Container stringSas Key A shared access signature (SAS Key) that has write access to the blob container specified in
storage_container_pathparameter. Ifstorage_account_access_keyisn’t specified,storage_container_sas_keyis required.
- server
Security stringAlert Policy Id The id of the security alert policy of the MS SQL Server. Changing this forces a new resource to be created.
- storage
Container stringPath A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- recurring
Scans ServerVulnerability Assessment Recurring Scans The recurring scans settings. The
recurring_scansblock supports fields documented below.- storage
Account stringAccess Key Specifies the identifier key of the storage account for vulnerability assessment scan results. If
storage_container_sas_keyisn’t specified,storage_account_access_keyis required.- storage
Container stringSas Key A shared access signature (SAS Key) that has write access to the blob container specified in
storage_container_pathparameter. Ifstorage_account_access_keyisn’t specified,storage_container_sas_keyis required.
- server_
security_ stralert_ policy_ id The id of the security alert policy of the MS SQL Server. Changing this forces a new resource to be created.
- storage_
container_ strpath A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- recurring_
scans Dict[ServerVulnerability Assessment Recurring Scans] The recurring scans settings. The
recurring_scansblock supports fields documented below.- storage_
account_ straccess_ key Specifies the identifier key of the storage account for vulnerability assessment scan results. If
storage_container_sas_keyisn’t specified,storage_account_access_keyis required.- storage_
container_ strsas_ key A shared access signature (SAS Key) that has write access to the blob container specified in
storage_container_pathparameter. Ifstorage_account_access_keyisn’t specified,storage_container_sas_keyis required.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerVulnerabilityAssessment resource produces the following output properties:
Look up an Existing ServerVulnerabilityAssessment Resource
Get an existing ServerVulnerabilityAssessment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServerVulnerabilityAssessmentState, opts?: CustomResourceOptions): ServerVulnerabilityAssessmentstatic get(resource_name, id, opts=None, recurring_scans=None, server_security_alert_policy_id=None, storage_account_access_key=None, storage_container_path=None, storage_container_sas_key=None, __props__=None);func GetServerVulnerabilityAssessment(ctx *Context, name string, id IDInput, state *ServerVulnerabilityAssessmentState, opts ...ResourceOption) (*ServerVulnerabilityAssessment, error)public static ServerVulnerabilityAssessment Get(string name, Input<string> id, ServerVulnerabilityAssessmentState? state, CustomResourceOptions? opts = null)- 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:
- Recurring
Scans ServerVulnerability Assessment Recurring Scans Args The recurring scans settings. The
recurring_scansblock supports fields documented below.- Server
Security stringAlert Policy Id The id of the security alert policy of the MS SQL Server. Changing this forces a new resource to be created.
- Storage
Account stringAccess Key Specifies the identifier key of the storage account for vulnerability assessment scan results. If
storage_container_sas_keyisn’t specified,storage_account_access_keyis required.- Storage
Container stringPath A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- Storage
Container stringSas Key A shared access signature (SAS Key) that has write access to the blob container specified in
storage_container_pathparameter. Ifstorage_account_access_keyisn’t specified,storage_container_sas_keyis required.
- Recurring
Scans ServerVulnerability Assessment Recurring Scans The recurring scans settings. The
recurring_scansblock supports fields documented below.- Server
Security stringAlert Policy Id The id of the security alert policy of the MS SQL Server. Changing this forces a new resource to be created.
- Storage
Account stringAccess Key Specifies the identifier key of the storage account for vulnerability assessment scan results. If
storage_container_sas_keyisn’t specified,storage_account_access_keyis required.- Storage
Container stringPath A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- Storage
Container stringSas Key A shared access signature (SAS Key) that has write access to the blob container specified in
storage_container_pathparameter. Ifstorage_account_access_keyisn’t specified,storage_container_sas_keyis required.
- recurring
Scans ServerVulnerability Assessment Recurring Scans The recurring scans settings. The
recurring_scansblock supports fields documented below.- server
Security stringAlert Policy Id The id of the security alert policy of the MS SQL Server. Changing this forces a new resource to be created.
- storage
Account stringAccess Key Specifies the identifier key of the storage account for vulnerability assessment scan results. If
storage_container_sas_keyisn’t specified,storage_account_access_keyis required.- storage
Container stringPath A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- storage
Container stringSas Key A shared access signature (SAS Key) that has write access to the blob container specified in
storage_container_pathparameter. Ifstorage_account_access_keyisn’t specified,storage_container_sas_keyis required.
- recurring_
scans Dict[ServerVulnerability Assessment Recurring Scans] The recurring scans settings. The
recurring_scansblock supports fields documented below.- server_
security_ stralert_ policy_ id The id of the security alert policy of the MS SQL Server. Changing this forces a new resource to be created.
- storage_
account_ straccess_ key Specifies the identifier key of the storage account for vulnerability assessment scan results. If
storage_container_sas_keyisn’t specified,storage_account_access_keyis required.- storage_
container_ strpath A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- storage_
container_ strsas_ key A shared access signature (SAS Key) that has write access to the blob container specified in
storage_container_pathparameter. Ifstorage_account_access_keyisn’t specified,storage_container_sas_keyis required.
Supporting Types
ServerVulnerabilityAssessmentRecurringScans
- Email
Subscription boolAdmins Boolean flag which specifies if the schedule scan notification will be sent to the subscription administrators. Defaults to
false.- Emails List<string>
Specifies an array of e-mail addresses to which the scan notification is sent.
- Enabled bool
Boolean flag which specifies if recurring scans is enabled or disabled. Defaults to
false.
- Email
Subscription boolAdmins Boolean flag which specifies if the schedule scan notification will be sent to the subscription administrators. Defaults to
false.- Emails []string
Specifies an array of e-mail addresses to which the scan notification is sent.
- Enabled bool
Boolean flag which specifies if recurring scans is enabled or disabled. Defaults to
false.
- email
Subscription booleanAdmins Boolean flag which specifies if the schedule scan notification will be sent to the subscription administrators. Defaults to
false.- emails string[]
Specifies an array of e-mail addresses to which the scan notification is sent.
- enabled boolean
Boolean flag which specifies if recurring scans is enabled or disabled. Defaults to
false.
- email
Subscription boolAdmins Boolean flag which specifies if the schedule scan notification will be sent to the subscription administrators. Defaults to
false.- emails List[str]
Specifies an array of e-mail addresses to which the scan notification is sent.
- enabled bool
Boolean flag which specifies if recurring scans is enabled or disabled. Defaults to
false.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.