1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. getServerVulnerabilityAssessment
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.sql.getServerVulnerabilityAssessment

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Gets the server’s vulnerability assessment.

Uses Azure REST API version 2023-08-01.

Other available API versions: 2018-06-01-preview, 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview, 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]. See the version guide for details.

Using getServerVulnerabilityAssessment

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 getServerVulnerabilityAssessment(args: GetServerVulnerabilityAssessmentArgs, opts?: InvokeOptions): Promise<GetServerVulnerabilityAssessmentResult>
function getServerVulnerabilityAssessmentOutput(args: GetServerVulnerabilityAssessmentOutputArgs, opts?: InvokeOptions): Output<GetServerVulnerabilityAssessmentResult>
Copy
def get_server_vulnerability_assessment(resource_group_name: Optional[str] = None,
                                        server_name: Optional[str] = None,
                                        vulnerability_assessment_name: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetServerVulnerabilityAssessmentResult
def get_server_vulnerability_assessment_output(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[GetServerVulnerabilityAssessmentResult]
Copy
func LookupServerVulnerabilityAssessment(ctx *Context, args *LookupServerVulnerabilityAssessmentArgs, opts ...InvokeOption) (*LookupServerVulnerabilityAssessmentResult, error)
func LookupServerVulnerabilityAssessmentOutput(ctx *Context, args *LookupServerVulnerabilityAssessmentOutputArgs, opts ...InvokeOption) LookupServerVulnerabilityAssessmentResultOutput
Copy

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

public static class GetServerVulnerabilityAssessment 
{
    public static Task<GetServerVulnerabilityAssessmentResult> InvokeAsync(GetServerVulnerabilityAssessmentArgs args, InvokeOptions? opts = null)
    public static Output<GetServerVulnerabilityAssessmentResult> Invoke(GetServerVulnerabilityAssessmentInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetServerVulnerabilityAssessmentResult> getServerVulnerabilityAssessment(GetServerVulnerabilityAssessmentArgs args, InvokeOptions options)
public static Output<GetServerVulnerabilityAssessmentResult> getServerVulnerabilityAssessment(GetServerVulnerabilityAssessmentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:sql:getServerVulnerabilityAssessment
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server for which the vulnerability assessment is defined.
VulnerabilityAssessmentName
This property is required.
Changes to this property will trigger replacement.
string
The name of the vulnerability assessment.
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.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server for which the vulnerability assessment is defined.
VulnerabilityAssessmentName
This property is required.
Changes to this property will trigger replacement.
string
The name of the vulnerability assessment.
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.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server for which the vulnerability assessment is defined.
vulnerabilityAssessmentName
This property is required.
Changes to this property will trigger replacement.
String
The name of the vulnerability assessment.
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.
serverName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server for which the vulnerability assessment is defined.
vulnerabilityAssessmentName
This property is required.
Changes to this property will trigger replacement.
string
The name of the vulnerability assessment.
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.
server_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the server for which the vulnerability assessment is defined.
vulnerability_assessment_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the vulnerability assessment.
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.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server for which the vulnerability assessment is defined.
vulnerabilityAssessmentName
This property is required.
Changes to this property will trigger replacement.
String
The name of the vulnerability assessment.

getServerVulnerabilityAssessment Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Id string
Resource ID.
Name string
Resource name.
Type string
Resource type.
RecurringScans Pulumi.AzureNative.Sql.Outputs.VulnerabilityAssessmentRecurringScansPropertiesResponse
The recurring scans settings
AzureApiVersion string
The Azure API version of the resource.
Id string
Resource ID.
Name string
Resource name.
Type string
Resource type.
RecurringScans VulnerabilityAssessmentRecurringScansPropertiesResponse
The recurring scans settings
azureApiVersion String
The Azure API version of the resource.
id String
Resource ID.
name String
Resource name.
type String
Resource type.
recurringScans VulnerabilityAssessmentRecurringScansPropertiesResponse
The recurring scans settings
azureApiVersion string
The Azure API version of the resource.
id string
Resource ID.
name string
Resource name.
type string
Resource type.
recurringScans VulnerabilityAssessmentRecurringScansPropertiesResponse
The recurring scans settings
azure_api_version str
The Azure API version of the resource.
id str
Resource ID.
name str
Resource name.
type str
Resource type.
recurring_scans VulnerabilityAssessmentRecurringScansPropertiesResponse
The recurring scans settings
azureApiVersion String
The Azure API version of the resource.
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 pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi