1. Packages
  2. Azure Native v2
  3. API Docs
  4. sql
  5. getManagedDatabaseVulnerabilityAssessment
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.sql.getManagedDatabaseVulnerabilityAssessment

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 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 getManagedDatabaseVulnerabilityAssessment

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 getManagedDatabaseVulnerabilityAssessment(args: GetManagedDatabaseVulnerabilityAssessmentArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseVulnerabilityAssessmentResult>
function getManagedDatabaseVulnerabilityAssessmentOutput(args: GetManagedDatabaseVulnerabilityAssessmentOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseVulnerabilityAssessmentResult>
Copy
def get_managed_database_vulnerability_assessment(database_name: Optional[str] = None,
                                                  managed_instance_name: Optional[str] = None,
                                                  resource_group_name: Optional[str] = None,
                                                  vulnerability_assessment_name: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetManagedDatabaseVulnerabilityAssessmentResult
def get_managed_database_vulnerability_assessment_output(database_name: Optional[pulumi.Input[str]] = None,
                                                  managed_instance_name: Optional[pulumi.Input[str]] = None,
                                                  resource_group_name: Optional[pulumi.Input[str]] = None,
                                                  vulnerability_assessment_name: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabaseVulnerabilityAssessmentResult]
Copy
func LookupManagedDatabaseVulnerabilityAssessment(ctx *Context, args *LookupManagedDatabaseVulnerabilityAssessmentArgs, opts ...InvokeOption) (*LookupManagedDatabaseVulnerabilityAssessmentResult, error)
func LookupManagedDatabaseVulnerabilityAssessmentOutput(ctx *Context, args *LookupManagedDatabaseVulnerabilityAssessmentOutputArgs, opts ...InvokeOption) LookupManagedDatabaseVulnerabilityAssessmentResultOutput
Copy

> Note: This function is named LookupManagedDatabaseVulnerabilityAssessment in the Go SDK.

public static class GetManagedDatabaseVulnerabilityAssessment 
{
    public static Task<GetManagedDatabaseVulnerabilityAssessmentResult> InvokeAsync(GetManagedDatabaseVulnerabilityAssessmentArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedDatabaseVulnerabilityAssessmentResult> Invoke(GetManagedDatabaseVulnerabilityAssessmentInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetManagedDatabaseVulnerabilityAssessmentResult> getManagedDatabaseVulnerabilityAssessment(GetManagedDatabaseVulnerabilityAssessmentArgs args, InvokeOptions options)
public static Output<GetManagedDatabaseVulnerabilityAssessmentResult> getManagedDatabaseVulnerabilityAssessment(GetManagedDatabaseVulnerabilityAssessmentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:sql:getManagedDatabaseVulnerabilityAssessment
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DatabaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database for which the vulnerability assessment is defined.
ManagedInstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the managed instance.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
VulnerabilityAssessmentName
This property is required.
Changes to this property will trigger replacement.
string
The name of the vulnerability assessment.
DatabaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database for which the vulnerability assessment is defined.
ManagedInstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the managed instance.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
VulnerabilityAssessmentName
This property is required.
Changes to this property will trigger replacement.
string
The name of the vulnerability assessment.
databaseName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database for which the vulnerability assessment is defined.
managedInstanceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the managed instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
vulnerabilityAssessmentName
This property is required.
Changes to this property will trigger replacement.
String
The name of the vulnerability assessment.
databaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database for which the vulnerability assessment is defined.
managedInstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the managed instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
vulnerabilityAssessmentName
This property is required.
Changes to this property will trigger replacement.
string
The name of the vulnerability assessment.
database_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the database for which the vulnerability assessment is defined.
managed_instance_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the managed instance.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
vulnerability_assessment_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the vulnerability assessment.
databaseName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database for which the vulnerability assessment is defined.
managedInstanceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the managed instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
vulnerabilityAssessmentName
This property is required.
Changes to this property will trigger replacement.
String
The name of the vulnerability assessment.

getManagedDatabaseVulnerabilityAssessment Result

The following output properties are available:

Id string
Resource ID.
Name string
Resource name.
Type string
Resource type.
RecurringScans Pulumi.AzureNative.Sql.Outputs.VulnerabilityAssessmentRecurringScansPropertiesResponse
The recurring scans settings
Id string
Resource ID.
Name string
Resource name.
Type string
Resource type.
RecurringScans VulnerabilityAssessmentRecurringScansPropertiesResponse
The recurring scans settings
id String
Resource ID.
name String
Resource name.
type String
Resource type.
recurringScans VulnerabilityAssessmentRecurringScansPropertiesResponse
The recurring scans settings
id string
Resource ID.
name string
Resource name.
type string
Resource type.
recurringScans VulnerabilityAssessmentRecurringScansPropertiesResponse
The recurring scans settings
id str
Resource ID.
name str
Resource name.
type str
Resource type.
recurring_scans VulnerabilityAssessmentRecurringScansPropertiesResponse
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

EmailSubscriptionAdmins bool
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.
EmailSubscriptionAdmins bool
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.
emailSubscriptionAdmins Boolean
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.
emailSubscriptionAdmins boolean
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_admins bool
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.
emailSubscriptionAdmins Boolean
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-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi