This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.sql.getDatabaseVulnerabilityAssessment
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets the database’s vulnerability assessment. Azure REST API version: 2021-11-01.
Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview.
Using getDatabaseVulnerabilityAssessment
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDatabaseVulnerabilityAssessment(args: GetDatabaseVulnerabilityAssessmentArgs, opts?: InvokeOptions): Promise<GetDatabaseVulnerabilityAssessmentResult>
function getDatabaseVulnerabilityAssessmentOutput(args: GetDatabaseVulnerabilityAssessmentOutputArgs, opts?: InvokeOptions): Output<GetDatabaseVulnerabilityAssessmentResult>def get_database_vulnerability_assessment(database_name: Optional[str] = None,
                                          resource_group_name: Optional[str] = None,
                                          server_name: Optional[str] = None,
                                          vulnerability_assessment_name: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetDatabaseVulnerabilityAssessmentResult
def get_database_vulnerability_assessment_output(database_name: Optional[pulumi.Input[str]] = None,
                                          resource_group_name: Optional[pulumi.Input[str]] = None,
                                          server_name: Optional[pulumi.Input[str]] = None,
                                          vulnerability_assessment_name: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseVulnerabilityAssessmentResult]func LookupDatabaseVulnerabilityAssessment(ctx *Context, args *LookupDatabaseVulnerabilityAssessmentArgs, opts ...InvokeOption) (*LookupDatabaseVulnerabilityAssessmentResult, error)
func LookupDatabaseVulnerabilityAssessmentOutput(ctx *Context, args *LookupDatabaseVulnerabilityAssessmentOutputArgs, opts ...InvokeOption) LookupDatabaseVulnerabilityAssessmentResultOutput> Note: This function is named LookupDatabaseVulnerabilityAssessment in the Go SDK.
public static class GetDatabaseVulnerabilityAssessment 
{
    public static Task<GetDatabaseVulnerabilityAssessmentResult> InvokeAsync(GetDatabaseVulnerabilityAssessmentArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseVulnerabilityAssessmentResult> Invoke(GetDatabaseVulnerabilityAssessmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatabaseVulnerabilityAssessmentResult> getDatabaseVulnerabilityAssessment(GetDatabaseVulnerabilityAssessmentArgs args, InvokeOptions options)
public static Output<GetDatabaseVulnerabilityAssessmentResult> getDatabaseVulnerabilityAssessment(GetDatabaseVulnerabilityAssessmentArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:sql:getDatabaseVulnerabilityAssessment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DatabaseName string
- The name of the database for which the vulnerability assessment is defined.
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- ServerName string
- The name of the server.
- VulnerabilityAssessment stringName 
- The name of the vulnerability assessment.
- DatabaseName string
- The name of the database for which the vulnerability assessment is defined.
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- ServerName string
- The name of the server.
- VulnerabilityAssessment stringName 
- The name of the vulnerability assessment.
- databaseName String
- The name of the database for which the vulnerability assessment is defined.
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName String
- The name of the server.
- vulnerabilityAssessment StringName 
- The name of the vulnerability assessment.
- databaseName string
- The name of the database for which the vulnerability assessment is defined.
- resourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName string
- The name of the server.
- vulnerabilityAssessment stringName 
- The name of the vulnerability assessment.
- database_name str
- The name of the database for which the vulnerability assessment is defined.
- resource_group_ strname 
- 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
- The name of the server.
- vulnerability_assessment_ strname 
- The name of the vulnerability assessment.
- databaseName String
- The name of the database for which the vulnerability assessment is defined.
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName String
- The name of the server.
- vulnerabilityAssessment StringName 
- The name of the vulnerability assessment.
getDatabaseVulnerabilityAssessment Result
The following output properties are available:
- Id string
- Resource ID.
- Name string
- Resource name.
- Type string
- Resource type.
- RecurringScans Pulumi.Azure Native. Sql. Outputs. Vulnerability Assessment Recurring Scans Properties Response 
- The recurring scans settings
- Id string
- Resource ID.
- Name string
- Resource name.
- Type string
- Resource type.
- RecurringScans VulnerabilityAssessment Recurring Scans Properties Response 
- The recurring scans settings
- id String
- Resource ID.
- name String
- Resource name.
- type String
- Resource type.
- recurringScans VulnerabilityAssessment Recurring Scans Properties Response 
- The recurring scans settings
- id string
- Resource ID.
- name string
- Resource name.
- type string
- Resource type.
- recurringScans VulnerabilityAssessment Recurring Scans Properties Response 
- The recurring scans settings
- id str
- Resource ID.
- name str
- Resource name.
- type str
- Resource type.
- recurring_scans VulnerabilityAssessment Recurring Scans Properties Response 
- The recurring scans settings
- id String
- Resource ID.
- name String
- Resource name.
- type String
- Resource type.
- recurringScans Property Map
- The recurring scans settings
Supporting Types
VulnerabilityAssessmentRecurringScansPropertiesResponse     
- EmailSubscription boolAdmins 
- Specifies that the schedule scan notification will be is sent to the subscription administrators.
- Emails List<string>
- Specifies an array of e-mail addresses to which the scan notification is sent.
- IsEnabled bool
- Recurring scans state.
- EmailSubscription boolAdmins 
- Specifies that the schedule scan notification will be is sent to the subscription administrators.
- Emails []string
- Specifies an array of e-mail addresses to which the scan notification is sent.
- IsEnabled bool
- Recurring scans state.
- emailSubscription BooleanAdmins 
- Specifies that the schedule scan notification will be is sent to the subscription administrators.
- emails List<String>
- Specifies an array of e-mail addresses to which the scan notification is sent.
- isEnabled Boolean
- Recurring scans state.
- emailSubscription booleanAdmins 
- Specifies that the schedule scan notification will be is sent to the subscription administrators.
- emails string[]
- Specifies an array of e-mail addresses to which the scan notification is sent.
- isEnabled boolean
- Recurring scans state.
- email_subscription_ booladmins 
- Specifies that the schedule scan notification will be is sent to the subscription administrators.
- emails Sequence[str]
- Specifies an array of e-mail addresses to which the scan notification is sent.
- is_enabled bool
- Recurring scans state.
- emailSubscription BooleanAdmins 
- Specifies that the schedule scan notification will be is sent to the subscription administrators.
- emails List<String>
- Specifies an array of e-mail addresses to which the scan notification is sent.
- isEnabled Boolean
- Recurring scans state.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi