def METHOD_NAME(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[pulumi.InvokeOptions] = None) -> AwaitableGetManagedDatabaseVulnerabilityAssessmentResult:
    """
    Gets the database's vulnerability assessment.
    :param str database_name: The name of the database for which the vulnerability assessment is defined.
    :param str managed_instance_name: The name of the managed instance.
    :param str resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    :param str vulnerability_assessment_name: The name of the vulnerability assessment.
    """
    __args__ = dict()
    __args__['databaseName'] = database_name
    __args__['managedInstanceName'] = managed_instance_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['vulnerabilityAssessmentName'] = vulnerability_assessment_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:sql/v20230201preview:getManagedDatabaseVulnerabilityAssessment', __args__, opts=opts, typ=GetManagedDatabaseVulnerabilityAssessmentResult).value
    return AwaitableGetManagedDatabaseVulnerabilityAssessmentResult(
        id=pulumi.get(__ret__, 'id'),
        name=pulumi.get(__ret__, 'name'),
        recurring_scans=pulumi.get(__ret__, 'recurring_scans'),
        type=pulumi.get(__ret__, 'type'))