ServerVulnerabilityAssessments interface

Interface representing a ServerVulnerabilityAssessments.

Methods

createOrUpdate(string, string, string, ServerVulnerabilityAssessment, ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams)

Creates or updates the server's vulnerability assessment. Learn more about setting SQL vulnerability assessment with managed identity - https://docs.microsoft.com/azure/azure-sql/database/sql-database-vulnerability-assessment-storage

delete(string, string, string, ServerVulnerabilityAssessmentsDeleteOptionalParams)

Removes the server's vulnerability assessment.

get(string, string, string, ServerVulnerabilityAssessmentsGetOptionalParams)

Gets the server's vulnerability assessment.

listByServer(string, string, ServerVulnerabilityAssessmentsListByServerOptionalParams)

Lists the vulnerability assessment policies associated with a server.

Method Details

createOrUpdate(string, string, string, ServerVulnerabilityAssessment, ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams)

Creates or updates the server's vulnerability assessment. Learn more about setting SQL vulnerability assessment with managed identity - https://docs.microsoft.com/azure/azure-sql/database/sql-database-vulnerability-assessment-storage

function createOrUpdate(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: string, parameters: ServerVulnerabilityAssessment, options?: ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams): Promise<ServerVulnerabilityAssessment>

Parameters

resourceGroupName

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

string

The name of the server for which the vulnerability assessment is defined.

vulnerabilityAssessmentName

string

The name of the vulnerability assessment.

parameters
ServerVulnerabilityAssessment

The requested resource.

Returns

delete(string, string, string, ServerVulnerabilityAssessmentsDeleteOptionalParams)

Removes the server's vulnerability assessment.

function delete(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: string, options?: ServerVulnerabilityAssessmentsDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

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

string

The name of the server for which the vulnerability assessment is defined.

vulnerabilityAssessmentName

string

The name of the vulnerability assessment.

options
ServerVulnerabilityAssessmentsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, ServerVulnerabilityAssessmentsGetOptionalParams)

Gets the server's vulnerability assessment.

function get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: string, options?: ServerVulnerabilityAssessmentsGetOptionalParams): Promise<ServerVulnerabilityAssessment>

Parameters

resourceGroupName

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

string

The name of the server for which the vulnerability assessment is defined.

vulnerabilityAssessmentName

string

The name of the vulnerability assessment.

options
ServerVulnerabilityAssessmentsGetOptionalParams

The options parameters.

Returns

listByServer(string, string, ServerVulnerabilityAssessmentsListByServerOptionalParams)

Lists the vulnerability assessment policies associated with a server.

function listByServer(resourceGroupName: string, serverName: string, options?: ServerVulnerabilityAssessmentsListByServerOptionalParams): PagedAsyncIterableIterator<ServerVulnerabilityAssessment, ServerVulnerabilityAssessment[], PageSettings>

Parameters

resourceGroupName

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

string

The name of the server.

Returns